diff --git a/.mxproject b/.mxproject index 69934be..51152d5 100644 --- a/.mxproject +++ b/.mxproject @@ -1,39 +1,41 @@ [PreviousLibFiles] -LibFiles=Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_spi.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_spi.h;Drivers\STM32F1xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_def.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_rcc.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_rcc_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_bus.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_rcc.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_system.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_utils.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio_ex.h;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_gpio.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_dma.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_cortex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_cortex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_pwr.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_pwr.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_exti.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_exti.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_tim.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_tim.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_tim_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_uart.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_usart.h;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.c;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_spi.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_spi.h;Drivers\STM32F1xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_def.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_rcc.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_rcc_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_bus.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_rcc.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_system.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_utils.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio_ex.h;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_gpio.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_dma.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_cortex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_cortex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_pwr.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_pwr.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_exti.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_exti.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_tim.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_tim.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_tim_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_uart.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_usart.h;Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xb.h;Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f1xx.h;Drivers\CMSIS\Device\ST\STM32F1xx\Include\system_stm32f1xx.h;Drivers\CMSIS\Device\ST\STM32F1xx\Include\system_stm32f1xx.h;Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;Drivers\CMSIS\Include\cmsis_armcc.h;Drivers\CMSIS\Include\cmsis_armclang.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_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_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; +LibFiles=Drivers\STM32F1xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_def.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_rcc.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_rcc_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_bus.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_rcc.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_system.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_utils.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio_ex.h;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_gpio.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_dma.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_cortex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_cortex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_pwr.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_pwr.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_exti.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_exti.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_spi.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_spi.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_tim.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_tim.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_tim_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_uart.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_usart.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\CMSIS_RTOS_V2\cmsis_os2.h;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2\cmsis_os.h;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2\freertos_mpool.h;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2\freertos_os2.h;Middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM3\portmacro.h;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.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_V2\cmsis_os2.c;Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;Middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM3\port.c;Drivers\STM32F1xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_def.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_rcc.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_rcc_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_bus.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_rcc.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_system.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_utils.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_gpio_ex.h;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_gpio.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_dma.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_dma.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_cortex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_cortex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_pwr.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_pwr.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_flash_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_exti.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_exti.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_spi.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_spi.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_tim.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_tim.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_tim_ex.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_hal_uart.h;Drivers\STM32F1xx_HAL_Driver\Inc\stm32f1xx_ll_usart.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\CMSIS_RTOS_V2\cmsis_os2.h;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2\cmsis_os.h;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2\freertos_mpool.h;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2\freertos_os2.h;Middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM3\portmacro.h;Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xb.h;Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f1xx.h;Drivers\CMSIS\Device\ST\STM32F1xx\Include\system_stm32f1xx.h;Drivers\CMSIS\Device\ST\STM32F1xx\Include\system_stm32f1xx.h;Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;Drivers\CMSIS\Include\cmsis_armcc.h;Drivers\CMSIS\Include\cmsis_armclang.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_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_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; [PreviousUsedKeilFiles] -SourceFiles=..\Core\Src\main.c;..\Core\Src\gpio.c;..\Core\Src\dma.c;..\Core\Src\spi.c;..\Core\Src\tim.c;..\Core\Src\usart.c;..\Core\Src\stm32f1xx_it.c;..\Core\Src\stm32f1xx_hal_msp.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.c;..\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;..\Core\Src\system_stm32f1xx.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.c;..\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;..\Core\Src\system_stm32f1xx.c;;; -HeaderPath=..\Drivers\STM32F1xx_HAL_Driver\Inc;..\Drivers\STM32F1xx_HAL_Driver\Inc\Legacy;..\Drivers\CMSIS\Device\ST\STM32F1xx\Include;..\Drivers\CMSIS\Include;..\Core\Inc; +SourceFiles=..\Core\Src\main.c;..\Core\Src\gpio.c;..\Core\Src\freertos.c;..\Core\Src\dma.c;..\Core\Src\spi.c;..\Core\Src\tim.c;..\Core\Src\usart.c;..\Core\Src\stm32f1xx_it.c;..\Core\Src\stm32f1xx_hal_msp.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.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_V2\cmsis_os2.c;..\Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;..\Middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM3\port.c;..\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;..\Core\Src\system_stm32f1xx.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.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_V2\cmsis_os2.c;..\Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;..\Middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM3\port.c;..\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;..\Core\Src\system_stm32f1xx.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_V2\cmsis_os2.c;..\Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;..\Middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM3\port.c; +HeaderPath=..\Drivers\STM32F1xx_HAL_Driver\Inc\Legacy;..\Drivers\STM32F1xx_HAL_Driver\Inc;..\Middlewares\Third_Party\FreeRTOS\Source\include;..\Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2;..\Middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM3;..\Drivers\CMSIS\Device\ST\STM32F1xx\Include;..\Drivers\CMSIS\Include;..\Core\Inc; CDefines=USE_HAL_DRIVER;STM32F103xB;USE_HAL_DRIVER;USE_HAL_DRIVER; [PreviousUsedCMakes] -SourceFiles=Core\Src\main.c;Core\Src\gpio.c;Core\Src\spi.c;Core\Src\tim.c;Core\Src\usart.c;Core\Src\stm32f1xx_it.c;Core\Src\stm32f1xx_hal_msp.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.c;Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;Core\Src\system_stm32f1xx.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.c;Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;Core\Src\system_stm32f1xx.c;;; -HeaderPath=Drivers\STM32F1xx_HAL_Driver\Inc;Drivers\STM32F1xx_HAL_Driver\Inc\Legacy;Drivers\CMSIS\Device\ST\STM32F1xx\Include;Drivers\CMSIS\Include;Core\Inc; +SourceFiles=Core\Src\main.c;Core\Src\gpio.c;Core\Src\freertos.c;Core\Src\dma.c;Core\Src\spi.c;Core\Src\tim.c;Core\Src\usart.c;Core\Src\stm32f1xx_it.c;Core\Src\stm32f1xx_hal_msp.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.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_V2\cmsis_os2.c;Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM3\port.c;Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;Core\Src\system_stm32f1xx.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_rcc_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_gpio.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_dma.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_cortex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_pwr.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_flash_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_exti.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_spi.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c;Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.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_V2\cmsis_os2.c;Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM3\port.c;Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c;Core\Src\system_stm32f1xx.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_V2\cmsis_os2.c;Middlewares\Third_Party\FreeRTOS\Source\portable\MemMang\heap_4.c;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM3\port.c; +HeaderPath=Drivers\STM32F1xx_HAL_Driver\Inc\Legacy;Drivers\STM32F1xx_HAL_Driver\Inc;Middlewares\Third_Party\FreeRTOS\Source\include;Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2;Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM3;Drivers\CMSIS\Device\ST\STM32F1xx\Include;Drivers\CMSIS\Include;Core\Inc; CDefines=USE_HAL_DRIVER;STM32F103xB;USE_HAL_DRIVER;USE_HAL_DRIVER; [PreviousGenFiles] AdvancedFolderStructure=true -HeaderFileListSize=8 +HeaderFileListSize=9 HeaderFiles#0=..\Core\Inc\gpio.h -HeaderFiles#1=..\Core\Inc\dma.h -HeaderFiles#2=..\Core\Inc\spi.h -HeaderFiles#3=..\Core\Inc\tim.h -HeaderFiles#4=..\Core\Inc\usart.h -HeaderFiles#5=..\Core\Inc\stm32f1xx_it.h -HeaderFiles#6=..\Core\Inc\stm32f1xx_hal_conf.h -HeaderFiles#7=..\Core\Inc\main.h +HeaderFiles#1=..\Core\Inc\FreeRTOSConfig.h +HeaderFiles#2=..\Core\Inc\dma.h +HeaderFiles#3=..\Core\Inc\spi.h +HeaderFiles#4=..\Core\Inc\tim.h +HeaderFiles#5=..\Core\Inc\usart.h +HeaderFiles#6=..\Core\Inc\stm32f1xx_it.h +HeaderFiles#7=..\Core\Inc\stm32f1xx_hal_conf.h +HeaderFiles#8=..\Core\Inc\main.h HeaderFolderListSize=1 HeaderPath#0=..\Core\Inc HeaderFiles=; -SourceFileListSize=8 +SourceFileListSize=9 SourceFiles#0=..\Core\Src\gpio.c -SourceFiles#1=..\Core\Src\dma.c -SourceFiles#2=..\Core\Src\spi.c -SourceFiles#3=..\Core\Src\tim.c -SourceFiles#4=..\Core\Src\usart.c -SourceFiles#5=..\Core\Src\stm32f1xx_it.c -SourceFiles#6=..\Core\Src\stm32f1xx_hal_msp.c -SourceFiles#7=..\Core\Src\main.c +SourceFiles#1=..\Core\Src\freertos.c +SourceFiles#2=..\Core\Src\dma.c +SourceFiles#3=..\Core\Src\spi.c +SourceFiles#4=..\Core\Src\tim.c +SourceFiles#5=..\Core\Src\usart.c +SourceFiles#6=..\Core\Src\stm32f1xx_it.c +SourceFiles#7=..\Core\Src\stm32f1xx_hal_msp.c +SourceFiles#8=..\Core\Src\main.c SourceFolderListSize=1 SourcePath#0=..\Core\Src SourceFiles=; diff --git a/CMakeLists.txt b/CMakeLists.txt index 54aa4b2..bec2bcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,29 +45,50 @@ target_link_directories(${CMAKE_PROJECT_NAME} PRIVATE # Add sources to executable target_sources(${CMAKE_PROJECT_NAME} PRIVATE # Add user sources here - sx1281-driver-c/sx1281_driver_gpio.c - sx1281-driver-c/sx1281_driver_spi.c - sx1281-driver-c/sx1281_driver_uart.c - sx1281-driver-c/sx1281_header.c - sx1281-driver-c/radio.h - sx1281-driver-c/sx1281_driver.c - sx1281-driver-c/sx1281_driver_hal.c - sx1281-driver-c/sx1281.c - sx1281-driver-c/sx1281.h # User/bsp sources User/bsp/gpio.c User/bsp/spi.c + User/bsp/time.c + User/bsp/uart.c # User/component sources User/component/crc16.c User/component/crc8.c + User/component/freertos_cli.c + User/component/keyStatusCheck.c + User/component/ui.c User/component/user_math.c + + # User/device/lcd_driver sources + User/device/lcd_driver/lcd.c + + # User/device/sx1281_driver sources + User/device/sx1281_driver/sx1281.c + User/device/sx1281_driver/sx1281_driver.c + User/device/sx1281_driver/sx1281_driver_gpio.c + User/device/sx1281_driver/sx1281_driver_hal.c + User/device/sx1281_driver/sx1281_driver_spi.c + User/device/sx1281_driver/sx1281_driver_uart.c + User/device/sx1281_driver/sx1281_header.c + + # User/extension sources + User/extension/ms.c + + # User/extension/om_core sources + User/extension/om_core/om_list.c + + # User/module sources + User/module/mr16.c + + # User/task sources + User/task/init.c + User/task/radio.c + User/task/user_task.c ) # Add include paths target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE # Add user defined include paths - sx1281-driver-c User ) diff --git a/Core/Inc/FreeRTOSConfig.h b/Core/Inc/FreeRTOSConfig.h new file mode 100644 index 0000000..553f72a --- /dev/null +++ b/Core/Inc/FreeRTOSConfig.h @@ -0,0 +1,154 @@ +/* USER CODE BEGIN Header */ +/* + * FreeRTOS Kernel V10.3.1 + * Copyright (C) 2017 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! + */ +/* 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; + void xPortSysTickHandler(void); +#endif +#ifndef CMSIS_device_header +#define CMSIS_device_header "stm32f1xx.h" +#endif /* CMSIS_device_header */ + +#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 ( 56 ) +#define configMINIMAL_STACK_SIZE ((uint16_t)128) +#define configTOTAL_HEAP_SIZE ((size_t)3072) +#define configMAX_TASK_NAME_LEN ( 16 ) +#define configUSE_TRACE_FACILITY 1 +#define configUSE_16_BIT_TICKS 0 +#define configUSE_MUTEXES 1 +#define configQUEUE_REGISTRY_SIZE 8 +#define configUSE_RECURSIVE_MUTEXES 1 +#define configUSE_COUNTING_SEMAPHORES 1 +#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 + +/* 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 256 + +/* 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 +#define INCLUDE_xTimerPendFunctionCall 1 +#define INCLUDE_xQueueGetMutexHolder 1 +#define INCLUDE_uxTaskGetStackHighWaterMark 1 +#define INCLUDE_xTaskGetCurrentTaskHandle 1 +#define INCLUDE_eTaskGetState 1 + +/* + * The CMSIS-RTOS V2 FreeRTOS wrapper is dependent on the heap implementation used + * by the application thus the correct define need to be enabled below + */ +#define USE_FreeRTOS_HEAP_4 + +/* 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( ;; );} +/* 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: After 10.3.1 update, Systick_Handler comes from NVIC (if SYS timebase = systick), otherwise from cmsis_os2.c */ + +#define USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION 1 + +/* 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/stm32f1xx_it.h b/Core/Inc/stm32f1xx_it.h index 248de4c..a6aab59 100644 --- a/Core/Inc/stm32f1xx_it.h +++ b/Core/Inc/stm32f1xx_it.h @@ -51,9 +51,7 @@ void HardFault_Handler(void); void MemManage_Handler(void); void BusFault_Handler(void); void UsageFault_Handler(void); -void SVC_Handler(void); void DebugMon_Handler(void); -void PendSV_Handler(void); void SysTick_Handler(void); void DMA1_Channel2_IRQHandler(void); void DMA1_Channel3_IRQHandler(void); diff --git a/Core/Inc/usart.h b/Core/Inc/usart.h index 737091e..ff2dc3a 100644 --- a/Core/Inc/usart.h +++ b/Core/Inc/usart.h @@ -29,7 +29,7 @@ extern "C" { #include "main.h" /* USER CODE BEGIN Includes */ - +#include "cmsis_os2.h" /* USER CODE END Includes */ extern UART_HandleTypeDef huart1; diff --git a/Core/Src/dma.c b/Core/Src/dma.c index 52d517e..b6e05c8 100644 --- a/Core/Src/dma.c +++ b/Core/Src/dma.c @@ -44,19 +44,19 @@ void MX_DMA_Init(void) /* DMA interrupt init */ /* DMA1_Channel2_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 0, 0); + HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 5, 0); HAL_NVIC_EnableIRQ(DMA1_Channel2_IRQn); /* DMA1_Channel3_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 0, 0); + HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 5, 0); HAL_NVIC_EnableIRQ(DMA1_Channel3_IRQn); /* DMA1_Channel5_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Channel5_IRQn, 0, 0); + HAL_NVIC_SetPriority(DMA1_Channel5_IRQn, 5, 0); HAL_NVIC_EnableIRQ(DMA1_Channel5_IRQn); /* DMA1_Channel6_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Channel6_IRQn, 0, 0); + HAL_NVIC_SetPriority(DMA1_Channel6_IRQn, 5, 0); HAL_NVIC_EnableIRQ(DMA1_Channel6_IRQn); /* DMA1_Channel7_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Channel7_IRQn, 0, 0); + HAL_NVIC_SetPriority(DMA1_Channel7_IRQn, 5, 0); HAL_NVIC_EnableIRQ(DMA1_Channel7_IRQn); } diff --git a/Core/Src/freertos.c b/Core/Src/freertos.c new file mode 100644 index 0000000..0e14a91 --- /dev/null +++ b/Core/Src/freertos.c @@ -0,0 +1,127 @@ +/* USER CODE BEGIN Header */ +/** + ****************************************************************************** + * File Name : freertos.c + * Description : Code for freertos applications + ****************************************************************************** + * @attention + * + * Copyright (c) 2025 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" +#include "cmsis_os.h" + +/* Private includes ----------------------------------------------------------*/ +/* USER CODE BEGIN Includes */ + +#include "task/user_task.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 ---------------------------------------------------------*/ +/* USER CODE BEGIN Variables */ + +/* USER CODE END Variables */ +/* Definitions for defaultTask */ +osThreadId_t defaultTaskHandle; +const osThreadAttr_t defaultTask_attributes = { + .name = "defaultTask", + .stack_size = 128 * 4, + .priority = (osPriority_t) osPriorityNormal, +}; + +/* Private function prototypes -----------------------------------------------*/ +/* USER CODE BEGIN FunctionPrototypes */ + +/* USER CODE END FunctionPrototypes */ + +void StartDefaultTask(void *argument); + +void MX_FREERTOS_Init(void); /* (MISRA C 2004 rule 8.1) */ + +/** + * @brief FreeRTOS initialization + * @param None + * @retval None + */ +void MX_FREERTOS_Init(void) { + /* USER CODE BEGIN Init */ + + /* USER CODE END Init */ + + /* 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) */ + /* creation of defaultTask */ + defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes); + + /* USER CODE BEGIN RTOS_THREADS */ + /* add threads, ... */ + osThreadNew(Task_Init, NULL, &attr_init); // 创建初始化任务 + /* USER CODE END RTOS_THREADS */ + + /* USER CODE BEGIN RTOS_EVENTS */ + /* add events, ... */ + /* USER CODE END RTOS_EVENTS */ + +} + +/* 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 *argument) +{ + /* USER CODE BEGIN StartDefaultTask */ + osThreadTerminate(osThreadGetId()); + /* USER CODE END StartDefaultTask */ +} + +/* Private application code --------------------------------------------------*/ +/* USER CODE BEGIN Application */ + +/* USER CODE END Application */ + diff --git a/Core/Src/main.c b/Core/Src/main.c index 9ad4ace..5f55c27 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -18,6 +18,7 @@ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "main.h" +#include "cmsis_os.h" #include "dma.h" #include "spi.h" #include "tim.h" @@ -26,9 +27,7 @@ /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ -#include "module/mr16.h" -#include "device/sx1281_driver/radio.h" -#include "device/sx1281_driver/sx1281.h" + /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ @@ -54,6 +53,7 @@ /* Private function prototypes -----------------------------------------------*/ void SystemClock_Config(void); +void MX_FREERTOS_Init(void); /* USER CODE BEGIN PFP */ /* USER CODE END PFP */ @@ -61,9 +61,6 @@ void SystemClock_Config(void); /* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */ -extern SX1281_t radio; - - /* USER CODE END 0 */ /** @@ -102,10 +99,18 @@ int main(void) MX_USART1_UART_Init(); MX_USART2_UART_Init(); /* USER CODE BEGIN 2 */ - __HAL_UART_ENABLE_IT(&huart2,UART_IT_IDLE); - MR16_Init(); + /* USER CODE END 2 */ + /* Init scheduler */ + osKernelInitialize(); /* Call init function for freertos objects (in cmsis_os2.c) */ + MX_FREERTOS_Init(); + + /* Start scheduler */ + osKernelStart(); + + /* We should never get here as control is now taken by the scheduler */ + /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) @@ -113,8 +118,6 @@ int main(void) /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ - // 处理射频中断 - SX1281_Running(&radio); @@ -198,4 +201,4 @@ void assert_failed(uint8_t *file, uint32_t line) ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ /* USER CODE END 6 */ } -#endif /* USE_FULL_ASSERT */ \ No newline at end of file +#endif /* USE_FULL_ASSERT */ diff --git a/Core/Src/stm32f1xx_hal_msp.c b/Core/Src/stm32f1xx_hal_msp.c index 1d0ebb0..15d63be 100644 --- a/Core/Src/stm32f1xx_hal_msp.c +++ b/Core/Src/stm32f1xx_hal_msp.c @@ -71,6 +71,8 @@ void HAL_MspInit(void) __HAL_RCC_PWR_CLK_ENABLE(); /* System interrupt init*/ + /* PendSV_IRQn interrupt configuration */ + HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0); /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled */ diff --git a/Core/Src/stm32f1xx_it.c b/Core/Src/stm32f1xx_it.c index 668618a..22ad85c 100644 --- a/Core/Src/stm32f1xx_it.c +++ b/Core/Src/stm32f1xx_it.c @@ -20,6 +20,8 @@ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "stm32f1xx_it.h" +#include "FreeRTOS.h" +#include "task.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ @@ -143,19 +145,6 @@ void UsageFault_Handler(void) } } -/** - * @brief This function handles System service call via SWI instruction. - */ -void SVC_Handler(void) -{ - /* USER CODE BEGIN SVCall_IRQn 0 */ - - /* USER CODE END SVCall_IRQn 0 */ - /* USER CODE BEGIN SVCall_IRQn 1 */ - - /* USER CODE END SVCall_IRQn 1 */ -} - /** * @brief This function handles Debug monitor. */ @@ -169,19 +158,6 @@ void DebugMon_Handler(void) /* USER CODE END DebugMonitor_IRQn 1 */ } -/** - * @brief This function handles Pendable request for system service. - */ -void PendSV_Handler(void) -{ - /* USER CODE BEGIN PendSV_IRQn 0 */ - - /* USER CODE END PendSV_IRQn 0 */ - /* USER CODE BEGIN PendSV_IRQn 1 */ - - /* USER CODE END PendSV_IRQn 1 */ -} - /** * @brief This function handles System tick timer. */ @@ -191,6 +167,14 @@ void SysTick_Handler(void) /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); +#if (INCLUDE_xTaskGetSchedulerState == 1 ) + if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) + { +#endif /* INCLUDE_xTaskGetSchedulerState */ + xPortSysTickHandler(); +#if (INCLUDE_xTaskGetSchedulerState == 1 ) + } +#endif /* INCLUDE_xTaskGetSchedulerState */ /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ diff --git a/Core/Src/usart.c b/Core/Src/usart.c index da78539..7ef0a3b 100644 --- a/Core/Src/usart.c +++ b/Core/Src/usart.c @@ -229,6 +229,7 @@ void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle) /* USER CODE BEGIN 1 */ uint8_t uart_buffer[255],uart2_data[255],uart2_datalength; +__weak void MR16_NotifyUARTIdle(void) { } void USAR_UART_IDLECallback(UART_HandleTypeDef *huart) { if (huart == NULL) return; @@ -246,6 +247,8 @@ void USAR_UART_IDLECallback(UART_HandleTypeDef *huart) memset(uart_buffer, 0, uart2_datalength); // 清空已读数据 HAL_UART_Receive_DMA(huart, (uint8_t*)uart_buffer, 255); // 重启 DMA 接收 + + MR16_NotifyUARTIdle(); } void USER_UART_IRQHandler(UART_HandleTypeDef *huart) diff --git a/MDK-ARM/MR16.uvguix.yxm23 b/MDK-ARM/MR16.uvguix.yxm23 index 2b6ea50..961f88b 100644 --- a/MDK-ARM/MR16.uvguix.yxm23 +++ b/MDK-ARM/MR16.uvguix.yxm23 @@ -15,17 +15,17 @@ 38003 Registers - 124 100 + 134 100 346 Code Coverage - 434 1046 + 102 1382 204 Performance Analyzer - 594 155 155 576 + 199 155 155 975 @@ -93,25 +93,25 @@ 2 3 - -1 - -1 + -32000 + -32000 -1 -1 - 224 - 516 - 1562 - 1019 + 125 + 280 + 1326 + 920 0 - 530 - 0100000004000000010000000100000001000000010000000000000002000000000000000100000001000000000000002800000028000000010000000500000002000000010000001E443A5C435542454D585C4D5231365C436F72655C5372635C6D61696E2E6300000000066D61696E2E6300000000C5D4F200FFFFFFFF31443A5C435542454D585C4D5231365C557365725C6465766963655C7378313238315F6472697665725C7378313238312E6300000000087378313238312E6300000000FFDC7800FFFFFFFF21443A5C435542454D585C4D5231365C557365725C6D6F64756C655C6D7231362E6300000000066D7231362E6300000000BECEA100FFFFFFFF2C443A5C435542454D585C4D5231365C4D444B2D41524D5C737461727475705F73746D33326631303378622E730000000015737461727475705F73746D33326631303378622E7300000000F0A0A100FFFFFFFF38443A5C435542454D585C4D5231365C557365725C6465766963655C7378313238315F6472697665725C7378313238315F6865616465722E63000000000F7378313238315F6865616465722E6300000000BCA8E100FFFFFFFF0100000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD5000100000000000000020000001A01000066000000AB06000075030000 + 2058 + 0100000004000000010000000100000001000000010000000000000002000000000000000100000001000000000000002800000028000000010000001B000000150000000100000020443A5C435542454D585C4D5231365C557365725C7461736B5C726164696F2E630000000007726164696F2E6300000000C5D4F200FFFFFFFF1E443A5C435542454D585C4D5231365C436F72655C5372635C6D61696E2E6300000000066D61696E2E6300000000FFDC7800FFFFFFFF21443A5C435542454D585C4D5231365C557365725C6D6F64756C655C6D7231362E6800000000066D7231362E6800000000BECEA100FFFFFFFF2E443A5C435542454D585C4D5231365C557365725C636F6D706F6E656E745C6B6579537461747573436865636B2E6800000000106B6579537461747573436865636B2E6800000000F0A0A100FFFFFFFF2B443A5C435542454D585C4D5231365C557365725C6465766963655C6C63645F6472697665725C6C63642E6800000000056C63642E6800000000BCA8E100FFFFFFFF24443A5C435542454D585C4D5231365C557365725C636F6D706F6E656E745C637263382E680000000006637263382E68000000009CC1B600FFFFFFFF2B443A5C435542454D585C4D5231365C557365725C6465766963655C6C63645F6472697665725C6C63642E6300000000056C63642E6300000000F7B88600FFFFFFFF1D443A5C435542454D585C4D5231365C557365725C6273705C7370692E6800000000057370692E6800000000D9ADC200FFFFFFFF1D443A5C435542454D585C4D5231365C557365725C6273705C7370692E6300000000057370692E6300000000A5C2D700FFFFFFFF21443A5C435542454D585C4D5231365C557365725C6D6F64756C655C6D7231362E6300000000066D7231362E6300000000B3A6BE00FFFFFFFF31443A5C435542454D585C4D5231365C557365725C6465766963655C7378313238315F6472697665725C7378313238312E6800000000087378313238312E6800000000EAD6A300FFFFFFFF31443A5C435542454D585C4D5231365C557365725C6465766963655C7378313238315F6472697665725C7378313238312E6300000000087378313238312E6300000000F6FA7D00FFFFFFFF2C443A5C435542454D585C4D5231365C4D444B2D41524D5C737461727475705F73746D33326631303378622E730000000015737461727475705F73746D33326631303378622E7300000000B5E99D00FFFFFFFF2C443A5C435542454D585C4D5231365C557365725C636F6D706F6E656E745C4672656552544F535F434C492E68000000000E4672656552544F535F434C492E68000000005FC3CF00FFFFFFFF1E443A5C435542454D585C4D5231365C557365725C6273705C74696D652E63000000000674696D652E6300000000C1838300FFFFFFFF1E443A5C435542454D585C4D5231365C557365725C6273705C74696D652E68000000000674696D652E6800000000CACAD500FFFFFFFF2C443A5C435542454D585C4D5231365C557365725C636F6D706F6E656E745C6672656572746F735F636C692E63000000000E6672656572746F735F636C692E6300000000C5D4F200FFFFFFFF24443A5C435542454D585C4D5231365C557365725C7461736B5C757365725F7461736B2E63000000000B757365725F7461736B2E6300000000FFDC7800FFFFFFFF1F443A5C435542454D585C4D5231365C557365725C7461736B5C696E69742E630000000006696E69742E6300000000BECEA100FFFFFFFF24443A5C435542454D585C4D5231365C557365725C7461736B5C757365725F7461736B2E68000000000B757365725F7461736B2E6800000000F0A0A100FFFFFFFF1F443A5C435542454D585C4D5231365C436F72655C5372635C75736172742E63000000000775736172742E6300000000BCA8E100FFFFFFFF1F443A5C435542454D585C4D5231365C557365725C6273705C666C6173682E630000000007666C6173682E63000000009CC1B600FFFFFFFF1F443A5C435542454D585C4D5231365C557365725C6273705C666C6173682E680000000007666C6173682E6800000000F7B88600FFFFFFFF49443A5C435542454D585C4D5231365C447269766572735C53544D3332463178785F48414C5F4472697665725C496E635C4C65676163795C73746D33325F68616C5F6C65676163792E68000000001273746D33325F68616C5F6C65676163792E6800000000D9ADC200FFFFFFFF48443A5C435542454D585C4D5231365C447269766572735C53544D3332463178785F48414C5F4472697665725C496E635C73746D3332663178785F68616C5F666C6173685F65782E68000000001873746D3332663178785F68616C5F666C6173685F65782E6800000000A5C2D700FFFFFFFF45443A5C435542454D585C4D5231365C447269766572735C53544D3332463178785F48414C5F4472697665725C5372635C73746D3332663178785F68616C5F666C6173682E63000000001573746D3332663178785F68616C5F666C6173682E6300000000B3A6BE00FFFFFFFF45443A5C435542454D585C4D5231365C447269766572735C53544D3332463178785F48414C5F4472697665725C496E635C73746D3332663178785F68616C5F666C6173682E68000000001573746D3332663178785F68616C5F666C6173682E6800000000EAD6A300FFFFFFFF0100000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD5000100000000000000020000000001000066000000AB06000075030000 @@ -150,7 +150,7 @@ 0 16 - 03000000660000001301000045030000 + 0300000066000000F900000045030000 16 @@ -170,7 +170,7 @@ 0 16 - 03000000660000001301000045030000 + 0300000066000000F900000045030000 16 @@ -450,7 +450,7 @@ 0 16 - 03000000660000001301000045030000 + 0300000066000000F900000045030000 16 @@ -470,7 +470,7 @@ 0 16 - 03000000660000001301000045030000 + 0300000066000000F900000045030000 16 @@ -1150,7 +1150,7 @@ 0 16 - 03000000660000001301000045030000 + 0300000066000000F900000045030000 16 @@ -1799,14 +1799,14 @@ 3312 - 000000000B000000000000000020000000000000FFFFFFFFFFFFFFFFD9000000E1000000F0040000E5000000000000000100000004000000010000000000000000000000FFFFFFFF08000000CB00000057010000CC000000F08B00005A01000079070000D601000045890000FFFF02000B004354616262656450616E650020000000000000D900000066000000F0040000F8000000D90000004F000000F0040000E10000000000000040280046080000000B446973617373656D626C7900000000CB00000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A6572000000005701000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A657200000000CC00000001000000FFFFFFFFFFFFFFFF0E4C6F67696320416E616C797A657200000000F08B000001000000FFFFFFFFFFFFFFFF0D436F646520436F766572616765000000005A01000001000000FFFFFFFFFFFFFFFF11496E737472756374696F6E205472616365000000007907000001000000FFFFFFFFFFFFFFFF0F53797374656D20416E616C797A657200000000D601000001000000FFFFFFFFFFFFFFFF104576656E742053746174697374696373000000004589000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFCB00000001000000FFFFFFFFCB000000000000000040000000000000FFFFFFFFFFFFFFFF170400004F0000001B04000033020000000000000200000004000000010000000000000000000000FFFFFFFF2B000000E2050000CA0900002D8C00002E8C00002F8C0000308C0000318C0000328C0000338C0000348C0000358C0000368C0000378C0000388C0000398C00003A8C00003B8C00003C8C00003D8C00003E8C00003F8C0000408C0000418C000050C3000051C3000052C3000053C3000054C3000055C3000056C3000057C3000058C3000059C300005AC300005BC300005CC300005DC300005EC300005FC3000060C3000061C3000062C3000063C30000018000400000000000001B04000066000000F00400004A0200001B0400004F000000F00400003302000000000000404100462B0000000753796D626F6C7300000000E205000001000000FFFFFFFFFFFFFFFF0A5472616365204461746100000000CA09000001000000FFFFFFFFFFFFFFFF00000000002D8C000001000000FFFFFFFFFFFFFFFF00000000002E8C000001000000FFFFFFFFFFFFFFFF00000000002F8C000001000000FFFFFFFFFFFFFFFF0000000000308C000001000000FFFFFFFFFFFFFFFF0000000000318C000001000000FFFFFFFFFFFFFFFF0000000000328C000001000000FFFFFFFFFFFFFFFF0000000000338C000001000000FFFFFFFFFFFFFFFF0000000000348C000001000000FFFFFFFFFFFFFFFF0000000000358C000001000000FFFFFFFFFFFFFFFF0000000000368C000001000000FFFFFFFFFFFFFFFF0000000000378C000001000000FFFFFFFFFFFFFFFF0000000000388C000001000000FFFFFFFFFFFFFFFF0000000000398C000001000000FFFFFFFFFFFFFFFF00000000003A8C000001000000FFFFFFFFFFFFFFFF00000000003B8C000001000000FFFFFFFFFFFFFFFF00000000003C8C000001000000FFFFFFFFFFFFFFFF00000000003D8C000001000000FFFFFFFFFFFFFFFF00000000003E8C000001000000FFFFFFFFFFFFFFFF00000000003F8C000001000000FFFFFFFFFFFFFFFF0000000000408C000001000000FFFFFFFFFFFFFFFF0000000000418C000001000000FFFFFFFFFFFFFFFF000000000050C3000001000000FFFFFFFFFFFFFFFF000000000051C3000001000000FFFFFFFFFFFFFFFF000000000052C3000001000000FFFFFFFFFFFFFFFF000000000053C3000001000000FFFFFFFFFFFFFFFF000000000054C3000001000000FFFFFFFFFFFFFFFF000000000055C3000001000000FFFFFFFFFFFFFFFF000000000056C3000001000000FFFFFFFFFFFFFFFF000000000057C3000001000000FFFFFFFFFFFFFFFF000000000058C3000001000000FFFFFFFFFFFFFFFF000000000059C3000001000000FFFFFFFFFFFFFFFF00000000005AC3000001000000FFFFFFFFFFFFFFFF00000000005BC3000001000000FFFFFFFFFFFFFFFF00000000005CC3000001000000FFFFFFFFFFFFFFFF00000000005DC3000001000000FFFFFFFFFFFFFFFF00000000005EC3000001000000FFFFFFFFFFFFFFFF00000000005FC3000001000000FFFFFFFFFFFFFFFF000000000060C3000001000000FFFFFFFFFFFFFFFF000000000061C3000001000000FFFFFFFFFFFFFFFF000000000062C3000001000000FFFFFFFFFFFFFFFF000000000063C3000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFE205000001000000FFFFFFFFE2050000000000000010000001000000FFFFFFFFFFFFFFFF160100004F0000001A0100005E03000001000000020000100400000001000000E1FEFFFF81050000FFFFFFFF05000000ED0300006D000000C3000000C4000000739400000180001000000100000000000000660000001601000075030000000000004F000000160100005E0300000000000040410056050000000750726F6A65637401000000ED03000001000000FFFFFFFFFFFFFFFF05426F6F6B73010000006D00000001000000FFFFFFFFFFFFFFFF0946756E6374696F6E7301000000C300000001000000FFFFFFFFFFFFFFFF0954656D706C6174657301000000C400000001000000FFFFFFFFFFFFFFFF09526567697374657273000000007394000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFED03000001000000FFFFFFFFED030000000000000080000000000000FFFFFFFFFFFFFFFF000000001F020000F00400002302000000000000010000000400000001000000000000000000000000000000000000000000000001000000C6000000FFFFFFFF0F0000008F070000930700009407000095070000960700009007000091070000B5010000B801000038030000B9050000BA050000BB050000BC050000CB09000001800080000000000000000000003A020000F0040000E00200000000000023020000F0040000C902000000000000404100460F0000001343616C6C20537461636B202B204C6F63616C73000000008F07000001000000FFFFFFFFFFFFFFFF0755415254202331000000009307000001000000FFFFFFFFFFFFFFFF0755415254202332000000009407000001000000FFFFFFFFFFFFFFFF0755415254202333000000009507000001000000FFFFFFFFFFFFFFFF15446562756720287072696E74662920566965776572000000009607000001000000FFFFFFFFFFFFFFFF0757617463682031000000009007000001000000FFFFFFFFFFFFFFFF0757617463682032000000009107000001000000FFFFFFFFFFFFFFFF10547261636520457863657074696F6E7300000000B501000001000000FFFFFFFFFFFFFFFF0E4576656E7420436F756E7465727300000000B801000001000000FFFFFFFFFFFFFFFF09554C494E4B706C7573000000003803000001000000FFFFFFFFFFFFFFFF084D656D6F7279203100000000B905000001000000FFFFFFFFFFFFFFFF084D656D6F7279203200000000BA05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203300000000BB05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203400000000BC05000001000000FFFFFFFFFFFFFFFF105472616365204E617669676174696F6E00000000CB09000001000000FFFFFFFFFFFFFFFFFFFFFFFF0000000001000000000000000000000001000000FFFFFFFF78020000230200007C020000C902000000000000020000000400000000000000000000000000000000000000000000000000000002000000C6000000FFFFFFFF8F07000001000000FFFFFFFF8F07000001000000C6000000000000000080000001000000FFFFFFFFFFFFFFFF000000005E030000AB060000620300000100000001000010040000000100000058FCFFFFFFFFFFFFFFFFFFFF06000000C5000000C7000000B4010000D2010000CF01000077940000018000800000010000000000000079030000AB060000180400000000000062030000AB060000010400000000000040820056060000000C4275696C64204F757470757401000000C500000001000000FFFFFFFFFFFFFFFF0D46696E6420496E2046696C657300000000C700000001000000FFFFFFFFFFFFFFFF0A4572726F72204C69737400000000B401000001000000FFFFFFFFFFFFFFFF0E536F757263652042726F7773657200000000D201000001000000FFFFFFFFFFFFFFFF0E416C6C205265666572656E63657300000000CF01000001000000FFFFFFFFFFFFFFFF0742726F77736572010000007794000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFC500000001000000FFFFFFFFC5000000000000000000000000000000 + 000000000B000000000000000020000000000000FFFFFFFFFFFFFFFFD9000000E1000000F0040000E5000000000000000100000004000000010000000000000000000000FFFFFFFF08000000CB00000057010000CC000000F08B00005A01000079070000D601000045890000FFFF02000B004354616262656450616E650020000000000000D900000066000000F0040000F8000000D90000004F000000F0040000E10000000000000040280046080000000B446973617373656D626C7900000000CB00000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A6572000000005701000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A657200000000CC00000001000000FFFFFFFFFFFFFFFF0E4C6F67696320416E616C797A657200000000F08B000001000000FFFFFFFFFFFFFFFF0D436F646520436F766572616765000000005A01000001000000FFFFFFFFFFFFFFFF11496E737472756374696F6E205472616365000000007907000001000000FFFFFFFFFFFFFFFF0F53797374656D20416E616C797A657200000000D601000001000000FFFFFFFFFFFFFFFF104576656E742053746174697374696373000000004589000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFCB00000001000000FFFFFFFFCB000000000000000040000000000000FFFFFFFFFFFFFFFF170400004F0000001B04000033020000000000000200000004000000010000000000000000000000FFFFFFFF2B000000E2050000CA0900002D8C00002E8C00002F8C0000308C0000318C0000328C0000338C0000348C0000358C0000368C0000378C0000388C0000398C00003A8C00003B8C00003C8C00003D8C00003E8C00003F8C0000408C0000418C000050C3000051C3000052C3000053C3000054C3000055C3000056C3000057C3000058C3000059C300005AC300005BC300005CC300005DC300005EC300005FC3000060C3000061C3000062C3000063C30000018000400000000000001B04000066000000F00400004A0200001B0400004F000000F00400003302000000000000404100462B0000000753796D626F6C7300000000E205000001000000FFFFFFFFFFFFFFFF0A5472616365204461746100000000CA09000001000000FFFFFFFFFFFFFFFF00000000002D8C000001000000FFFFFFFFFFFFFFFF00000000002E8C000001000000FFFFFFFFFFFFFFFF00000000002F8C000001000000FFFFFFFFFFFFFFFF0000000000308C000001000000FFFFFFFFFFFFFFFF0000000000318C000001000000FFFFFFFFFFFFFFFF0000000000328C000001000000FFFFFFFFFFFFFFFF0000000000338C000001000000FFFFFFFFFFFFFFFF0000000000348C000001000000FFFFFFFFFFFFFFFF0000000000358C000001000000FFFFFFFFFFFFFFFF0000000000368C000001000000FFFFFFFFFFFFFFFF0000000000378C000001000000FFFFFFFFFFFFFFFF0000000000388C000001000000FFFFFFFFFFFFFFFF0000000000398C000001000000FFFFFFFFFFFFFFFF00000000003A8C000001000000FFFFFFFFFFFFFFFF00000000003B8C000001000000FFFFFFFFFFFFFFFF00000000003C8C000001000000FFFFFFFFFFFFFFFF00000000003D8C000001000000FFFFFFFFFFFFFFFF00000000003E8C000001000000FFFFFFFFFFFFFFFF00000000003F8C000001000000FFFFFFFFFFFFFFFF0000000000408C000001000000FFFFFFFFFFFFFFFF0000000000418C000001000000FFFFFFFFFFFFFFFF000000000050C3000001000000FFFFFFFFFFFFFFFF000000000051C3000001000000FFFFFFFFFFFFFFFF000000000052C3000001000000FFFFFFFFFFFFFFFF000000000053C3000001000000FFFFFFFFFFFFFFFF000000000054C3000001000000FFFFFFFFFFFFFFFF000000000055C3000001000000FFFFFFFFFFFFFFFF000000000056C3000001000000FFFFFFFFFFFFFFFF000000000057C3000001000000FFFFFFFFFFFFFFFF000000000058C3000001000000FFFFFFFFFFFFFFFF000000000059C3000001000000FFFFFFFFFFFFFFFF00000000005AC3000001000000FFFFFFFFFFFFFFFF00000000005BC3000001000000FFFFFFFFFFFFFFFF00000000005CC3000001000000FFFFFFFFFFFFFFFF00000000005DC3000001000000FFFFFFFFFFFFFFFF00000000005EC3000001000000FFFFFFFFFFFFFFFF00000000005FC3000001000000FFFFFFFFFFFFFFFF000000000060C3000001000000FFFFFFFFFFFFFFFF000000000061C3000001000000FFFFFFFFFFFFFFFF000000000062C3000001000000FFFFFFFFFFFFFFFF000000000063C3000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFE205000001000000FFFFFFFFE2050000000000000010000001000000FFFFFFFFFFFFFFFFFC0000004F000000000100005E030000010000000200001004000000010000004FFFFFFFEF050000FFFFFFFF05000000ED0300006D000000C3000000C400000073940000018000100000010000000000000066000000FC00000075030000000000004F000000FC0000005E0300000000000040410056050000000750726F6A65637401000000ED03000001000000FFFFFFFFFFFFFFFF05426F6F6B73010000006D00000001000000FFFFFFFFFFFFFFFF0946756E6374696F6E7301000000C300000001000000FFFFFFFFFFFFFFFF0954656D706C6174657301000000C400000001000000FFFFFFFFFFFFFFFF09526567697374657273000000007394000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFED03000001000000FFFFFFFFED030000000000000080000000000000FFFFFFFFFFFFFFFF000000001F020000F00400002302000000000000010000000400000001000000000000000000000000000000000000000000000001000000C6000000FFFFFFFF0F0000008F070000930700009407000095070000960700009007000091070000B5010000B801000038030000B9050000BA050000BB050000BC050000CB09000001800080000000000000000000003A020000F0040000E00200000000000023020000F0040000C902000000000000404100460F0000001343616C6C20537461636B202B204C6F63616C73000000008F07000001000000FFFFFFFFFFFFFFFF0755415254202331000000009307000001000000FFFFFFFFFFFFFFFF0755415254202332000000009407000001000000FFFFFFFFFFFFFFFF0755415254202333000000009507000001000000FFFFFFFFFFFFFFFF15446562756720287072696E74662920566965776572000000009607000001000000FFFFFFFFFFFFFFFF0757617463682031000000009007000001000000FFFFFFFFFFFFFFFF0757617463682032000000009107000001000000FFFFFFFFFFFFFFFF10547261636520457863657074696F6E7300000000B501000001000000FFFFFFFFFFFFFFFF0E4576656E7420436F756E7465727300000000B801000001000000FFFFFFFFFFFFFFFF09554C494E4B706C7573000000003803000001000000FFFFFFFFFFFFFFFF084D656D6F7279203100000000B905000001000000FFFFFFFFFFFFFFFF084D656D6F7279203200000000BA05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203300000000BB05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203400000000BC05000001000000FFFFFFFFFFFFFFFF105472616365204E617669676174696F6E00000000CB09000001000000FFFFFFFFFFFFFFFFFFFFFFFF0000000001000000000000000000000001000000FFFFFFFF78020000230200007C020000C902000000000000020000000400000000000000000000000000000000000000000000000000000002000000C6000000FFFFFFFF8F07000001000000FFFFFFFF8F07000001000000C6000000000000000080000001000000FFFFFFFFFFFFFFFF000000005E030000AB060000620300000100000001000010040000000100000058FCFFFFFFFFFFFFFFFFFFFF06000000C5000000C7000000B4010000D2010000CF01000077940000018000800000010000000000000079030000AB060000180400000000000062030000AB060000010400000000000040820056060000000C4275696C64204F757470757401000000C500000001000000FFFFFFFFFFFFFFFF0D46696E6420496E2046696C657300000000C700000001000000FFFFFFFFFFFFFFFF0A4572726F72204C69737400000000B401000001000000FFFFFFFFFFFFFFFF0E536F757263652042726F7773657200000000D201000001000000FFFFFFFFFFFFFFFF0E416C6C205265666572656E63657300000000CF01000001000000FFFFFFFFFFFFFFFF0742726F77736572010000007794000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFC500000001000000FFFFFFFFC5000000000000000000000000000000 59392 File - 2975 - 00200000010000002800FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000000000000000000000000000000000000000100000001000000018001E100000000000001000000000000000000000000000000000100000001000000018003E1000000000000020000000000000000000000000000000001000000010000000180CD7F0000000000000300000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018023E100000000040004000000000000000000000000000000000100000001000000018022E100000000040005000000000000000000000000000000000100000001000000018025E10000000000000600000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001802BE10000000000000700000000000000000000000000000000010000000100000001802CE10000000004000800000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001807A8A0000000000000900000000000000000000000000000000010000000100000001807B8A0000000004000A00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180D3B00000000000000B000000000000000000000000000000000100000001000000018015B10000000004000C0000000000000000000000000000000001000000010000000180F4B00000000004000D000000000000000000000000000000000100000001000000018036B10000000004000E00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FF88000000000400460000000000000000000000000000000001000000010000000180FE880000000004004500000000000000000000000000000000010000000100000001800B810000000004001300000000000000000000000000000000010000000100000001800C810000000004001400000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180F0880000020000000F000000000000000000000000000000000100000001000000FFFF0100120043555646696E64436F6D626F427574746F6EE803000000000000000000000000000000000000000000000001000000010000009600000002002050000000000B4255464645525F53495A45960000000000000014000B4255464645525F53495A450A646D615F6275666665721653583132383148616C526561645265676973746572730C52656164526567697374657209632D3E706172616D7329732D3E666565646261636B2E747269672E666565646261636B2E726F746F725F6162735F616E676C6511636D642D3E6C6173745F66697265636D640C666565646261636B5F72706D1448414C5F554152545F526563656976655F444D41134D585F5553415254335F554152545F496E6974184253505F43414E5F526567697374657243616C6C6261636B136874696D312E496E7374616E63652D3E4152520E73746D3332667878785F69742E63067072696E74661F43414E5F72656D6F74655F7472616E736D697373696F6E5F72657175657374142043414E5F6964656E7469666965725F74797065034944450E43414E5F333530385F4D325F4944116765745F6D6F746F725F6D6561737572650654585F4F4B200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018024E10000000000001100000000000000000000000000000000010000000100000001800A810000000000001200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E2280000002000000150000002153746172742F53746F70202644656275672053657373696F6E094374726C2B46350000000000000000000000000100000001000000000000000000000001000000020021802280000000000000150000002153746172742F53746F70202644656275672053657373696F6E094374726C2B4635000000000000000000000000010000000100000000000000000000000100000000002180E0010000000000007500000021456E65726779204D6561737572656D656E742026776974686F75742044656275670000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C488000000000000160000000000000000000000000000000001000000010000000180C988000000000400180000000000000000000000000000000001000000010000000180C788000000000000190000000000000000000000000000000001000000010000002180C8880000000000001700000027264B696C6C20416C6C20427265616B706F696E747320696E2043757272656E7420546172676574000000000000000000000000010000000100000000000000000000000100000003002180C8880000000000001700000027264B696C6C20416C6C20427265616B706F696E747320696E2043757272656E7420546172676574000000000000000000000000010000000100000000000000000000000100000000002180E50100000000000078000000264B696C6C20416C6C20427265616B706F696E747320696E204163746976652050726F6A656374000000000000000000000000010000000100000000000000000000000100000000002180E601000000000000790000002F4B696C6C20416C6C20427265616B706F696E747320696E204D756C74692D50726F6A65637420576F726B73706163650000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000021804C010000020001001A0000000F2650726F6A6563742057696E646F77000000000000000000000000010000000100000000000000000000000100000008002180DD880000000000001A0000000750726F6A656374000000000000000000000000010000000100000000000000000000000100000000002180DC8B0000000000003A00000005426F6F6B73000000000000000000000000010000000100000000000000000000000100000000002180E18B0000000000003B0000000946756E6374696F6E73000000000000000000000000010000000100000000000000000000000100000000002180E28B000000000000400000000954656D706C6174657300000000000000000000000001000000010000000000000000000000010000000000218018890000000000003D0000000E536F757263652042726F777365720000000000000000000000000100000001000000000000000000000001000000000021800000000000000400FFFFFFFF00000000000000000001000000000000000100000000000000000000000100000000002180D988000000000000390000000C4275696C64204F7574707574000000000000000000000000010000000100000000000000000000000100000000002180E38B000000000000410000000B46696E64204F75747075740000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FB7F0000000000001B000000000000000000000000000000000100000001000000000000000446696C65C6030000 + 2968 + 00200000010000002800FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000000000000000000000000000000000000000100000001000000018001E100000000000001000000000000000000000000000000000100000001000000018003E1000000000000020000000000000000000000000000000001000000010000000180CD7F0000000000000300000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018023E100000000040004000000000000000000000000000000000100000001000000018022E100000000040005000000000000000000000000000000000100000001000000018025E10000000000000600000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001802BE10000000000000700000000000000000000000000000000010000000100000001802CE10000000004000800000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001807A8A0000000000000900000000000000000000000000000000010000000100000001807B8A0000000000000A00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180D3B00000000000000B000000000000000000000000000000000100000001000000018015B10000000004000C0000000000000000000000000000000001000000010000000180F4B00000000004000D000000000000000000000000000000000100000001000000018036B10000000004000E00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FF88000000000400460000000000000000000000000000000001000000010000000180FE880000000004004500000000000000000000000000000000010000000100000001800B810000000004001300000000000000000000000000000000010000000100000001800C810000000004001400000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180F0880000020000000F000000000000000000000000000000000100000001000000FFFF0100120043555646696E64436F6D626F427574746F6EE8030000000000000000000000000000000000000000000000010000000100000096000000020020500000000004646174619600000000000000140012464C4153485F547970655F50726F6772616D0F464C4153485F42414E4B785F454E440D464C41534845785F42616E6B7312464C41534845785F547970655F457261736517464C4153485F5459504545524153455F534543544F525304646174610B4255464645525F53495A450A646D615F6275666665721653583132383148616C526561645265676973746572730C52656164526567697374657209632D3E706172616D7329732D3E666565646261636B2E747269672E666565646261636B2E726F746F725F6162735F616E676C6511636D642D3E6C6173745F66697265636D640C666565646261636B5F72706D1448414C5F554152545F526563656976655F444D41134D585F5553415254335F554152545F496E6974184253505F43414E5F526567697374657243616C6C6261636B136874696D312E496E7374616E63652D3E4152520E73746D3332667878785F69742E63067072696E74660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018024E10000000000001100000000000000000000000000000000010000000100000001800A810000000000001200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E2280000002000000150000002153746172742F53746F70202644656275672053657373696F6E094374726C2B46350000000000000000000000000100000001000000000000000000000001000000020021802280000000000000150000002153746172742F53746F70202644656275672053657373696F6E094374726C2B4635000000000000000000000000010000000100000000000000000000000100000000002180E0010000000000007500000021456E65726779204D6561737572656D656E742026776974686F75742044656275670000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C488000000000000160000000000000000000000000000000001000000010000000180C988000000000400180000000000000000000000000000000001000000010000000180C788000000000000190000000000000000000000000000000001000000010000002180C8880000000000001700000027264B696C6C20416C6C20427265616B706F696E747320696E2043757272656E7420546172676574000000000000000000000000010000000100000000000000000000000100000003002180C8880000000000001700000027264B696C6C20416C6C20427265616B706F696E747320696E2043757272656E7420546172676574000000000000000000000000010000000100000000000000000000000100000000002180E50100000000000078000000264B696C6C20416C6C20427265616B706F696E747320696E204163746976652050726F6A656374000000000000000000000000010000000100000000000000000000000100000000002180E601000000000000790000002F4B696C6C20416C6C20427265616B706F696E747320696E204D756C74692D50726F6A65637420576F726B73706163650000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000021804C010000020001001A0000000F2650726F6A6563742057696E646F77000000000000000000000000010000000100000000000000000000000100000008002180DD880000000000001A0000000750726F6A656374000000000000000000000000010000000100000000000000000000000100000000002180DC8B0000000000003A00000005426F6F6B73000000000000000000000000010000000100000000000000000000000100000000002180E18B0000000000003B0000000946756E6374696F6E73000000000000000000000000010000000100000000000000000000000100000000002180E28B000000000000400000000954656D706C6174657300000000000000000000000001000000010000000000000000000000010000000000218018890000000000003D0000000E536F757263652042726F777365720000000000000000000000000100000001000000000000000000000001000000000021800000000000000400FFFFFFFF00000000000000000001000000000000000100000000000000000000000100000000002180D988000000000000390000000C4275696C64204F7574707574000000000000000000000000010000000100000000000000000000000100000000002180E38B000000000000410000000B46696E64204F75747075740000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FB7F0000000000001B000000000000000000000000000000000100000001000000000000000446696C65C6030000 1423 @@ -1822,7 +1822,7 @@ Build 968 - 00200000010000001000FFFF01001100434D4643546F6F6C426172427574746F6ECF7F0000000000001C0000000000000000000000000000000001000000010000000180D07F0000000002001D000000000000000000000000000000000100000001000000018030800000000000001E000000000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6EC7040000000000006A0000000C4261746368204275696C2664000000000000000000000000010000000100000000000000000000000100000004000580C7040000000000006A0000000C4261746368204275696C266400000000000000000000000001000000010000000000000000000000010000000000058046070000000000006B0000000D42617463682052656275696C640000000000000000000000000100000001000000000000000000000001000000000005804707000000000000FFFFFFFF0B426174636820436C65616E0000000000000000010000000000000001000000000000000000000001000000000005809E8A0000000000001F0000000F4261746326682053657475702E2E2E000000000000000000000000010000000100000000000000000000000100000000000180D17F0000000004002000000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001804C8A0000000000002100000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6EBA0000000000000000000000000000000000000000000000000100000001000000960000000300205000000000044D52313696000000000000000100044D523136000000000180EB880000000000002200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C07F000000000000230000000000000000000000000000000001000000010000000180B08A000000000400240000000000000000000000000000000001000000010000000180A8010000000000004E00000000000000000000000000000000010000000100000001807202000000000000530000000000000000000000000000000001000000010000000180BE010000000000005000000000000000000000000000000000010000000100000000000000054275696C64DC010000 + 00200000010000001000FFFF01001100434D4643546F6F6C426172427574746F6ECF7F0000000000001C0000000000000000000000000000000001000000010000000180D07F0000000002001D000000000000000000000000000000000100000001000000018030800000000000001E000000000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6EC7040000000000006A0000000C4261746368204275696C2664000000000000000000000000010000000100000000000000000000000100000004000580C7040000000000006A0000000C4261746368204275696C266400000000000000000000000001000000010000000000000000000000010000000000058046070000000000006B0000000D42617463682052656275696C640000000000000000000000000100000001000000000000000000000001000000000005804707000000000000FFFFFFFF0B426174636820436C65616E0100000000000000010000000000000001000000000000000000000001000000000005809E8A0000000000001F0000000F4261746326682053657475702E2E2E000000000000000000000000010000000100000000000000000000000100000000000180D17F0000000004002000000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001804C8A0000000000002100000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6EBA0000000000000000000000000000000000000000000000000100000001000000960000000300205000000000044D52313696000000000000000100044D523136000000000180EB880000000000002200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C07F000000000000230000000000000000000000000000000001000000010000000180B08A000000000400240000000000000000000000000000000001000000010000000180A8010000000000004E00000000000000000000000000000000010000000100000001807202000000000000530000000000000000000000000000000001000000010000000180BE010000000000005000000000000000000000000000000000010000000100000000000000054275696C64DC010000 583 @@ -1867,15 +1867,15 @@ 0 32767 0 - 4096 + 16384 0 16 - 15040000E5000000AB06000055030000 + B204000058000000AB06000072030000 16 - 15040000FC000000AB0600006C030000 + 670400006F000000AB06000089030000 @@ -1891,7 +1891,7 @@ 0 16 - 0300000066000000D20000003C030000 + 0300000066000000D200000059030000 16 @@ -1911,7 +1911,7 @@ 0 16 - 0300000066000000D20000003C030000 + 0300000066000000D200000059030000 16 @@ -1931,7 +1931,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000A806000059030000 16 @@ -1951,7 +1951,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -1971,7 +1971,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -1991,7 +1991,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -2031,7 +2031,7 @@ 0 16 - DC00000066000000A8060000C8000000 + DC00000066000000A806000066000000 16 @@ -2051,7 +2051,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000A806000059030000 16 @@ -2071,7 +2071,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000A806000059030000 16 @@ -2091,7 +2091,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000A806000059030000 16 @@ -2111,7 +2111,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -2131,7 +2131,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -2151,7 +2151,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -2171,7 +2171,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -2191,7 +2191,7 @@ 0 16 - 0300000066000000D20000003C030000 + 0300000066000000D200000059030000 16 @@ -2211,7 +2211,7 @@ 0 16 - 0300000066000000D20000003C030000 + 0300000066000000D200000059030000 16 @@ -2251,7 +2251,7 @@ 0 16 - 0000000059030000AB06000001040000 + 0000000076030000AB06000001040000 16 @@ -2291,7 +2291,7 @@ 0 16 - D900000063000000AB060000E1000000 + D900000063000000AB06000063000000 16 @@ -2311,7 +2311,7 @@ 0 16 - DC00000066000000A8060000C8000000 + DC00000066000000A806000066000000 16 @@ -2371,7 +2371,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -2391,7 +2391,7 @@ 0 16 - DC00000066000000A8060000C8000000 + DC00000066000000A806000066000000 16 @@ -2411,7 +2411,7 @@ 0 16 - DC00000066000000A8060000C8000000 + DC00000066000000A806000066000000 16 @@ -2431,7 +2431,7 @@ 0 16 - DC00000066000000A8060000C8000000 + DC00000066000000A806000066000000 16 @@ -2451,7 +2451,7 @@ 0 16 - DC00000066000000A8060000C8000000 + DC00000066000000A806000066000000 16 @@ -2891,7 +2891,7 @@ 0 16 - 0300000066000000D20000003C030000 + 0300000066000000D200000059030000 16 @@ -2951,7 +2951,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -2971,7 +2971,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -3031,7 +3031,7 @@ 0 16 - DC00000066000000A8060000C8000000 + DC00000066000000A806000066000000 16 @@ -3531,7 +3531,7 @@ 0 16 - 18040000FC000000A80600003C030000 + B50400006F000000F306000059030000 16 @@ -3540,14 +3540,14 @@ 3415 - 000000000C000000000000000040000001000000FFFFFFFFFFFFFFFF11040000E50000001504000055030000010000000200001004000000010000008CFCFFFF5302000000000000000000000000000001000000FFFFFFFF0F0000008F070000930700009407000095070000960700009007000091070000B5010000B801000038030000B9050000BA050000BB050000BC050000CB090000FFFF02000B004354616262656450616E65004000000100000015040000FC000000AB0600006C03000015040000E5000000AB0600005503000000000000404100560F0000001343616C6C20537461636B202B204C6F63616C73010000008F07000001000000FFFFFFFFFFFFFFFF0755415254202331000000009307000001000000FFFFFFFFFFFFFFFF0755415254202332000000009407000001000000FFFFFFFFFFFFFFFF0755415254202333000000009507000001000000FFFFFFFFFFFFFFFF15446562756720287072696E74662920566965776572000000009607000001000000FFFFFFFFFFFFFFFF0757617463682031010000009007000001000000FFFFFFFFFFFFFFFF0757617463682032010000009107000001000000FFFFFFFFFFFFFFFF10547261636520457863657074696F6E7300000000B501000001000000FFFFFFFFFFFFFFFF0E4576656E7420436F756E7465727300000000B801000001000000FFFFFFFFFFFFFFFF09554C494E4B706C7573000000003803000001000000FFFFFFFFFFFFFFFF084D656D6F7279203101000000B905000001000000FFFFFFFFFFFFFFFF084D656D6F7279203200000000BA05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203300000000BB05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203400000000BC05000001000000FFFFFFFFFFFFFFFF105472616365204E617669676174696F6E00000000CB09000001000000FFFFFFFFFFFFFFFF0500000000000000000000000000000000000000000000000000000001000000FFFFFFFF8F07000001000000FFFFFFFF8F070000000000000020000001000000FFFFFFFFFFFFFFFFD9000000E1000000AB060000E5000000010000000100001004000000010000000000000000000000FFFFFFFF08000000CB00000057010000CC000000F08B00005A01000079070000D60100004589000001800020000001000000D900000066000000AB060000F8000000D90000004F000000AB060000E10000000000000040280056080000000B446973617373656D626C7901000000CB00000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A6572000000005701000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A657200000000CC00000001000000FFFFFFFFFFFFFFFF0E4C6F67696320416E616C797A657200000000F08B000001000000FFFFFFFFFFFFFFFF0D436F646520436F766572616765000000005A01000001000000FFFFFFFFFFFFFFFF11496E737472756374696F6E205472616365000000007907000001000000FFFFFFFFFFFFFFFF0F53797374656D20416E616C797A657200000000D601000001000000FFFFFFFFFFFFFFFF104576656E742053746174697374696373000000004589000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFCB00000001000000FFFFFFFFCB000000000000000040000000000000FFFFFFFFFFFFFFFF170400004F0000001B04000033020000000000000200000004000000010000000000000000000000FFFFFFFF2B000000E2050000CA0900002D8C00002E8C00002F8C0000308C0000318C0000328C0000338C0000348C0000358C0000368C0000378C0000388C0000398C00003A8C00003B8C00003C8C00003D8C00003E8C00003F8C0000408C0000418C000050C3000051C3000052C3000053C3000054C3000055C3000056C3000057C3000058C3000059C300005AC300005BC300005CC300005DC300005EC300005FC3000060C3000061C3000062C3000063C30000018000400000000000001B04000066000000F00400004A0200001B0400004F000000F00400003302000000000000404100462B0000000753796D626F6C7300000000E205000001000000FFFFFFFFFFFFFFFF0A5472616365204461746100000000CA09000001000000FFFFFFFFFFFFFFFF00000000002D8C000001000000FFFFFFFFFFFFFFFF00000000002E8C000001000000FFFFFFFFFFFFFFFF00000000002F8C000001000000FFFFFFFFFFFFFFFF0000000000308C000001000000FFFFFFFFFFFFFFFF0000000000318C000001000000FFFFFFFFFFFFFFFF0000000000328C000001000000FFFFFFFFFFFFFFFF0000000000338C000001000000FFFFFFFFFFFFFFFF0000000000348C000001000000FFFFFFFFFFFFFFFF0000000000358C000001000000FFFFFFFFFFFFFFFF0000000000368C000001000000FFFFFFFFFFFFFFFF0000000000378C000001000000FFFFFFFFFFFFFFFF0000000000388C000001000000FFFFFFFFFFFFFFFF0000000000398C000001000000FFFFFFFFFFFFFFFF00000000003A8C000001000000FFFFFFFFFFFFFFFF00000000003B8C000001000000FFFFFFFFFFFFFFFF00000000003C8C000001000000FFFFFFFFFFFFFFFF00000000003D8C000001000000FFFFFFFFFFFFFFFF00000000003E8C000001000000FFFFFFFFFFFFFFFF00000000003F8C000001000000FFFFFFFFFFFFFFFF0000000000408C000001000000FFFFFFFFFFFFFFFF0000000000418C000001000000FFFFFFFFFFFFFFFF000000000050C3000001000000FFFFFFFFFFFFFFFF000000000051C3000001000000FFFFFFFFFFFFFFFF000000000052C3000001000000FFFFFFFFFFFFFFFF000000000053C3000001000000FFFFFFFFFFFFFFFF000000000054C3000001000000FFFFFFFFFFFFFFFF000000000055C3000001000000FFFFFFFFFFFFFFFF000000000056C3000001000000FFFFFFFFFFFFFFFF000000000057C3000001000000FFFFFFFFFFFFFFFF000000000058C3000001000000FFFFFFFFFFFFFFFF000000000059C3000001000000FFFFFFFFFFFFFFFF00000000005AC3000001000000FFFFFFFFFFFFFFFF00000000005BC3000001000000FFFFFFFFFFFFFFFF00000000005CC3000001000000FFFFFFFFFFFFFFFF00000000005DC3000001000000FFFFFFFFFFFFFFFF00000000005EC3000001000000FFFFFFFFFFFFFFFF00000000005FC3000001000000FFFFFFFFFFFFFFFF000000000060C3000001000000FFFFFFFFFFFFFFFF000000000061C3000001000000FFFFFFFFFFFFFFFF000000000062C3000001000000FFFFFFFFFFFFFFFF000000000063C3000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFE205000001000000FFFFFFFFE2050000000000000010000001000000FFFFFFFFFFFFFFFFD50000004F000000D900000055030000010000000200001004000000010000000000000000000000FFFFFFFF05000000ED0300006D000000C3000000C400000073940000018000100000010000000000000066000000D50000006C030000000000004F000000D5000000550300000000000040410056050000000750726F6A65637401000000ED03000001000000FFFFFFFFFFFFFFFF05426F6F6B73000000006D00000001000000FFFFFFFFFFFFFFFF0946756E6374696F6E7300000000C300000001000000FFFFFFFFFFFFFFFF0954656D706C6174657300000000C400000001000000FFFFFFFFFFFFFFFF09526567697374657273010000007394000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFED03000001000000FFFFFFFFED030000000000000080000001000000FFFFFFFFFFFFFFFF0000000055030000AB060000590300000100000001000010040000000100000093FDFFFF4100000000000000000000000000000001000000C60000000000000001000000000000000000000001000000FFFFFFFF550300005B030000590300000104000000000000020000000400000000000000000000000000000000000000000000000000000001000000C600000001000000C6000000000000000080000000000000FFFFFFFFFFFFFFFF0000000033020000F004000037020000000000000100000004000000010000000000000000000000FFFFFFFF06000000C5000000C7000000B4010000D2010000CF0100007794000001800080000000000000000000004E020000F0040000E00200000000000037020000F0040000C90200000000000040820046060000000C4275696C64204F757470757400000000C500000001000000FFFFFFFFFFFFFFFF0D46696E6420496E2046696C657300000000C700000001000000FFFFFFFFFFFFFFFF0A4572726F72204C69737400000000B401000001000000FFFFFFFFFFFFFFFF0E536F757263652042726F7773657200000000D201000001000000FFFFFFFFFFFFFFFF0E416C6C205265666572656E63657300000000CF01000001000000FFFFFFFFFFFFFFFF0642726F777365000000007794000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFC500000001000000FFFFFFFFC5000000000000000000000000000000 + 000000000C000000000000000040000001000000FFFFFFFFFFFFFFFFAE04000058000000B204000072030000010000000200001004000000010000007BFCFFFF4202000000000000000000000000000001000000FFFFFFFF0F0000008F070000930700009407000095070000960700009007000091070000B5010000B801000038030000B9050000BA050000BB050000BC050000CB090000FFFF02000B004354616262656450616E650040000001000000670400006F000000AB06000089030000B204000058000000AB0600007203000000000000404100560F0000001343616C6C20537461636B202B204C6F63616C73010000008F07000001000000FFFFFFFFFFFFFFFF0755415254202331000000009307000001000000FFFFFFFFFFFFFFFF0755415254202332000000009407000001000000FFFFFFFFFFFFFFFF0755415254202333000000009507000001000000FFFFFFFFFFFFFFFF15446562756720287072696E74662920566965776572000000009607000001000000FFFFFFFFFFFFFFFF0757617463682031010000009007000001000000FFFFFFFFFFFFFFFF0757617463682032010000009107000001000000FFFFFFFFFFFFFFFF10547261636520457863657074696F6E7300000000B501000001000000FFFFFFFFFFFFFFFF0E4576656E7420436F756E7465727300000000B801000001000000FFFFFFFFFFFFFFFF09554C494E4B706C7573000000003803000001000000FFFFFFFFFFFFFFFF084D656D6F7279203101000000B905000001000000FFFFFFFFFFFFFFFF084D656D6F7279203200000000BA05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203300000000BB05000001000000FFFFFFFFFFFFFFFF084D656D6F7279203400000000BC05000001000000FFFFFFFFFFFFFFFF105472616365204E617669676174696F6E00000000CB09000001000000FFFFFFFFFFFFFFFF0A00000000000000000000000000000000000000000000000000000001000000FFFFFFFF8F07000001000000FFFFFFFF8F070000000000000020000001000000FFFFFFFFFFFFFFFFD900000054000000AB060000580000000100000001000010040000000100000070FFFFFF68010000FFFFFFFF08000000CB00000057010000CC000000F08B00005A01000079070000D60100004589000001800020000001000000D900000066000000AB0600006B000000D90000004F000000AB060000540000000000000040280056080000000B446973617373656D626C7901000000CB00000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A6572000000005701000001000000FFFFFFFFFFFFFFFF14506572666F726D616E636520416E616C797A657200000000CC00000001000000FFFFFFFFFFFFFFFF0E4C6F67696320416E616C797A657200000000F08B000001000000FFFFFFFFFFFFFFFF0D436F646520436F766572616765000000005A01000001000000FFFFFFFFFFFFFFFF11496E737472756374696F6E205472616365000000007907000001000000FFFFFFFFFFFFFFFF0F53797374656D20416E616C797A657200000000D601000001000000FFFFFFFFFFFFFFFF104576656E742053746174697374696373000000004589000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFCB00000001000000FFFFFFFFCB000000000000000040000000000000FFFFFFFFFFFFFFFF170400004F0000001B04000033020000000000000200000004000000010000000000000000000000FFFFFFFF2B000000E2050000CA0900002D8C00002E8C00002F8C0000308C0000318C0000328C0000338C0000348C0000358C0000368C0000378C0000388C0000398C00003A8C00003B8C00003C8C00003D8C00003E8C00003F8C0000408C0000418C000050C3000051C3000052C3000053C3000054C3000055C3000056C3000057C3000058C3000059C300005AC300005BC300005CC300005DC300005EC300005FC3000060C3000061C3000062C3000063C30000018000400000000000001B04000066000000F00400004A0200001B0400004F000000F00400003302000000000000404100462B0000000753796D626F6C7300000000E205000001000000FFFFFFFFFFFFFFFF0A5472616365204461746100000000CA09000001000000FFFFFFFFFFFFFFFF00000000002D8C000001000000FFFFFFFFFFFFFFFF00000000002E8C000001000000FFFFFFFFFFFFFFFF00000000002F8C000001000000FFFFFFFFFFFFFFFF0000000000308C000001000000FFFFFFFFFFFFFFFF0000000000318C000001000000FFFFFFFFFFFFFFFF0000000000328C000001000000FFFFFFFFFFFFFFFF0000000000338C000001000000FFFFFFFFFFFFFFFF0000000000348C000001000000FFFFFFFFFFFFFFFF0000000000358C000001000000FFFFFFFFFFFFFFFF0000000000368C000001000000FFFFFFFFFFFFFFFF0000000000378C000001000000FFFFFFFFFFFFFFFF0000000000388C000001000000FFFFFFFFFFFFFFFF0000000000398C000001000000FFFFFFFFFFFFFFFF00000000003A8C000001000000FFFFFFFFFFFFFFFF00000000003B8C000001000000FFFFFFFFFFFFFFFF00000000003C8C000001000000FFFFFFFFFFFFFFFF00000000003D8C000001000000FFFFFFFFFFFFFFFF00000000003E8C000001000000FFFFFFFFFFFFFFFF00000000003F8C000001000000FFFFFFFFFFFFFFFF0000000000408C000001000000FFFFFFFFFFFFFFFF0000000000418C000001000000FFFFFFFFFFFFFFFF000000000050C3000001000000FFFFFFFFFFFFFFFF000000000051C3000001000000FFFFFFFFFFFFFFFF000000000052C3000001000000FFFFFFFFFFFFFFFF000000000053C3000001000000FFFFFFFFFFFFFFFF000000000054C3000001000000FFFFFFFFFFFFFFFF000000000055C3000001000000FFFFFFFFFFFFFFFF000000000056C3000001000000FFFFFFFFFFFFFFFF000000000057C3000001000000FFFFFFFFFFFFFFFF000000000058C3000001000000FFFFFFFFFFFFFFFF000000000059C3000001000000FFFFFFFFFFFFFFFF00000000005AC3000001000000FFFFFFFFFFFFFFFF00000000005BC3000001000000FFFFFFFFFFFFFFFF00000000005CC3000001000000FFFFFFFFFFFFFFFF00000000005DC3000001000000FFFFFFFFFFFFFFFF00000000005EC3000001000000FFFFFFFFFFFFFFFF00000000005FC3000001000000FFFFFFFFFFFFFFFF000000000060C3000001000000FFFFFFFFFFFFFFFF000000000061C3000001000000FFFFFFFFFFFFFFFF000000000062C3000001000000FFFFFFFFFFFFFFFF000000000063C3000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFE205000001000000FFFFFFFFE2050000000000000010000001000000FFFFFFFFFFFFFFFFD50000004F000000D900000072030000010000000200001004000000010000000000000000000000FFFFFFFF05000000ED0300006D000000C3000000C400000073940000018000100000010000000000000066000000D500000089030000000000004F000000D5000000720300000000000040410056050000000750726F6A65637401000000ED03000001000000FFFFFFFFFFFFFFFF05426F6F6B73000000006D00000001000000FFFFFFFFFFFFFFFF0946756E6374696F6E7300000000C300000001000000FFFFFFFFFFFFFFFF0954656D706C6174657300000000C400000001000000FFFFFFFFFFFFFFFF09526567697374657273010000007394000001000000FFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFFED03000001000000FFFFFFFFED030000000000000080000001000000FFFFFFFFFFFFFFFF0000000072030000AB0600007603000001000000010000100400000001000000B5FEFFFF4300000000000000000000000000000001000000C60000000000000001000000000000000000000001000000FFFFFFFF550300005B030000590300000104000000000000020000000400000000000000000000000000000000000000000000000000000001000000C600000001000000C6000000000000000080000000000000FFFFFFFFFFFFFFFF0000000033020000F004000037020000000000000100000004000000010000000000000000000000FFFFFFFF06000000C5000000C7000000B4010000D2010000CF0100007794000001800080000000000000000000004E020000F0040000E00200000000000037020000F0040000C90200000000000040820046060000000C4275696C64204F757470757400000000C500000001000000FFFFFFFFFFFFFFFF0D46696E6420496E2046696C657300000000C700000001000000FFFFFFFFFFFFFFFF0A4572726F72204C69737400000000B401000001000000FFFFFFFFFFFFFFFF0E536F757263652042726F7773657200000000D201000001000000FFFFFFFFFFFFFFFF0E416C6C205265666572656E63657300000000CF01000001000000FFFFFFFFFFFFFFFF0642726F777365000000007794000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFFC500000001000000FFFFFFFFC5000000000000000000000000000000 59392 File - 2975 - 00200000010000002800FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000000000000000000000000000000000000000100000001000000018001E100000000000001000000000000000000000000000000000100000001000000018003E1000000000000020000000000000000000000000000000001000000010000000180CD7F0000000000000300000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018023E100000000000004000000000000000000000000000000000100000001000000018022E100000000000005000000000000000000000000000000000100000001000000018025E10000000000000600000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001802BE10000000000000700000000000000000000000000000000010000000100000001802CE10000000004000800000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001807A8A0000000000000900000000000000000000000000000000010000000100000001807B8A0000000004000A00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180D3B00000000000000B000000000000000000000000000000000100000001000000018015B10000000004000C0000000000000000000000000000000001000000010000000180F4B00000000004000D000000000000000000000000000000000100000001000000018036B10000000004000E00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FF88000000000000460000000000000000000000000000000001000000010000000180FE880000000000004500000000000000000000000000000000010000000100000001800B810000000000001300000000000000000000000000000000010000000100000001800C810000000000001400000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180F0880000020000000F000000000000000000000000000000000100000001000000FFFF0100120043555646696E64436F6D626F427574746F6EE803000000000000000000000000000000000000000000000001000000010000009600000002002050000000000B4255464645525F53495A45960000000000000014000B4255464645525F53495A450A646D615F6275666665721653583132383148616C526561645265676973746572730C52656164526567697374657209632D3E706172616D7329732D3E666565646261636B2E747269672E666565646261636B2E726F746F725F6162735F616E676C6511636D642D3E6C6173745F66697265636D640C666565646261636B5F72706D1448414C5F554152545F526563656976655F444D41134D585F5553415254335F554152545F496E6974184253505F43414E5F526567697374657243616C6C6261636B136874696D312E496E7374616E63652D3E4152520E73746D3332667878785F69742E63067072696E74661F43414E5F72656D6F74655F7472616E736D697373696F6E5F72657175657374142043414E5F6964656E7469666965725F74797065034944450E43414E5F333530385F4D325F4944116765745F6D6F746F725F6D6561737572650654585F4F4B200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018024E10000000000001100000000000000000000000000000000010000000100000001800A810000000000001200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E2280000002000100150000002153746172742F53746F70202644656275672053657373696F6E094374726C2B46350000000000000000000000000100000001000000000000000000000001000000020021802280000000000000150000002153746172742F53746F70202644656275672053657373696F6E094374726C2B4635000000000000000000000000010000000100000000000000000000000100000000002180E0010000000000007500000021456E65726779204D6561737572656D656E742026776974686F75742044656275670000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C488000000000400160000000000000000000000000000000001000000010000000180C988000000000400180000000000000000000000000000000001000000010000000180C788000000000000190000000000000000000000000000000001000000010000002180C8880000000000001700000027264B696C6C20416C6C20427265616B706F696E747320696E2043757272656E7420546172676574000000000000000000000000010000000100000000000000000000000100000003002180C8880000000000001700000027264B696C6C20416C6C20427265616B706F696E747320696E2043757272656E7420546172676574000000000000000000000000010000000100000000000000000000000100000000002180E50100000000000078000000264B696C6C20416C6C20427265616B706F696E747320696E204163746976652050726F6A656374000000000000000000000000010000000100000000000000000000000100000000002180E601000000000000790000002F4B696C6C20416C6C20427265616B706F696E747320696E204D756C74692D50726F6A65637420576F726B73706163650000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000021804C010000020001001A0000000F2650726F6A6563742057696E646F77000000000000000000000000010000000100000000000000000000000100000008002180DD880000000000001A0000000750726F6A656374000000000000000000000000010000000100000000000000000000000100000000002180DC8B0000000000003A00000005426F6F6B73000000000000000000000000010000000100000000000000000000000100000000002180E18B0000000000003B0000000946756E6374696F6E73000000000000000000000000010000000100000000000000000000000100000000002180E28B000000000000400000000954656D706C6174657300000000000000000000000001000000010000000000000000000000010000000000218018890000000000003D0000000E536F757263652042726F777365720000000000000000000000000100000001000000000000000000000001000000000021800000000000000400FFFFFFFF00000000000000000001000000000000000100000000000000000000000100000000002180D988000000000000390000000C4275696C64204F7574707574000000000000000000000000010000000100000000000000000000000100000000002180E38B000000000000410000000B46696E64204F75747075740000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FB7F0000000000001B000000000000000000000000000000000100000001000000000000000446696C65C6030000 + 2966 + 00200000010000002800FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000000000000000000000000000000000000000100000001000000018001E100000000000001000000000000000000000000000000000100000001000000018003E1000000000000020000000000000000000000000000000001000000010000000180CD7F0000000000000300000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018023E100000000040004000000000000000000000000000000000100000001000000018022E100000000040005000000000000000000000000000000000100000001000000018025E10000000000000600000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001802BE10000000004000700000000000000000000000000000000010000000100000001802CE10000000004000800000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001807A8A0000000000000900000000000000000000000000000000010000000100000001807B8A0000000000000A00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180D3B00000000000000B000000000000000000000000000000000100000001000000018015B10000000004000C0000000000000000000000000000000001000000010000000180F4B00000000004000D000000000000000000000000000000000100000001000000018036B10000000004000E00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FF88000000000400460000000000000000000000000000000001000000010000000180FE880000000004004500000000000000000000000000000000010000000100000001800B810000000004001300000000000000000000000000000000010000000100000001800C810000000004001400000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180F0880000020000000F000000000000000000000000000000000100000001000000FFFF0100120043555646696E64436F6D626F427574746F6EE8030000000000000000000000000000000000000000000000010000000100000096000000020020500000000004646174619600000000000000140004646174610B4255464645525F53495A450A646D615F6275666665721653583132383148616C526561645265676973746572730C52656164526567697374657209632D3E706172616D7329732D3E666565646261636B2E747269672E666565646261636B2E726F746F725F6162735F616E676C6511636D642D3E6C6173745F66697265636D640C666565646261636B5F72706D1448414C5F554152545F526563656976655F444D41134D585F5553415254335F554152545F496E6974184253505F43414E5F526567697374657243616C6C6261636B136874696D312E496E7374616E63652D3E4152520E73746D3332667878785F69742E63067072696E74661F43414E5F72656D6F74655F7472616E736D697373696F6E5F72657175657374142043414E5F6964656E7469666965725F74797065034944450E43414E5F333530385F4D325F4944116765745F6D6F746F725F6D6561737572650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018024E10000000000001100000000000000000000000000000000010000000100000001800A810000000000001200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E2280000002000100150000002153746172742F53746F70202644656275672053657373696F6E094374726C2B46350000000000000000000000000100000001000000000000000000000001000000020021802280000000000000150000002153746172742F53746F70202644656275672053657373696F6E094374726C2B4635000000000000000000000000010000000100000000000000000000000100000000002180E0010000000000007500000021456E65726779204D6561737572656D656E742026776974686F75742044656275670000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C488000000000400160000000000000000000000000000000001000000010000000180C988000000000400180000000000000000000000000000000001000000010000000180C788000000000000190000000000000000000000000000000001000000010000002180C8880000000000001700000027264B696C6C20416C6C20427265616B706F696E747320696E2043757272656E7420546172676574000000000000000000000000010000000100000000000000000000000100000003002180C8880000000000001700000027264B696C6C20416C6C20427265616B706F696E747320696E2043757272656E7420546172676574000000000000000000000000010000000100000000000000000000000100000000002180E50100000000000078000000264B696C6C20416C6C20427265616B706F696E747320696E204163746976652050726F6A656374000000000000000000000000010000000100000000000000000000000100000000002180E601000000000000790000002F4B696C6C20416C6C20427265616B706F696E747320696E204D756C74692D50726F6A65637420576F726B73706163650000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000021804C010000020001001A0000000F2650726F6A6563742057696E646F77000000000000000000000000010000000100000000000000000000000100000008002180DD880000000000001A0000000750726F6A656374000000000000000000000000010000000100000000000000000000000100000000002180DC8B0000000000003A00000005426F6F6B73000000000000000000000000010000000100000000000000000000000100000000002180E18B0000000000003B0000000946756E6374696F6E73000000000000000000000000010000000100000000000000000000000100000000002180E28B000000000000400000000954656D706C6174657300000000000000000000000001000000010000000000000000000000010000000000218018890000000000003D0000000E536F757263652042726F777365720000000000000000000000000100000001000000000000000000000001000000000021800000000000000400FFFFFFFF00000000000000000001000000000000000100000000000000000000000100000000002180D988000000000000390000000C4275696C64204F7574707574000000000000000000000000010000000100000000000000000000000100000000002180E38B000000000000410000000B46696E64204F75747075740000000000000000000000000100000001000000000000000000000001000000000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180FB7F0000000000001B000000000000000000000000000000000100000001000000000000000446696C65C6030000 1423 @@ -3563,7 +3563,7 @@ Build 955 - 00200000000000001000FFFF01001100434D4643546F6F6C426172427574746F6ECF7F0000000000001C0000000000000000000000000000000001000000010000000180D07F0000000000001D000000000000000000000000000000000100000001000000018030800000000000001E000000000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6EC7040000000000006A0000000C4261746368204275696C2664000000000000000000000000010000000100000000000000000000000100000004000580C7040000000000006A0000000C4261746368204275696C266400000000000000000000000001000000010000000000000000000000010000000000058046070000000000006B0000000D42617463682052656275696C640000000000000000000000000100000001000000000000000000000001000000000005804707000000000000FFFFFFFF0B426174636820436C65616E0100000000000000010000000000000001000000000000000000000001000000000005809E8A0000000000001F0000000F4261746326682053657475702E2E2E000000000000000000000000010000000100000000000000000000000100000000000180D17F0000000000002000000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001804C8A0000000000002100000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6EBA00000000000000000000000000000000000000000000000001000000010000009600000003002050FFFFFFFF00960000000000000000000180EB880000000000002200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C07F000000000000230000000000000000000000000000000001000000010000000180B08A000000000000240000000000000000000000000000000001000000010000000180A8010000000000004E00000000000000000000000000000000010000000100000001807202000000000000530000000000000000000000000000000001000000010000000180BE010000000000005000000000000000000000000000000000010000000100000000000000054275696C64DC010000 + 00200000000000001000FFFF01001100434D4643546F6F6C426172427574746F6ECF7F0000000000001C0000000000000000000000000000000001000000010000000180D07F0000000000001D000000000000000000000000000000000100000001000000018030800000000000001E000000000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6EC7040000000000006A0000000C4261746368204275696C2664000000000000000000000000010000000100000000000000000000000100000004000580C7040000000000006A0000000C4261746368204275696C266400000000000000000000000001000000010000000000000000000000010000000000058046070000000000006B0000000D42617463682052656275696C640000000000000000000000000100000001000000000000000000000001000000000005804707000000000000FFFFFFFF0B426174636820436C65616E0000000000000000010000000000000001000000000000000000000001000000000005809E8A0000000000001F0000000F4261746326682053657475702E2E2E000000000000000000000000010000000100000000000000000000000100000000000180D17F0000000000002000000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001804C8A0000000000002100000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6EBA00000000000000000000000000000000000000000000000001000000010000009600000003002050FFFFFFFF00960000000000000000000180EB880000000000002200000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180C07F000000000000230000000000000000000000000000000001000000010000000180B08A000000000000240000000000000000000000000000000001000000010000000180A8010000000000004E00000000000000000000000000000000010000000100000001807202000000000000530000000000000000000000000000000001000000010000000180BE010000000000005000000000000000000000000000000000010000000100000000000000054275696C64DC010000 583 @@ -3579,7 +3579,7 @@ Debug 2362 - 00200000010000001900FFFF01001100434D4643546F6F6C426172427574746F6ECC880000000000002500000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018017800000000000002600000000000000000000000000000000010000000100000001801D800000000004002700000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001801A800000000000002800000000000000000000000000000000010000000100000001801B80000000000000290000000000000000000000000000000001000000010000000180E57F0000000000002A00000000000000000000000000000000010000000100000001801C800000000000002B00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018000890000000000002C00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180E48B0000020001002D0000000000000000000000000000000001000000010000000180F07F0000020001002E0000000000000000000000000000000001000000010000000180E8880000020000003700000000000000000000000000000000010000000100000001803B010000020001002F0000000000000000000000000000000001000000010000000180BB8A00000200010030000000000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E0E01000002000100310000000D57617463682057696E646F7773000000000000000000000000010000000100000000000000000000000100000003001380D88B00000000000031000000085761746368202631000000000000000000000000010000000100000000000000000000000100000000001380D98B00000000000031000000085761746368202632000000000000000000000000010000000100000000000000000000000100000000001380CE01000000000000FFFFFFFF0C576174636820416E63686F720100000000000000010000000000000001000000000000000000000001000000000013800F0100000200010032000000094D656D6F7279202631000000000000000000000000010000000100000000000000000000000100000004001380D28B00000000000032000000094D656D6F7279202631000000000000000000000000010000000100000000000000000000000100000000001380D38B00000000000032000000094D656D6F7279202632000000000000000000000000010000000100000000000000000000000100000000001380D48B00000000000032000000094D656D6F7279202633000000000000000000000000010000000100000000000000000000000100000000001380D58B00000000000032000000094D656D6F72792026340000000000000000000000000100000001000000000000000000000001000000000013801001000002000000330000000855415254202326310000000000000000000000000100000001000000000000000000000001000000040013809307000000000000330000000855415254202326310000000000000000000000000100000001000000000000000000000001000000000013809407000000000000330000000855415254202326320000000000000000000000000100000001000000000000000000000001000000000013809507000000000000330000000855415254202326330000000000000000000000000100000001000000000000000000000001000000000013809607000000000000330000001626446562756720287072696E746629205669657765720000000000000000000000000100000001000000000000000000000001000000000013803C010000000000007200000010416E616C797369732057696E646F7773000000000000000000000000010000000100000000000000000000000100000004001380658A000000000000340000000F264C6F67696320416E616C797A6572000000000000000000000000010000000100000000000000000000000100000000001380DC7F0000000000003E0000001526506572666F726D616E636520416E616C797A6572000000000000000000000000010000000100000000000000000000000100000000001380E788000000000000380000000E26436F646520436F766572616765000000000000000000000000010000000100000000000000000000000100000000001380CD01000000000000FFFFFFFF0F416E616C7973697320416E63686F7201000000000000000100000000000000010000000000000000000000010000000000138053010000000000003F0000000D54726163652057696E646F77730000000000000000000000000100000001000000000000000000000001000000010013805401000000000000FFFFFFFF115472616365204D656E7520416E63686F720100000000000000010000000000000001000000000000000000000001000000000013802901000000000000350000001553797374656D205669657765722057696E646F77730000000000000000000000000100000001000000000000000000000001000000010013804B01000000000000FFFFFFFF1453797374656D2056696577657220416E63686F720100000000000000010000000000000001000000000000000000000001000000000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000013800189000002000000360000000F26546F6F6C626F782057696E646F7700000000000000000000000001000000010000000000000000000000010000000300138044C5000000000000FFFFFFFF0E5570646174652057696E646F77730100000000000000010000000000000001000000000000000000000001000000000013800000000000000400FFFFFFFF000000000000000000010000000000000001000000000000000000000001000000000013805B01000000000000FFFFFFFF12546F6F6C626F78204D656E75416E63686F72010000000000000001000000000000000100000000000000000000000100000000000000000005446562756764020000 + 00200000010000001900FFFF01001100434D4643546F6F6C426172427574746F6ECC880000000000002500000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018017800000000000002600000000000000000000000000000000010000000100000001801D800000000004002700000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000001801A800000000000002800000000000000000000000000000000010000000100000001801B80000000000000290000000000000000000000000000000001000000010000000180E57F0000000000002A00000000000000000000000000000000010000000100000001801C800000000000002B00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF000000000000000000000000000100000001000000018000890000000000002C00000000000000000000000000000000010000000100000001800000000001000000FFFFFFFF0000000000000000000000000001000000010000000180E48B0000020001002D0000000000000000000000000000000001000000010000000180F07F0000020001002E0000000000000000000000000000000001000000010000000180E8880000020000003700000000000000000000000000000000010000000100000001803B010000020001002F0000000000000000000000000000000001000000010000000180BB8A00000200010030000000000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E0E01000002000100310000000D57617463682057696E646F7773000000000000000000000000010000000100000000000000000000000100000003001380D88B00000000000031000000085761746368202631000000000000000000000000010000000100000000000000000000000100000000001380D98B00000000000031000000085761746368202632000000000000000000000000010000000100000000000000000000000100000000001380CE01000000000000FFFFFFFF0C576174636820416E63686F720000000000000000010000000000000001000000000000000000000001000000000013800F0100000200010032000000094D656D6F7279202631000000000000000000000000010000000100000000000000000000000100000004001380D28B00000000000032000000094D656D6F7279202631000000000000000000000000010000000100000000000000000000000100000000001380D38B00000000000032000000094D656D6F7279202632000000000000000000000000010000000100000000000000000000000100000000001380D48B00000000000032000000094D656D6F7279202633000000000000000000000000010000000100000000000000000000000100000000001380D58B00000000000032000000094D656D6F72792026340000000000000000000000000100000001000000000000000000000001000000000013801001000002000000330000000855415254202326310000000000000000000000000100000001000000000000000000000001000000040013809307000000000000330000000855415254202326310000000000000000000000000100000001000000000000000000000001000000000013809407000000000000330000000855415254202326320000000000000000000000000100000001000000000000000000000001000000000013809507000000000000330000000855415254202326330000000000000000000000000100000001000000000000000000000001000000000013809607000000000000330000001626446562756720287072696E746629205669657765720000000000000000000000000100000001000000000000000000000001000000000013803C010000000000007200000010416E616C797369732057696E646F7773000000000000000000000000010000000100000000000000000000000100000004001380658A000000000000340000000F264C6F67696320416E616C797A6572000000000000000000000000010000000100000000000000000000000100000000001380DC7F0000000000003E0000001526506572666F726D616E636520416E616C797A6572000000000000000000000000010000000100000000000000000000000100000000001380E788000000000000380000000E26436F646520436F766572616765000000000000000000000000010000000100000000000000000000000100000000001380CD01000000000000FFFFFFFF0F416E616C7973697320416E63686F7200000000000000000100000000000000010000000000000000000000010000000000138053010000000000003F0000000D54726163652057696E646F77730000000000000000000000000100000001000000000000000000000001000000010013805401000000000000FFFFFFFF115472616365204D656E7520416E63686F720000000000000000010000000000000001000000000000000000000001000000000013802901000000000000350000001553797374656D205669657765722057696E646F77730000000000000000000000000100000001000000000000000000000001000000010013804B01000000000000FFFFFFFF1453797374656D2056696577657220416E63686F720000000000000000010000000000000001000000000000000000000001000000000001800000000001000000FFFFFFFF00000000000000000000000000010000000100000013800189000002000000360000000F26546F6F6C626F782057696E646F7700000000000000000000000001000000010000000000000000000000010000000300138044C5000000000000FFFFFFFF0E5570646174652057696E646F77730000000000000000010000000000000001000000000000000000000001000000000013800000000000000400FFFFFFFF000000000000000000010000000000000001000000000000000000000001000000000013805B01000000000000FFFFFFFF12546F6F6C626F78204D656E75416E63686F72000000000000000001000000000000000100000000000000000000000100000000000000000005446562756764020000 898 @@ -3603,12 +3603,102 @@ 0 100 - 2 + 21 + + ..\User\task\radio.c + 32 + 21 + 45 + 1 + + 0 + ../Core/Src/main.c 0 - 75 - 83 + 70 + 80 + 1 + + 0 + + + ..\User\module\mr16.h + 4 + 56 + 80 + 1 + + 0 + + + ..\User\component\keyStatusCheck.h + 22 + 1 + 9 + 1 + + 0 + + + ..\User\device\lcd_driver\lcd.h + 0 + 1 + 1 + 1 + + 0 + + + ..\User\component\crc8.h + 0 + 1 + 7 + 1 + + 0 + + + ..\User\device\lcd_driver\lcd.c + 31 + 101 + 113 + 1 + + 0 + + + ..\User\bsp\spi.h + 0 + 31 + 72 + 1 + + 0 + + + ..\User\bsp\spi.c + 0 + 152 + 193 + 1 + + 0 + + + ..\User\module\mr16.c + 0 + 150 + 170 + 1 + + 0 + + + ..\User\device\sx1281_driver\sx1281.h + 19 + 121 + 147 1 0 @@ -3616,17 +3706,8 @@ ..\User\device\sx1281_driver\sx1281.c 0 - 279 - 282 - 1 - - 0 - - - ..\User\module\mr16.c - 79 - 31 - 50 + 533 + 543 1 0 @@ -3635,16 +3716,133 @@ startup_stm32f103xb.s 0 122 - 132 + 124 + 0 + + 0 + + + ..\User\component\freertos_cli.h + 16 + 13 + 27 1 0 - ..\User\device\sx1281_driver\sx1281_header.c + ..\User\bsp\time.c 0 1 - 14 + 5 + 1 + + 0 + + + ..\User\bsp\time.h + 0 + 1 + 1 + 1 + + 0 + + + ..\User\component\freertos_cli.c + 0 + 1 + 1 + 1 + + 0 + + + ..\User\task\user_task.c + 0 + 1 + 1 + 1 + + 0 + + + ..\User\task\init.c + 0 + 1 + 1 + 1 + + 0 + + + ..\User\task\user_task.h + 22 + 1 + 7 + 1 + + 0 + + + ../Core/Src/usart.c + 0 + 221 + 231 + 1 + + 0 + + + ..\User\bsp\flash.c + 56 + 25 + 41 + 1 + + 0 + + + ..\User\bsp\flash.h + 56 + 35 + 61 + 1 + + 0 + + + ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h + 61 + 445 + 455 + 1 + + 0 + + + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h + 0 + 158 + 184 + 1 + + 0 + + + ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c + 64 + 159 + 160 + 1 + + 0 + + + ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h + 0 + 117 + 127 1 0 diff --git a/MDK-ARM/MR16.uvoptx b/MDK-ARM/MR16.uvoptx index 6711c28..c8d654b 100644 --- a/MDK-ARM/MR16.uvoptx +++ b/MDK-ARM/MR16.uvoptx @@ -148,7 +148,24 @@ -U7 -O2254 -SF4000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP") -D00(1BA01477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32F10x_128.FLM -FS08000000 -FL010000 -FP0($$Device:STM32F103C8$Flash\STM32F10x_128.FLM) - + + + 0 + 0 + 319 + 1 +
134231564
+ 0 + 0 + 0 + 0 + 0 + 1 + ..\User\module\mr16.c + + \\MR16\../User/module/mr16.c\319 +
+
0 @@ -165,7 +182,30 @@ 1 radioRXBuffer,0x0A + + 3 + 1 + mr16 + + + 4 + 1 + MR16_FSM,0x0A + + + 5 + 1 + radio + + + + 1 + 0 + 0x800f800 + 0 + + 0 @@ -268,6 +308,18 @@ 0 0 0 + ../Core/Src/freertos.c + freertos.c + 0 + 0 + + + 2 + 5 + 1 + 0 + 0 + 0 ../Core/Src/dma.c dma.c 0 @@ -275,7 +327,7 @@ 2 - 5 + 6 1 0 0 @@ -287,7 +339,7 @@ 2 - 6 + 7 1 0 0 @@ -299,7 +351,7 @@ 2 - 7 + 8 1 0 0 @@ -311,7 +363,7 @@ 2 - 8 + 9 1 0 0 @@ -323,7 +375,7 @@ 2 - 9 + 10 1 0 0 @@ -343,7 +395,7 @@ 0 3 - 10 + 11 1 0 0 @@ -353,18 +405,6 @@ 0 0 - - 3 - 11 - 1 - 0 - 0 - 0 - ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c - stm32f1xx_hal_spi.c - 0 - 0 - 3 12 @@ -492,6 +532,18 @@ 0 0 0 + ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c + stm32f1xx_hal_spi.c + 0 + 0 + + + 3 + 23 + 1 + 0 + 0 + 0 ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c stm32f1xx_hal_tim.c 0 @@ -499,7 +551,7 @@ 3 - 23 + 24 1 0 0 @@ -511,7 +563,7 @@ 3 - 24 + 25 1 0 0 @@ -531,9 +583,9 @@ 0 4 - 25 + 26 1 - 1 + 0 0 0 ../Core/Src/system_stm32f1xx.c @@ -544,23 +596,11 @@ - User/bsp + Middlewares/FreeRTOS 0 0 0 0 - - 5 - 26 - 5 - 0 - 0 - 0 - ..\User\bsp\bsp.h - bsp.h - 0 - 0 - 5 27 @@ -568,20 +608,20 @@ 0 0 0 - ..\User\bsp\gpio.c - gpio.c + ../Middlewares/Third_Party/FreeRTOS/Source/croutine.c + croutine.c 0 0 5 28 - 5 + 1 0 0 0 - ..\User\bsp\gpio.h - gpio.h + ../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c + event_groups.c 0 0 @@ -592,20 +632,20 @@ 0 0 0 - ..\User\bsp\spi.c - spi.c + ../Middlewares/Third_Party/FreeRTOS/Source/list.c + list.c 0 0 5 30 - 5 + 1 0 0 0 - ..\User\bsp\spi.h - spi.h + ../Middlewares/Third_Party/FreeRTOS/Source/queue.c + queue.c 0 0 @@ -616,14 +656,154 @@ 0 0 0 - ..\User\bsp\uart.c - uart.c + ../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c + stream_buffer.c 0 0 5 32 + 1 + 0 + 0 + 0 + ../Middlewares/Third_Party/FreeRTOS/Source/tasks.c + tasks.c + 0 + 0 + + + 5 + 33 + 1 + 0 + 0 + 0 + ../Middlewares/Third_Party/FreeRTOS/Source/timers.c + timers.c + 0 + 0 + + + 5 + 34 + 1 + 0 + 0 + 0 + ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c + cmsis_os2.c + 0 + 0 + + + 5 + 35 + 1 + 0 + 0 + 0 + ../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c + heap_4.c + 0 + 0 + + + 5 + 36 + 1 + 0 + 0 + 0 + ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/port.c + port.c + 0 + 0 + + + + + User/bsp + 1 + 0 + 0 + 0 + + 6 + 37 + 5 + 0 + 0 + 0 + ..\User\bsp\bsp.h + bsp.h + 0 + 0 + + + 6 + 38 + 1 + 0 + 0 + 0 + ..\User\bsp\gpio.c + gpio.c + 0 + 0 + + + 6 + 39 + 5 + 0 + 0 + 0 + ..\User\bsp\gpio.h + gpio.h + 0 + 0 + + + 6 + 40 + 1 + 0 + 0 + 0 + ..\User\bsp\spi.c + spi.c + 0 + 0 + + + 6 + 41 + 5 + 0 + 0 + 0 + ..\User\bsp\spi.h + spi.h + 0 + 0 + + + 6 + 42 + 1 + 0 + 0 + 0 + ..\User\bsp\uart.c + uart.c + 0 + 0 + + + 6 + 43 5 0 0 @@ -633,6 +813,54 @@ 0 0 + + 6 + 44 + 1 + 0 + 0 + 0 + ..\User\bsp\time.c + time.c + 0 + 0 + + + 6 + 45 + 5 + 0 + 0 + 0 + ..\User\bsp\time.h + time.h + 0 + 0 + + + 6 + 46 + 1 + 0 + 0 + 0 + ..\User\bsp\flash.c + flash.c + 0 + 0 + + + 6 + 47 + 5 + 0 + 0 + 0 + ..\User\bsp\flash.h + flash.h + 0 + 0 + @@ -642,8 +870,8 @@ 0 0 - 6 - 33 + 7 + 48 5 0 0 @@ -654,8 +882,8 @@ 0 - 6 - 34 + 7 + 49 1 0 0 @@ -666,8 +894,8 @@ 0 - 6 - 35 + 7 + 50 5 0 0 @@ -678,8 +906,8 @@ 0 - 6 - 36 + 7 + 51 5 0 0 @@ -698,8 +926,8 @@ 0 0 - 7 - 37 + 8 + 52 5 0 0 @@ -710,8 +938,8 @@ 0 - 7 - 38 + 8 + 53 1 0 0 @@ -722,8 +950,8 @@ 0 - 7 - 39 + 8 + 54 5 0 0 @@ -734,8 +962,8 @@ 0 - 7 - 40 + 8 + 55 5 0 0 @@ -746,8 +974,8 @@ 0 - 7 - 41 + 8 + 56 1 0 0 @@ -758,8 +986,8 @@ 0 - 7 - 42 + 8 + 57 5 0 0 @@ -770,8 +998,8 @@ 0 - 7 - 43 + 8 + 58 1 0 0 @@ -782,8 +1010,8 @@ 0 - 7 - 44 + 8 + 59 5 0 0 @@ -794,8 +1022,8 @@ 0 - 7 - 45 + 8 + 60 1 0 0 @@ -806,8 +1034,8 @@ 0 - 7 - 46 + 8 + 61 5 0 0 @@ -818,8 +1046,8 @@ 0 - 7 - 47 + 8 + 62 1 0 0 @@ -830,8 +1058,8 @@ 0 - 7 - 48 + 8 + 63 5 0 0 @@ -842,8 +1070,8 @@ 0 - 7 - 49 + 8 + 64 1 0 0 @@ -854,8 +1082,8 @@ 0 - 7 - 50 + 8 + 65 5 0 0 @@ -866,8 +1094,8 @@ 0 - 7 - 51 + 8 + 66 1 0 0 @@ -878,8 +1106,8 @@ 0 - 7 - 52 + 8 + 67 5 0 0 @@ -893,13 +1121,13 @@ User/component - 0 + 1 0 0 0 - 8 - 53 + 9 + 68 1 0 0 @@ -910,8 +1138,8 @@ 0 - 8 - 54 + 9 + 69 5 0 0 @@ -922,8 +1150,8 @@ 0 - 8 - 55 + 9 + 70 1 0 0 @@ -934,8 +1162,8 @@ 0 - 8 - 56 + 9 + 71 5 0 0 @@ -946,8 +1174,8 @@ 0 - 8 - 57 + 9 + 72 1 0 0 @@ -958,8 +1186,8 @@ 0 - 8 - 58 + 9 + 73 5 0 0 @@ -969,17 +1197,89 @@ 0 0 + + 9 + 74 + 1 + 0 + 0 + 0 + ..\User\component\freertos_cli.c + freertos_cli.c + 0 + 0 + + + 9 + 75 + 5 + 0 + 0 + 0 + ..\User\component\freertos_cli.h + freertos_cli.h + 0 + 0 + + + 9 + 76 + 1 + 0 + 0 + 0 + ..\User\component\keyStatusCheck.c + keyStatusCheck.c + 0 + 0 + + + 9 + 77 + 5 + 0 + 0 + 0 + ..\User\component\keyStatusCheck.h + keyStatusCheck.h + 0 + 0 + + + 9 + 78 + 1 + 0 + 0 + 0 + ..\User\component\ui.c + ui.c + 0 + 0 + + + 9 + 79 + 5 + 0 + 0 + 0 + ..\User\component\ui.h + ui.h + 0 + 0 + User/module - 0 + 1 0 0 0 - 9 - 59 + 10 + 80 1 0 0 @@ -990,8 +1290,8 @@ 0 - 9 - 60 + 10 + 81 5 0 0 @@ -1003,6 +1303,62 @@ + + User/task + 1 + 0 + 0 + 0 + + 11 + 82 + 1 + 0 + 0 + 0 + ..\User\task\init.c + init.c + 0 + 0 + + + 11 + 83 + 1 + 0 + 0 + 0 + ..\User\task\user_task.c + user_task.c + 0 + 0 + + + 11 + 84 + 5 + 0 + 0 + 0 + ..\User\task\user_task.h + user_task.h + 0 + 0 + + + 11 + 85 + 1 + 0 + 0 + 0 + ..\User\task\radio.c + radio.c + 0 + 0 + + + ::CMSIS 0 diff --git a/MDK-ARM/MR16.uvprojx b/MDK-ARM/MR16.uvprojx index cb50c48..c15643b 100644 --- a/MDK-ARM/MR16.uvprojx +++ b/MDK-ARM/MR16.uvprojx @@ -339,7 +339,7 @@ USE_HAL_DRIVER,STM32F103xB - ../Core/Inc;../Drivers/STM32F1xx_HAL_Driver/Inc;../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy;../Drivers/CMSIS/Device/ST/STM32F1xx/Include;../Drivers/CMSIS/Include;../sx1281-driver-c;../User + ../Core/Inc;../Drivers/STM32F1xx_HAL_Driver/Inc;../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy;../Drivers/CMSIS/Device/ST/STM32F1xx/Include;../Drivers/CMSIS/Include;../sx1281-driver-c;../User;../Middlewares/Third_Party/FreeRTOS/Source/include;../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2;../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 @@ -357,7 +357,7 @@ - + ../Drivers/CMSIS/Include @@ -403,6 +403,62 @@ 1 ../Core/Src/gpio.c + + freertos.c + 1 + ../Core/Src/freertos.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + dma.c 1 @@ -494,11 +550,6 @@ 1 ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c - - stm32f1xx_hal_spi.c - 1 - ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c - stm32f1xx_hal.c 1 @@ -549,6 +600,11 @@ 1 ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c + + stm32f1xx_hal_spi.c + 1 + ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c + stm32f1xx_hal_tim.c 1 @@ -576,6 +632,640 @@ + + Middlewares/FreeRTOS + + + 0 + 0 + 0 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 1 + + + + + + + + + + + + croutine.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/croutine.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + event_groups.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + list.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/list.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + queue.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/queue.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + stream_buffer.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + tasks.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/tasks.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + timers.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/timers.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + cmsis_os2.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + heap_4.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + port.c + 1 + ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/port.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 2 + 2 + 2 + 2 + 11 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + User/bsp @@ -614,6 +1304,26 @@ 5 ..\User\bsp\uart.h + + time.c + 1 + ..\User\bsp\time.c + + + time.h + 5 + ..\User\bsp\time.h + + + flash.c + 1 + ..\User\bsp\flash.c + + + flash.h + 5 + ..\User\bsp\flash.h + @@ -759,6 +1469,36 @@ 5 ..\User\component\user_math.h + + freertos_cli.c + 1 + ..\User\component\freertos_cli.c + + + freertos_cli.h + 5 + ..\User\component\freertos_cli.h + + + keyStatusCheck.c + 1 + ..\User\component\keyStatusCheck.c + + + keyStatusCheck.h + 5 + ..\User\component\keyStatusCheck.h + + + ui.c + 1 + ..\User\component\ui.c + + + ui.h + 5 + ..\User\component\ui.h + @@ -776,6 +1516,31 @@ + + User/task + + + init.c + 1 + ..\User\task\init.c + + + user_task.c + 1 + ..\User\task\user_task.c + + + user_task.h + 5 + ..\User\task\user_task.h + + + radio.c + 1 + ..\User\task\radio.c + + + ::CMSIS diff --git a/MDK-ARM/MR16/MR16.axf b/MDK-ARM/MR16/MR16.axf index e8dba50..15a6d1d 100644 Binary files a/MDK-ARM/MR16/MR16.axf and b/MDK-ARM/MR16/MR16.axf differ diff --git a/MDK-ARM/MR16/MR16.build_log.htm b/MDK-ARM/MR16/MR16.build_log.htm index 7c0e957..5d61562 100644 --- a/MDK-ARM/MR16/MR16.build_log.htm +++ b/MDK-ARM/MR16/MR16.build_log.htm @@ -22,35 +22,26 @@ Dialog DLL: TCM.DLL V1.48.0.0

Project:

D:\CUBEMX\MR16\MDK-ARM\MR16.uvprojx -Project File Date: 11/30/2025 +Project File Date: 12/03/2025

Output:

*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\cangming\ARM\ARMCC\Bin' Build target 'MR16' Note: source file '..\User\bsp\gpio.c' - object file renamed from 'MR16\gpio.o' to 'MR16\gpio_1.o'. Note: source file '..\User\bsp\spi.c' - object file renamed from 'MR16\spi.o' to 'MR16\spi_1.o'. -compiling mr16.c... -../User/module/mr16.h(30): warning: #1295-D: Deprecated declaration MR16_Init - give arg types - int8_t MR16_Init(); -../User/module/mr16.h(35): warning: #1-D: last line of file ends without a newline +compiling flash.c... +compiling radio.c... +../User/task/user_task.h(80): warning: #1-D: last line of file ends without a newline #endif -../User/bsp/gpio.h(55): warning: #1-D: last line of file ends without a newline +../User/module/mr16.h(97): warning: #1-D: last line of file ends without a newline #endif -..\User\module\mr16.c(43): warning: #546-D: transfer of control bypasses initialization of: - variable "haha" (declared at line 75) - switch (source) { - ^ -..\User\module\mr16.c(107): warning: #940-D: missing return statement at end of non-void function "MR16_Init" +..\User\task\radio.c(56): warning: #1-D: last line of file ends without a newline } -..\User\module\mr16.c(112): warning: #1-D: last line of file ends without a newline - } -..\User\module\mr16.c(112): warning: #940-D: missing return statement at end of non-void function "MR16_UI_PowerON" - } -..\User\module\mr16.c: 7 warnings, 0 errors +..\User\task\radio.c: 3 warnings, 0 errors linking... -Program Size: Code=20760 RO-data=640 RW-data=92 ZI-data=11292 +Program Size: Code=32780 RO-data=13892 RW-data=256 ZI-data=18912 FromELF: creating hex file... -"MR16\MR16.axf" - 0 Error(s), 7 Warning(s). +"MR16\MR16.axf" - 0 Error(s), 3 Warning(s).

Software Packages used:

@@ -74,7 +65,7 @@ Package Vendor: Keil * Component: ARM::CMSIS:CORE:5.4.0 Include file: CMSIS\Core\Include\tz_context.h -Build Time Elapsed: 00:00:03 +Build Time Elapsed: 00:00:02 diff --git a/MDK-ARM/MR16/MR16.hex b/MDK-ARM/MR16/MR16.hex index fe55783..1dd185b 100644 --- a/MDK-ARM/MR16/MR16.hex +++ b/MDK-ARM/MR16/MR16.hex @@ -1,1347 +1,2936 @@ :020000040800F2 -:10000000782C002005010008632A0008C12600089A -:10001000612A0008D1070008A1480008000000007C -:10002000000000000000000000000000A12D0008FA -:100030003B08000800000000C92A00081941000818 -:100040001F0100081F0100081F0100081F01000810 -:100050001F0100081F0100081F0100081F01000800 -:100060001F0100081F0100081F0100081F010008F0 -:10007000D5070008E10700081F010008ED07000888 -:10008000F9070008050800081F0100081F01000803 -:100090001F0100081F0100081F0100084508000893 -:1000A0001F0100081F0100081F0100081F010008B0 -:1000B0001F0100081F0100081F0100081F010008A0 -:1000C0001F0100081F0100081F0100081F01000890 -:1000D0001F0100081F010008A54700081F010008B4 -:1000E0003D0800081F0100081F010008DFF810D0BC -:1000F00000F0EAFA00480047A9510008AFF3008079 -:10010000782C00200648804706480047FEE7FEE7B7 -:10011000FEE7FEE7FEE7FEE7FEE7FEE7FEE7FEE7B7 -:100120007D410008ED000008202A04DB203A21FA76 -:1001300002F00021704721FA02F3D040C2F1200200 -:10014000914008431946704740EA01039B0703D0DA -:1001500009E008C9121F08C0042AFAD203E011F806 -:10016000013B00F8013B521EF9D27047D2B201E0C8 -:1001700000F8012B491EFBD270470022F6E710B5AC -:1001800013460A4604461946FFF7F0FF204610BD05 -:10019000034611F8012B00F8012B002AF9D118466B -:1001A00070472DE9FE4F81EA030404F0004421F07A -:1001B000004100944FF0000B23F0004350EA01048B -:1001C0005ED052EA03045BD0C3F30A54C1F30A556C -:1001D0002C44A4F2F3340194A0FB0254C1F31301A4 -:1001E00041F48011C3F3130343F4801301FB024471 -:1001F00000FB034E840A970A44EA815447EA835776 -:10020000A4FB076802958D0A05FB07854FEA932C2E -:1002100004FB0C542705029D4FEA065847EA16379F -:10022000B5EB08056EEB070C870E920E47EA8117B7 -:1002300042EA8312A7FB0201B6EB0B0164EB000458 -:100240002B0D43EA0C335E1844EB1C50DA46514642 -:10025000E7FB0201C5F313044FEA0B3343EA1453DF -:100260004FEA0432019C43EA0603A4F10C04029411 -:10027000009CCDE900B400F002F903B0BDE8F08FB6 -:1002800000200146F9E72DE9F04D81EA030404F06E -:10029000004B21F0004514464FF0000A23F00041C6 -:1002A00050EA050220D054EA01021DD0C5F30A57D6 -:1002B0000246C5F31303C1F31300C1F30A5640F419 -:1002C000801543F48013A7EB0608101BD64608F2EE -:1002D000FD3873EB050002D308F1010801E0921824 -:1002E0005B41B8F1000F03DA00200146BDE8F08D54 -:1002F00000204FF48011064684460EE0171B73EB76 -:10030000050705D3121B63EB050306434CEA010CFA -:1003100049084FEA300092185B4150EA0107EDD1DD -:1003200052EA030012D082EA040083EA050108437E -:1003300005D0101BAB4106D20122002306E00022AB -:100340004FF0004302E06FF0010253101AEB060079 -:100350004CEB085110EB0A0041EB0B01BDE8F04DEE -:1003600000F07EB80EB5C10F80EAE0700844CA07FD -:10037000002140F233438DE80E000A460B4600F0A0 -:100380007EF803B000BD0EB540F23341029100216A -:10039000CDE900110A460B4600F071F803B000BD2C -:1003A000C1F30A5210B5C1F3130140F2FF3341F417 -:1003B00080119A4201DA002010BD40F233439A4284 -:1003C000A2F2334203DC5242FFF7AEFE10BD904072 -:1003D00010BD30B50B46014600202022012409E063 -:1003E00021FA02F59D4205D303FA02F5491B04FAEE -:1003F00002F52844151EA2F10102F1DC30BD2DE901 -:10040000F05F0546002092469B4688460646814698 -:1004100040241BE02846414647462246FFF784FE1B -:1004200053465A46C01A914110D3114618462246E7 -:1004300000F05CF92D1A67EB01084F4622460120B7 -:10044000002100F053F917EB00094E41201EA4F1E2 -:100450000104DFDC484631462A464346BDE8F09FAA -:1004600010B5141E73F1000408DA401C41F10001BC -:1004700092185B411A4301D120F0010010BD2DE913 -:10048000F04D92469B4611B1B1FA81F202E0B0FA0A -:1004900080F22032904600F029F904460F4640EAE7 -:1004A0000A0041EA0B0153465A46084313D011464D -:1004B00053EA010019D0C8F140025046FFF734FE5C -:1004C00005460E4650465946424600F00FF908438D -:1004D00005D0012004E020463946BDE8F08D00201B -:1004E000054346EAE0762C4337430A986305E40A5D -:1004F000A0EB08000022FD0A44EA47540A3002D566 -:1005000000200146E9E7010510196941DDE90845C8 -:1005100000196941BDE8F04DA2E72DE9FE4F804684 -:1005200081EA0300C00F0C46009021F0004123F047 -:100530000045B8EB0200A94105D24046214690464D -:100540001C460B46024623F00040104347D0270DBF -:10055000C7F30A00C3F30A510290401A01904028E1 -:100560006BDAC3F3130040F4801B0098924620B16D -:100570000023D2EB030A63EB0B0B01985946C0F141 -:100580004002504600F0B2F806460D465046594625 -:10059000019A00F0BAF810EB08006141002487EAE4 -:1005A000115284EAE7731A4340D0009A62B3019A69 -:1005B000012A4FEA075215DC001B61EB02014FF0E4 -:1005C000004202EA0752CDE90042001C41F58011C9 -:1005D00032462B46FFF753FF03B0BDE8F08F40468D -:1005E0002146F9E7001B61EB0201001C41F5801375 -:1005F00000185B412018A2F5001747EB030140EA01 -:10060000D570B6196D4111E06D084FEA360645EA1E -:10061000C0754FEA0752001B61EB0201001C41F557 -:10062000801149084FEA30000019514132462B46EB -:1006300003B0BDE8F04FFFF713BF00980122400060 -:100640000023D0EB020263EBE073009821464FEAEF -:10065000E074B8EB000061EB0401E9E783F00043CC -:100660005BE781F0004158E7C1F30A52C1F313017F -:1006700040F2FF3341F480119A4202DA0020014631 -:10068000704740F233439A42A2F2334202DC5242B4 -:10069000FFF74ABD00F02AB830B5041E71F100041E -:1006A00004DB4FF00044404264EB0101141E73F17F -:1006B000000405DB1C464FF00043524263EB040389 -:1006C000994208BF904230BD064C074D06E0E068F5 -:1006D00040F0010394E8070098471034AC42F6D389 -:1006E000FFF708FD7853000898530008202A04DB20 -:1006F000203A00FA02F1002070479140C2F1200335 -:1007000020FA03F3194390407047202A06DBCB17E9 -:10071000203A41FA02F043EAE07306E041FA02F3BC -:10072000D040C2F1200291400843194670470000B2 -:1007300018B1012803D000207047024870470248D2 -:10074000704700005C000020B400002032B1054B6F -:1007500003EB401040F82120002070476FF00100AB -:10076000704700007805002010B54FF0FF340228D4 -:1007700006D2FFF7DDFF18B123B101F01DFA04E046 -:10078000204610BD142300F0E3FF0028F9D001201B -:1007900010BD38B54FF0FF34049D022806D2FFF794 -:1007A000C7FF18B125B101F07FF905E0204638BD3B -:1007B0001424009401F07FF80028F8D0012038BDFF -:1007C00008B100207047014870470000680200200F -:1007D000FEE70000014800F0EDB8000050010020E5 -:1007E000014800F0E7B800000C010020014800F0CB -:1007F000E1B8000094010020014800F0DBB80000DF -:10080000B0020020014800F0D5B80000F40200203A -:1008100030B590F840500124AC40C56B6C60046862 -:1008200063604368102B036803D099600068C2605E -:1008300030BD9A600068C16030BD70474FF4805091 -:1008400000F0F0B910B5202000F0ECF9402000F0E5 -:10085000E9F9BDE81040802000F0E4B972B6FEE787 -:10086000014600200A0A00D008204FF2F00211428F -:1008700001D040F004004CF6CC42114201D040F0CF -:1008800002004AF6AA22114201D040F0010070474E -:10089000704700F0C3BA000070B515460C46084614 -:1008A000FFF7DEFF002B0FD0084941F8203020462B -:1008B00001F014FF04460022294600F05DFB2046AB -:1008C000BDE8704000F04ABB70BD0000DC060020AF -:1008D000D2B200F0A8BA10B590F821100022022977 -:1008E00005D00421816380F82020012010BD01681B -:1008F0000B6823F00E030B6001680B6823F0010303 -:100900000B6090F84030C46B012101FA03F363607F -:1009100080F8211080F82020104610BD10B590F806 -:1009200021100024022903D00421816301243DE029 -:1009300001680A6822F00E020A6001680A6822F063 -:1009400001020A601A4A0168914201D1012121E0A5 -:10095000174A1432914201D110211BE0144A283267 -:10096000914201D1891515E0114A3C32914201D1E1 -:1009700089140FE00E4A5032914202D14FF4803177 -:1009800008E00B4A6432914202D14FF4801101E039 -:100990004FF08071064A083A5160012180F8211019 -:1009A000002180F82010416B01B18847204610BD1E -:1009B000080002402DE9F05FC16B0C6801680B680C -:1009C000D0F840C0042202FA0CF2494DDFF824A10D -:1009D000494E4A4FDFF828B1DFF828E122422CD0F7 -:1009E0005A072AD50A68920603D40A6822F004023C -:1009F0000A600168A94201D1042219E0514501D1E0 -:100A0000402215E0B14202D14FF4806210E0B942B9 -:100A100002D14FF480420BE0594502D14FF48022BD -:100A200006E0714502D14FF4800201E04FF0806290 -:100A30002F4908394A60C16A3BE04FF0020808FAC2 -:100A40000CF818EA040F4FF000094FF0010235D0FE -:100A50005FEA837832D50B689B0605D40B6823F0D8 -:100A60000A030B6080F821200168A94201D102220B -:100A700019E0514501D1202215E0B14202D14FF4D5 -:100A8000007210E0B94202D14FF400520BE0594518 -:100A900002D14FF4003206E0714502D14FF400124A -:100AA00001E04FF00072124908394A6080F8209046 -:100AB000816A00291AD0BDE8F05F0847082505FAC9 -:100AC0000CF5254212D01B0710D50B6823F00E033E -:100AD0000B6090F84010C36B02FA01F15960826319 -:100AE00080F8212080F82090016BE2E7BDE8F09FBC -:100AF000080002401C000240300002404400024056 -:100B0000580002406C00024030B528B308C81349B1 -:100B100014221944B1FBF2F18900C16310498163C9 -:100B2000022141771A6843F6F0718A43D0E9001434 -:100B30002143D0E902452C43214304692143446900 -:100B4000214384692143114319600021416301223B -:100B500042770177084630BD012030BDF8FFFDBF68 -:100B60000000024070B5044690F8200000250128DE -:100B70000CD0012084F8200094F821600020012E80 -:100B800006D084F820000225284670BD022070BDE2 -:100B9000022684F82160A0632068066826F001061A -:100BA00006602046FFF734FEE06A002820680168EE -:100BB00002D041F00E0106E021F00401016020683E -:100BC000016841F00A0101602068016841F00101FB -:100BD0000160D9E770B5044600F02AF90546601CAB -:100BE00002D004480078044400F022F9401BA042DF -:100BF000FAD370BD040000202DE9F0410024084F15 -:100C00000646012505FA04F0304203D057F82400C7 -:100C100000B18047641CE4B2102CF3D3BDE8F0812E -:100C200038050020044910B50A68024202D0086065 -:100C3000FFF7E2FF10BD0000140401402DE9F84F5A -:100C4000DFF8B8910024A9F1040B23460F2709F11E -:100C5000040AABF1040EC9E00125A5402A40AA42CE -:100C60007DD1674ED1F804C0ACEB0608B44532D054 -:100C700014DCBCF1030F3AD009DCBCF1000F2AD020 -:100C8000BCF1010F1CD0BCF1020F31D11DE0BCF151 -:100C9000110F17D0BCF1120F2AD119E0B8F5881F37 -:100CA00019D006DCB8F5803F15D0B8F5801F1FD1EC -:100CB00011E0B8F5001F0ED0B8F5041F18D10AE0F6 -:100CC000CB6815E0CB681B1D12E0CB6808330FE042 -:100CD000CB680C330CE08B682BB1012B4FF0080371 -:100CE00003D0456104E0042302E0056100E0002335 -:100CF000FF2A01D8064601E000F104064FEA840508 -:100D000001D9A5F12005D6F8008007FA05FC28EAEC -:100D10000C0803FA05F548EA0508C6F800804D6896 -:100D2000ED0062D5374DAE6946F00106AE61AD69A2 -:100D300024F0030605F001050095334D06EB050C84 -:100D4000DCF80850A607360F07FA06F825EA08056A -:100D5000DFF8B880404503D14FF0000817E044E0C9 -:100D6000DFF8AC80404502D14FF001080FE0DFF81A -:100D7000A480404502D14FF0020808E0DFF89880D7 -:100D8000404502D14FF0030801E04FF0040808FA93 -:100D900006F848EA0508CCF808804D68D9F80060E4 -:100DA000ED024D4601D5164300E096432E604D6896 -:100DB000DAF80060AD02554601D5164300E09643CF -:100DC0002E604D68DBF80060AD035D4601D516432B -:100DD00000E096432E604D68DEF80060ED03754636 -:100DE00001D5164300E096432E60641C0D682A4628 -:100DF000E5407FF431AFBDE8F88F00000804014002 -:100E000000001110001002400000014000080140E5 -:100E1000000C0140001001400014014080680840AF -:100E200000D0012070470AB1016170470904FBE757 -:100E300001488068704700000400002070B504007D -:100E400004D094F84100002510B106E0012070BDE7 -:100E500084F84050204601F00DFB242084F8410026 -:100E60002068C16821F40051C160204603F0BCFB3A -:100E70002068016921F4904101612068416921F0F5 -:100E8000220141612068416941F008014161206807 -:100E9000C16841F40051C1606564202084F84100BC -:100EA00084F842006563002070BD0000024881683C -:100EB000027811448160704704000020074810B593 -:100EC000016841F010010160032000F075F80F2067 -:100ED00000F006F800F024F8002010BD00200240C9 -:100EE00070B50D4D04464FF47A712878B1FBF0F0DF -:100EF0000A490968B1FBF0F000F02AFF48B9102C4C -:100F000007D200222146501E00F036F800206C6007 -:100F100070BD012070BD0000040000201000002002 -:100F20000C4808B5816941F001018161816901F0D6 -:100F300001010091C16941F08051C161C06900F0B7 -:100F4000805000900448416821F0E06141F0007158 -:100F5000416008BD0010024000000140002809DB8C -:100F600000F01F02012191404009800000F1E020C3 -:100F7000C0F8001170470000F0B40E4B1B680C461F -:100F8000C3F30223C3F10705042D00D90425191D5D -:100F9000072901D2002300E0DB1E012606FA05F135 -:100FA000491E214099409E40761E16403143F0BCB8 -:100FB00003F088BC0CED00E0064900F00702086869 -:100FC0004FF6FF03184040EA0220034A104308602E -:100FD000704700000CED00E00000FA052DE9F04735 -:100FE0000F46050061D0434E306800F00700B8425C -:100FF00009D2306820F0070038433060306800F0D4 -:101000000700B84251D128683B4C810712D54007F0 -:1010100003D5606840F4E06060602878000703D57D -:10102000606840F4605060606068A96820F0F0007B -:10103000084360602878C00728D06868012810D06D -:101040002168022810D0890700292EDA616821F072 -:10105000030101436160FFF7EBFE804641F28839EE -:101060000DE021688903EFE78901EDE7FFF7E0FE76 -:10107000A0EB0801494502D90320BDE8F08760686C -:10108000696800F00C00B0EB810FEFD1306800F020 -:101090000700B8420BD9306820F0070038433060B1 -:1010A000306800F00700B84201D00120E5E7287859 -:1010B000400705D56068E96820F4E0600843606097 -:1010C0002878000706D56068296920F4605040EA56 -:1010D000C100606000F038F86168084AC1F303118C -:1010E000515CC8400649086006480068FFF7F8FEF2 -:1010F0000020C2E700200240001002401652000803 -:1011000010000020080000200448054900684968D4 -:10111000044AC1F30221515CC8407047100000200E -:10112000001002402652000804480549006849683A -:10113000044AC1F3C221515CC8407047100000202E -:1011400000100240265200080F4A516801F00C00BE -:10115000042803D0082803D00C4870470C48704777 -:101160000C48C1F38343C903C05C0AD55168094ADE -:10117000C1F34041921E515C054A5043B0FBF1F06F -:1011800070470549484370470010024000127A003A -:101190000024F4000652000800093D002DE9F84F34 -:1011A000040070D02078C04DC00749D06868C0F3F3 -:1011B0008100012807D06868C0F38100022809D1A6 -:1011C0006868C00306D52868800339D560680028A0 -:1011D000E7D035E06068B0F5803F0BD010B1B0F5D6 -:1011E000A02F11D0286820F480302860286820F4CF -:1011F000802002E0286840F480302860606890B168 -:10120000FFF716FE06460AE0286840F480202860B2 -:10121000F0E700BFFFF70CFE801B642873D8286836 -:101220008003F7D50CE0FFF703FE064605E000BF9C -:10123000FFF7FEFD801B6428F0D828688003F7D4F0 -:1012400020789A4E80074FF001094FF0000839D5F9 -:10125000686810F00C0F07D06868C0F3810002289E -:1012600009D16868C00306D42868800714D52069AE -:10127000012808D110E02069B0B1C6F80090FFF74E -:10128000D7FD074605E00AE1FFF7D2FDC01B0228A3 -:10129000C4D828688007F7D52868616920F0F8006D -:1012A00040EAC10028600DE0C6F80080FFF7C0FDED -:1012B000074604E0FFF7BCFDC01B022823D82868BE -:1012C0008007F7D4207800072CD57948A169D9B1D7 -:1012D000C0F80090FFF7ACFD074604E0FFF7A8FD5B -:1012E000C01B02280FD8686A8007F7D571484FF4F1 -:1012F000FA510068B0FBF1F0009000BF0098411E69 -:101300000091FAD20EE080E0C0F80080FFF790FD77 -:10131000074604E0FFF78CFDC01B022875D8686AF9 -:101320008007F7D42078400760D5E8690027C0001F -:1013300008D4E86940F08050E861E869012700F0CE -:10134000805000905C480168C90513D40168834649 -:1013500041F480710160FFF76BFD824606E000BF3B -:10136000FFF766FDA0EB0A0064284ED8DBF800000A -:10137000C005F5D5E06801280AD008B1052813D0CA -:10138000286A20F001002862286A20F0040002E0A8 -:10139000286A40F001002862E06841F2883B98B179 -:1013A000FFF746FD82460BE0286A40F00400286201 -:1013B000EEE700BFFFF73CFDA0EB0A0159455AD804 -:1013C000286A8007F6D50CE0FFF732FD824605E07B -:1013D000FFF72EFDA0EB0A0159454CD8286A80077B -:1013E000F6D41FB1E86920F08050E861E06988B365 -:1013F0006968C1F38101022944D00228C6F86080DF -:1014000004D0FFF715FD044638E034E0FFF710FD87 -:10141000074604E0FFF70CFDC01B02282BD8286804 -:101420008001F7D4206AB0F5803F05D16868A168D3 -:1014300020F4003008436860D4E908010843696873 -:1014400021F4741108436860C6F86090FFF7F0FC5F -:10145000044606E025E000BFFFF7EAFC001B022877 -:1014600009D828688001F7D51BE000BFFFF7E0FC32 -:10147000001B022802D90320BDE8F88F28688001EC -:10148000F4D40EE00128F7D06868226A00F48031B5 -:10149000914204D1616A00F47010884201D00120A9 -:1014A000EAE70020E8E700000010024000004242A6 -:1014B00080044242100000200070004070B50446D5 -:1014C00001F000FC032811D0204601F0FBFB084D81 -:1014D00005EB40108069002808D0204601F0F2FB9F -:1014E00005EB40108069BDE87040004770BD00000A -:1014F0007805002070B5040009D0606A002540B16D -:1015000025616561A56294F8510040B10CE00120AD -:1015100070BD6068B0F5827FF4D0E561F2E784F8D1 -:101520005050204600F040F8022084F85100206816 -:10153000016821F040010160A088218900F48270D7 -:1015400001F404410843A18901F400610843217CAE -:1015500001F002010843217D01F001010843218BC4 -:1015600001F400710843217F01F03801084394F829 -:10157000201001F080010843218D01F4005108433F -:1015800021680860A069042101EA104021684860D0 -:101590002068C16921F40061C1616565012084F89A -:1015A0005100002070BD00002DE9F04186B00024FC -:1015B00000940194029403940646424D0368424805 -:1015C0000221032210274FF08008AB4247D18369E4 -:1015D00043F480538361836903F4805304938369E4 -:1015E00043F0040383618069384D00F004000490E7 -:1015F000A020CDE90001039269462846FFF71EFBB3 -:101600004020CDE90004694628460294FFF716FB06 -:10161000304D2F48C5E90007C5E902482C616C61CF -:10162000AC6147462846EC61FFF76EFA08B1FFF758 -:1016300015F9B5646E62274D254844351438C5E95F -:101640000004C5E902472C616C61AC612846EC617D -:10165000FFF75AFA08B1FFF701F9F5642EE01E4DC5 -:10166000AB422CD1C36943F48043C361C36903F423 -:1016700080430493836943F0080383618069039284 -:1016800000F0080004904FF42040CDE900016946C5 -:101690001248FFF7D3FA0F4D0D48883528302860DF -:1016A000C5E90174C5E903846C61AC612846EC614D -:1016B000FFF72AFA08B1FFF7D1F8B5646E6206B0F9 -:1016C000BDE8F081003001400010024000080140F8 -:1016D000300002400C01002000380040000C0140A6 -:1016E00070B5044601F0EEFA032811D0204601F04F -:1016F000E9FA084D05EB40104068002808D0204664 -:1017000001F0E0FA05EB40104068BDE8704000478A -:1017100070BD00007805002070B5044601F0D2FAD3 -:10172000032811D0204601F0CDFA084D05EB4010FA -:101730000069002808D0204601F0C4FA05EB4010EB -:101740000069BDE87040004770BD000078050020CA -:101750002DE9F84F984616468A460446FFF768FB7F -:10176000814694F8510001281ED1BAF1000F73D0C0 -:10177000002E71D094F85000012815D0012784F86C -:101780005070032084F8510000256565C4F830A02E -:10179000A686E686A563A587E58765642564A068B7 -:1017A000B0F5004F03D00CE00220BDE8F88F2068B0 -:1017B000016821F0400101602068016841F4804126 -:1017C000016020680168490603D4016841F04001C6 -:1017D0000160E068B0F5006F606803D048B3012E87 -:1017E00027D047E008B1012E1FD1206B2168008867 -:1017F000C86006E020688168890709D5216B0988DF -:10180000C160206B801C2063E08E401EE0860CE0EF -:10181000FFF70EFBA0EB0901414503D3B8F1FF3FF1 -:1018200003D035E0B8F1000F32D0E08E0028E1D1CE -:1018300023E0206B21680078087306E02068816847 -:1018400089070AD5216B09780173206B401C20633E -:10185000E08E401EE0860DE02BE0FFF7E9FAA0EBFA -:101860000901414503D3B8F1FF3F03D010E0B8F1BF -:10187000000F0DD0E08E0028E0D14A4641462046B8 -:1018800001F005FA08B120206065A06830B109E0D8 -:1018900084F8517084F85050032086E72068C168AE -:1018A0008068009084F8517004F8505F60680028E8 -:1018B000F3D0012079E72DE9FF4F81B01D46934613 -:1018C00004464FF001090E9EFFF7B2FA074694F85E -:1018D00051006168012806D0B1F5827F3CD1A16832 -:1018E000C9BB042838D10298002871D0BBF1000F81 -:1018F000FBD0002DF9D094F8500001282CD04FF0E7 -:10190000010A84F850A094F85100042802D0052060 -:1019100084F851004FF00008C4F85480C4F838B07F -:10192000E587A58702992163E586A586C4F84080EE -:10193000C4F8448020680168490603D4016841F076 -:1019400040010160E068B0F5006F606808D0F0B356 -:10195000012D49D081E0FFE7022005B0BDE8F08FFE -:1019600008B1012D39D1206B21680088C860206B37 -:10197000801C2063E08E401EE0862EE02068816897 -:1019800089070FD5E18E69B1B9F1010F0AD1216B39 -:101990000988C160206B801C2063E08E401EE086B9 -:1019A0004FF0000920688168C9070CD0E18F51B160 -:1019B000C068A16B0880A06B801CA063E08F401EF4 -:1019C000E0874FF00109FFF733FAC01B01E00BE09D -:1019D00067E0B04201D3701C50D1E08E0028CDD119 -:1019E000E08F0028CAD13EE0206B216800780873A0 -:1019F000206B401C2063E08E401EE0862DE02068B6 -:101A0000816889070FD5E18E69B1B9F1010F0AD15B -:101A1000216B09780173206B401C2063E08E401E0F -:101A2000E0864FF0000920688168C9070CD0E18F7B -:101A300051B1C068A16B0870A06B401CA063E08F1F -:101A4000401EE0874FF00109FFF7F2F9C01BB042DA -:101A500002D3701C01D011E086B1E08E0028CED1F7 -:101A6000E08F0028CBD13A463146204601F00FF9ED -:101A700050B12020606584F8508012E084F851A0B5 -:101A800084F85080032068E7A06818B92068C1680E -:101A90008068009084F851A084F85080606D002820 -:101AA000F1D0012059E7000070B5044690F85100CC -:101AB0006568012806D0B5F5827F3AD1A568A5BB37 -:101AC000042836D191B38AB383B394F85000012827 -:101AD0002FD0012084F8500094F85100042802D03F -:101AE000052084F85100002565652163A386E386FF -:101AF000A263A387E3872564656494F851000428F2 -:101B000019D0E16C2748C8622748E16C8862E16C13 -:101B100026480863E06C4563E38F2168A26B0C31B3 -:101B2000E06CFFF71FF800BB0AE002E0FFE70120CE -:101B300070BD022070BDE16C1D48C8621D48E4E71D -:101B40002068416841F001014160A06CC562A06C51 -:101B50008562A06C0563A06C4563E38E2268216BEF -:101B60000C32A06CFEF7FEFF30B1606D40F010004B -:101B7000606584F85050DAE720680168490603D4AC -:101B8000016841F04001016084F8505020684168CC -:101B900041F0200141602068416841F0020141604C -:101BA000002070BD012B0008D92B0008CB2A0008AB -:101BB000ED2A00080B2B000870B5044690F8510080 -:101BC00001281CD1C9B1C2B194F85000012816D027 -:101BD000012084F85000032084F851000025656539 -:101BE0002163A286E286A56365642564A587E587EF -:101BF000A068B0F5004F04D00DE0012070BD0220B8 -:101C000070BD2068016821F0400101602068016812 -:101C100041F480410160A16C1748C862A16C17486B -:101C20008862A16C16480863A06C4563E38E226845 -:101C3000216B0C32A06CFEF795FF30B1606D40F067 -:101C40001000606584F85050D7E7206801684906A5 -:101C500003D4016841F04001016084F850502068CD -:101C6000416841F0200141602068416841F0020173 -:101C70004160002070BD0000F72A0008752B0008A5 -:101C8000CB2A000810B501F01DF8032808D005493B -:101C900001EB40100068002802D0BDE8104000476A -:101CA00010BD00007805002070B5044601F00AF868 -:101CB000032811D0204601F005F8084D05EB40102F -:101CC000C068002808D0204600F0FCFF05EB40105B -:101CD000C068BDE87040004770BD00007805002076 -:101CE00070B5044600F0EEFF032811D0204600F046 -:101CF000E9FF084D05EB40108068002808D0204619 -:101D000000F0E0FF05EB40108068BDE87040004740 -:101D100070BD00007805002070B5044600F0D2FFC9 -:101D2000032811D0204600F0CDFF084D05EB4010F0 -:101D30004069002808D0204600F0C4FF05EB4010A1 -:101D40004069BDE87040004770BD00007805002084 -:101D500010B5401EB0F1807F01D3012010BD4FF0BF -:101D6000E02460610F21601702F0ACFD0020A0614B -:101D700007202061002010BD10B590F83C20012AFA -:101D800022D0012280F83C20CA688C6822F440727C -:101D900022434C6822F4806222430C6822F40062E1 -:101DA00022430C6922F4805222434C6922F40052EF -:101DB0002243C969002322F480420A4301684A642D -:101DC00080F83C30002010BD022010BD70B590F8A6 -:101DD0003C20012A26D0012480F83C40022280F8D1 -:101DE0003D2003685A689D6822F070060A683243F5 -:101DF0005A600D4B02689A4208D0B2F1804F05D06C -:101E00000A4B9A4202D00A4B9A4204D1496825F003 -:101E100080031943916080F83D40002180F83C1018 -:101E2000084670BD022070BD002C01400004004037 -:101E30000008004010B5040003D094F83D0010B134 -:101E400007E0012010BD002084F83C00204600F08F -:101E50001FF8022084F83D00211D206802F090F94F -:101E6000012084F8460084F83E0084F83F0084F89E -:101E7000400084F8410084F8420084F8430084F86C -:101E8000440084F8450084F83D00002010BD0000A7 -:101E900008B500680649884208D10648816941F4BE -:101EA00000618161806900F40060009008BD00005D -:101EB000002C01400010024070B5044690F83C0030 -:101EC0000025012817D0012684F83C60022084F800 -:101ED0003D002068826822F0770222F47F4282600F -:101EE0000868502838D00DDC20284FD005DC90B38E -:101EF000102811D14AE0022070BD302846D0402879 -:101F00000AD13BE060282FD070280DD0B0F5805F5B -:101F100003D0B0F5005F12D0012584F83D600020A9 -:101F200084F83C00284670BDCB68D1E901212068C7 -:101F300002F062F92068816841F0770109E0CB681E -:101F4000D1E90121206802F057F92068816841F445 -:101F500080418160E1E719E0CA684968206802F0C1 -:101F6000FFF95021206806E0CA684968206802F03D -:101F700008FA6021206802F049F9CEE7CA6849688A -:101F8000206802F0EDF940212068F4E7226801465C -:101F90001046F0E700B585B0002100910191029153 -:101FA000039100680B49884212D10B48816941F0C6 -:101FB000040181618069694600F0040004904FF4D7 -:101FC000006000900220019003900448FEF736FE66 -:101FD00005B000BD002C0140001002400008014087 -:101FE00070B5044690F83C0000260D4601280FD03D -:101FF000012084F83C006AB1042A1DD0082A2FD0A1 -:102000000C2A3FD00126002084F83C00304670BDE9 -:10201000022070BD206802F001F92068816941F05A -:10202000080181612068816921F0040181612068D3 -:1020300081692A69114311E0206802F017F92068CC -:10204000816941F4006181612068816921F48061C6 -:102050008161206881692A6941EA02218161D2E7B0 -:10206000206802F02FF92068C16941F00801C161C0 -:102070002068C16921F00401C1612068C1692A6931 -:10208000114311E0206802F049F92068C16941F468 -:102090000061C1612068C16921F48061C16120686B -:1020A000C1692A6941EA0221C161ACE710B50400A7 -:1020B00003D094F83D0010B107E0012010BD0020CE -:1020C00084F83C00204600F01EF8022084F83D0011 -:1020D000211D206802F054F8012084F8460084F89D -:1020E0003E0084F83F0084F8400084F8410084F802 -:1020F000420084F8430084F8440084F8450084F8E2 -:102100003D00002010BD7047704710B504460068C0 -:10211000406994F84110C0F3C010212911D180B159 -:102120002068143050E8001F21F0800140E80012C0 -:10213000002AF5D1A06B08B1FEF7CDFB204602F0D6 -:10214000D8F92068406994F84210C0F38010222921 -:1021500011D180B12068143050E8001F21F04001F7 -:1021600040E80012002AF5D1E06B08B1FEF7B3FB9E -:10217000204602F097F9002010BD000010B502F0D3 -:10218000C7F902280AD000EBC001054800EB810026 -:102190000069002802D0BDE81040004710BD0000D3 -:1021A000B8050020F8B5016804460868CA684B699C -:1021B00010F00F0F4FF0000559D003F0010602F4A4 -:1021C0009077374365D0C10705D0D10503D5616C41 -:1021D00041F001016164410705D5D90703D0616C65 -:1021E00041F002016164810705D5D90703D0616C14 -:1021F00041F004016164010707D502F02001314379 -:1022000003D0616C41F008016164616C00293AD02F -:10221000800604D5900602D5204602F083F9206896 -:102220004069616CC0F38010090700D460B3204698 -:1022300002F038F920684069400621D52068143042 -:1022400050E8001F21F0400140E80012002AF5D1BB -:10225000E06BA8B16D494163E06BFEF75FFB0028BE -:1022600011D0E06B416B01B0BDE8F0400847830638 -:102270000FD593060DD52046BDE8F84002F052B9BF -:102280002046FFF77BFFF8BD2046FFF777FF656428 -:10229000F8BD266B2023012E7CD1C6067AD5D60642 -:1022A00078D508684868009048694FF002064006F3 -:1022B00040D5E16B086840680004000CE8D0A28DAE -:1022C0008242E5D9E085886920282DD020680C302D -:1022D00050E8001F21F4807140E80012002AF5D177 -:1022E0002068143050E8001F21F0010140E800127E -:1022F000002AF5D12068143050E8001F21F0400179 -:1023000040E80012002AF5D184F8423025632068A5 -:102310000C3050E8001F21F0100140E80012002AA4 -:10232000F5D1E06BFEF7D7FA6663A08DE18D401A18 -:1023300081B22AE0A08DE18D401A81B2E08D0028A3 -:10234000A6D00029A4D022680C3252E8000F20F455 -:10235000907042E80007002FF5D12068143050E853 -:10236000002F22F0010240E80027002FF5D184F869 -:102370004230256320680C3050E8002F22F0100214 -:1023800040E80023002BF5D166632046FFF7BCFE32 -:10239000F8BDFFE705062BD5150629D594F84100B1 -:1023A0002128F5D1A068B0F5805F01D12069B0B1D6 -:1023B000206A411C2162216800784860E08C401E40 -:1023C0000004000CE084E3D12068C16821F08001A2 -:1023D000C1602068C16841F04001C160D8E7206A4F -:1023E0000088C0F308004860206A801C2062E5E78E -:1023F0004006CDD55006CBD5CA68204622F0400213 -:10240000CA6084F8413000F047F9C1E7A7430008EB -:1024100070B5040004D094F84100002510B106E026 -:10242000012070BD84F84050204600F023F824209D -:1024300084F841002068C16821F40051C160204641 -:1024400002F0D2F82068016921F49041016120680E -:10245000416921F02A0141612068C16841F40051BD -:10246000C1606564202084F8410084F842006563FF -:10247000002070BDF0B585B0002400940194029452 -:10248000039406463B4B02683B4803213B4D9A426E -:102490001AD1826942F480428261826902F48042E8 -:1024A0000492826942F0040282618069039100F023 -:1024B00004000490581500901220019069462846A7 -:1024C000FEF7BCFB05B0F0BD2D4B9A42FAD1C269B4 -:1024D00042F40032C261C26902F40032049282699D -:1024E00042F0040282618069039100F004000490CC -:1024F000042000900220019069462846FEF79EFBCA -:102500000820CDE90004694628460294FEF796FBB0 -:102510001D4D1C488027C5E90004C5E902472C6110 -:102520006C61AC612846EC61FEF7EEFA08B1FEF78B -:1025300095F9F5636E62144D12484435143001C5A7 -:10254000102091C5104845F8104944306C61AC61C9 -:10255000EC61FEF7D9FA08B1FEF780F9B563002205 -:10256000052126206E62FEF707FD2620FEF7F6FC09 -:10257000A8E70000003801400010024000080140B8 -:10258000004400406C000240B002002090F842304D -:10259000202B01D00220704721B11AB10023036320 -:1025A00002F07EB80120704710B501F0B1FF02289B -:1025B0000AD000EBC001054800EB8100C06800288C -:1025C00002D0BDE81040004710BD0000B805002053 -:1025D00010B501F09DFF02280AD000EBC0010548AC -:1025E00000EB81008068002802D0BDE81040004761 -:1025F00010BD0000B80500202DE9F843044690F80E -:102600004100984616460D46202802D00220BDE81B -:10261000F88385B17EB100206064212084F84100F8 -:10262000FEF706FCA6848146E684A0682027B0F564 -:10263000805F02D003E00120E9E7206910B12E4657 -:1026400000250EE000260CE08021204602F070F804 -:10265000A8B9C6B116F8010B21684860E08C401E8D -:10266000E084E08C4B464FF00002CDF8008000285B -:10267000EAD14FF04001204602F05AF840B184F808 -:1026800041700320C3E735F8020BC0F30800E3E70D -:1026900084F841700020BAE710B501F039FF022834 -:1026A0000AD000EBC001054800EB8100406800281B -:1026B00002D0BDE81040004710BD0000B805002062 -:1026C000FEE7000010B50321034801F017FBBDE849 -:1026D000104001F0C1BC00002027002000B5FEF72B -:1026E000BFF8012801D8062000BD032801D8072023 -:1026F00000BD052801D8082000BD072801D8092001 -:1027000000BD092801D80A2000BD0F2801D81720D4 -:1027100000BD282000BD0000194808B5416941F0FE -:10272000010141614069002200F001000090114662 -:102730000C20FEF721FC0C20FEF710FC00221146B5 -:102740000D20FEF719FC0D20FEF708FC00221146B3 -:102750000F20FEF711FC0F20FEF700FC00221146AF -:102760001020FEF709FC1020FEF7F8FB00221146AE -:102770001120FEF701FCBDE808401120FEF7EEBB7A -:10278000001002402DE9F04186B000263E48009638 -:10279000019602960396816941F020018161816969 -:1027A00001F020010491816941F004018161816996 -:1027B00001F004010491816941F00801816180699F -:1027C000324F00F008004FF4887404900022214634 -:1027D0003846FEF728FBDFF8B880002245F21921C1 -:1027E0004046FEF720FB01258DE870000224694673 -:1027F00038460394FEF722FACDE902540095694663 -:1028000040460195FEF71AFA4FF4A44003948DE870 -:10281000610069464046FEF711FAE00200901D484B -:10282000CDE9010669463846FEF708FA18200090FF -:10283000CDE90154694640460394FEF7FFF9E020D4 -:1028400000901548CDE9010469464046FEF7F6F9C7 -:10285000E001CDE90006694602944046FEF7EEF934 -:10286000002205211720FEF787FB1720FEF776FBD5 -:10287000002205212820FEF77FFB2820FEF76EFBB3 -:1028800006B0BDE8F08100000010024000080140E1 -:10289000000C01400000211000001110104810B57C -:1028A0000E4901604FF48271416000218160C16076 -:1028B0004FF400720161C0E905121022C0E907213E -:1028C000416281620A21C162FEF714FE002803D032 -:1028D000BDE81040FDF7C2BF10BD00000030014050 -:1028E0005C000020104810B50E4901604FF4827161 -:1028F000416000218160C1604FF400720161C0E954 -:1029000005120822C0E90721416281620A21C162E1 -:10291000FEF7F0FD002803D0BDE81040FDF79EBF94 -:1029200010BD000000380040B400002010B596B083 -:1029300000240F9410941194129413941C2108A84D -:102940001494FDF71AFC20216846FDF716FC274871 -:102950002549C0E900144FF6FF71C0E90241046146 -:1029600044618461FFF766FA08B1FDF777FF4FF421 -:1029700080500F900FA91D48FFF79EFA08B1FDF790 -:102980006DFF1A48FFF792FB08B1FDF767FF13943C -:1029900013A916481494FFF719FA08B1FDF75EFF62 -:1029A0006020CDE908040A940C940D940C2208A927 -:1029B0000E480E94FFF714FB08B1FDF74FFF00948B -:1029C0004FF40050CDE90440029401940394694609 -:1029D00006480794FFF7D0F908B1FDF73FFF034819 -:1029E000FFF7D8FA16B010BD002C0140D801002026 -:1029F0000C4810B50A4901604FF4E13141600021F3 -:102A000081600822C160C0E904128161C161FEF7E2 -:102A100015FA002803D0BDE81040FDF71FBF10BD18 -:102A200000380140200200200C4810B50A4901601E -:102A30004FF4E1314160002181600C22C160C0E9A6 -:102A400004128161C161FFF7E3FC002803D0BDE8F7 -:102A50001040FDF703BF10BD004400406802002095 -:102A6000FEE7FEE7034910B50220487001F096F832 -:102A700010BD000014000020034910B50420487068 -:102A800001F08CF810BD000014000020034910B5BF -:102A90000320487001F082F810BD000014000020EF -:102AA000034910B50520487001F078F810BD00000A -:102AB00014000020034910B50620487001F06EF89C -:102AC00010BD000014000020704710B5406A016876 -:102AD0004A6822F003024A60416D41F010014165ED -:102AE000012180F85110FEF7E9FC10BD10B5406AD5 -:102AF000FEF712FE10BD10B5406AFFF7D5F810BD05 -:102B000010B5406AFFF708F910BD70B50546446A74 -:102B1000FEF78EF9024628680068800626D42068F1 -:102B2000416821F020014160A06818B96068B0F5E3 -:102B3000827F16D02068416821F001014160642144 -:102B4000204600F076F808B1202060650020E0877C -:102B5000012084F85100606D40B12046FEF7AEFCC4 -:102B600070BD2068416821F00301E7E72046FEF7C9 -:102B7000B7FD70BD38B50546446AFEF759F90246FF -:102B800028680068800623D42068416821F020016D -:102B900041602068416821F00201416064212046C3 -:102BA00000F075F818B1606D40F020006065A06815 -:102BB000002118B92068C26880680090E186012071 -:102BC00084F85100606D18B12046FEF777FC38BDDF -:102BD0002046FFF757F838BD70B50546446AFEF742 -:102BE00027F902462868006880061ED420684168DC -:102BF00021F0200141606421204600F048F818B11E -:102C0000606D40F0200060652068416821F003019C -:102C100041600020E086E087012084F85100606D6B -:102C200018B12046FEF74AFC70BD2046FFF758F861 -:102C300070BDF8B5044640684FF48273984217D1CE -:102C4000A0684FF48065B0F5004F01D0A8420FD1C5 -:102C50002068066826F0400606606068984207D142 -:102C6000A068A84204D100920B460022012103E093 -:102C700000920B4600228021204600F035F8002803 -:102C800004D0606D40F0200060650320F8BDF8B509 -:102C900015460E460B46009204460122022100F022 -:102CA00023F840B93346002280212046009500F0E9 -:102CB0001BF8002804D0606D40F020006065032000 -:102CC000F8BD000000680649884201D10020704725 -:102CD0000449884201D10120704703207047000059 -:102CE00000300140003800402DE9F8431E4691466F -:102CF00088460446089DFEF79BF8401B351AFEF7F0 -:102D000097F8074625480068C0F3CB30684338E0A1 -:102D1000701C37D0FEF78CF8C01BA84203D215B147 -:102D2000009860B32CE02068416821F0E001416028 -:102D30006068B0F5827F0BD1A068B0F5004F02D07B -:102D4000B0F5806F04D12068016821F04001016076 -:102D5000A06AB0F5005F09D12068016821F4005134 -:102D600001602068016841F400510160012084F88D -:102D70005100002084F850000320BDE8F8830025AE -:102D8000401E00902068816838EA010004D00021CC -:102D90004945BDD10020F0E70121F9E710000020EE -:102DA0007047C0F340114901C0F3001241EA02111B -:102DB000C0F3C00241EAC201C0F3800241EA8201CD -:102DC000C0F3400241EA420108B500F001000143AE -:102DD0008DF8001001226946892000F017FB08BD1C -:102DE00008B5010A8DF800108DF80100022269462D -:102DF000972000F00BFB08BD10B54FF4AA7000F04F -:102E000079FA044640F2531000F074FA44EA0020C4 -:102E100010BD000070B5204A002001465278032AF8 -:102E200039DA002A37D0012A35D140F6541000F0A3 -:102E300061FA044640F6551000F05CFA054640F68B -:102E4000561000F057FA210441EA05210143C1F36D -:102E5000130400F035F8FDF785FA02460B46002012 -:102E60000E49FDF710FA00220D4BFDF79AF90546C1 -:102E70000E462046B4F5002F01D3A4F58010FDF7CF -:102E800071FA084A084BFDF78CF92A463346BDE82B -:102E90007040FDF7F8B970BD3C000020000099407B -:102EA00000408F40CDCCCCCCCCCCF83F08B5022232 -:102EB0006946152000F0E8F9BDF8000040BA08BDE9 -:102EC0000949002089780A290BD0182907D026291A -:102ED00003D0342900D1054870470548704705489C -:102EE00070470548704700003C000020751903003A -:102EF000EA320600D4650C00A8CB1800014800781F -:102F0000704700003C0000201CB5044605226946BD -:102F10001D2000F0B9F9804840782070032865D062 -:102F20000FDCC0B1012815D19DF80000404200EB34 -:102F3000D070401060709DF80100802819D2800880 -:102F40001DE004287DD00F2804D100202060A0803F -:102F50000F2020701CBD9DF80000404200EBD07097 -:102F6000401060709DF80100404200EBD0704010AE -:102F700005E0A0F58070C11700EB91708010A07083 -:102F80009DF802008109E07861F30000E0709DF88F -:102F90000210490961F34100E0709DF8021009092F -:102FA00061F38200E0709DF80210C90861F3C3006C -:102FB000E0709DF80210890861F30410E0709DF83C -:102FC0000210490861F34510E0709DF8021061F3AA -:102FD0008610E0709DF803004109207961F300003C -:102FE00020719DF8031061F341008DE09DF8000011 -:102FF000404200EBD070401060709DF801004042EC -:1030000000EBD0704010A0709DF802008109E078BC -:1030100061F30000E0709DF80210490961F341007E -:10302000E0709DF80210090961F38200E0709DF8DC -:103030000210C90861F3C300E0709DF8021089080E -:1030400000E025E061F30410E0709DF802104908EB -:1030500061F34510E0709DF8021061F38610E07096 -:103060009DF803008109207961F3010020719DF82A -:103070000310490961F3820020719DF803100909CA -:1030800061F3C30020719DF8031061F304103BE06D -:103090009DF80000404200EBD070401060709DF839 -:1030A0000100404200EBD0704010A0709DF802007B -:1030B0008109E07861F30000E0709DF80210490991 -:1030C00061F34100E0709DF80210090961F382008C -:1030D000E0709DF80210C90861F3C300E0709DF82C -:1030E0000210890861F30410E0709DF8021049088D -:1030F00061F34510E0709DF8021061F38610E070F6 -:103100009DF8030000F0010020719DF8040000F01C -:10311000070060711CBD00003C00002001484078A1 -:10312000704700003C000020F8B50C4606461546E6 -:103130006946204600F01EF82278AA4201D90120F3 -:10314000F8BD31469DF8000000F068F80020F8BD99 -:1031500008B500208DF80000012269461F2000F00C -:1031600093F89DF80000404200EBD07040F3470018 -:1031700008BD0000F8B50D46044602226946172036 -:1031800000F082F80C4E707801280AD140F6031046 -:1031900000F0B0F8C00904D040F6011000F0AAF821 -:1031A00005E0707804289DF8000000D1801C207094 -:1031B0009DF801002870F8BD3C00002008B50020F3 -:1031C0008DF8000001226946C02000F05DF89DF8EE -:1031D000000008BD70B5074D4FF480712846FDF71B -:1031E00058FB044680212846FDF753FB44EA400083 -:1031F000C0B270BD000C014010B5044600F0BAF832 -:103200002046BDE8104000F001B80000002203682D -:1032100080210148FDF740BB000C01402DE9F04141 -:103220000E46014615481446D51C1B2202704170FB -:10323000002181700B4603E0C2185B1CD1709BB269 -:10324000A342F9D300F0B0F80D4F00221021384608 -:10325000FDF73EFB2A460B49084800F03BFF0949B1 -:103260002246C91C3046FCF76FFF01221021384668 -:10327000FDF72EFBBDE8F04100F096B81C070020DA -:10328000000801401B1700202DE9F0410E460146C1 -:10329000901C85B2144814460170002141700B4601 -:1032A00003E0C2185B1C91709BB2A342F9D300F0FB -:1032B0007BF80E4F002210213846FDF709FB2A4605 -:1032C0000B49094800F006FF09492246891C30468F -:1032D000FCF73AFF012210213846FDF7F9FABDE864 -:1032E000F04100F061B800001C0700200008014018 -:1032F0001B17002008B50122694600F003F89DF86D -:10330000000008BD2DE9F0410E46111D164B8DB28F -:1033100019211970010A5970987000211446D9704A -:10332000084603E01A18401C117180B2A042F9D37C -:1033300000F03AF80D4F002210213846FDF7C8FA88 -:103340002A460B49084800F0C5FE09492246091DD6 -:103350003046FCF7F9FE012210213846FDF7B8FA95 -:10336000BDE8F04100F020B81C0700200008014033 -:103370001B17002010B51420FDF72CFC094C00226F -:1033800001212046FDF7A4FA3220FDF723FC01229B -:1033900011462046FDF79CFABDE810401420FDF7C9 -:1033A00019BC0000000C014070B5054D4FF480744D -:1033B00021462846FDF732FD0128F9D070BD0000F6 -:1033C000000C014070B50F481A23941C00F8013B13 -:1033D000002300F8013BFCF7B7FEFFF7E5FF0A4DBD -:1033E000002210212846FDF773FA2146054800F017 -:1033F00065FE012210212846FDF76AFABDE87040FB -:10340000FFF7D2BF1C070020000801402DE9F04162 -:103410000546501C1446884686B2FFF7C5FF0F4F7D -:10342000002210213846FDF753FA0D482246414646 -:1034300000F8015BFCF788FE3146094800F03EFECB -:10344000012210213846FDF743FA842D03D0BDE850 -:10345000F041FFF7A9BFBDE8F0810000000801407E -:103460001C07002013B5012201A900F001F81CBDC2 -:1034700070B50346D01C84B20F48182500F8015BD4 -:103480001D0A00F8015B00F8013BFCF75DFEFFF749 -:103490008BFF0A4D002210212846FDF719FA21461C -:1034A000054800F00BFE012210212846FDF710FA16 -:1034B000BDE87040FFF778BF1C07002000080140FE -:1034C0000249C86001F10800FFF796BE3C000020E9 -:1034D0000348C17811B101210171704700F002B8B1 -:1034E0003C00002070B5514C2078002872D0E07864 -:1034F00030B1207900286DD072B60020207162B6FC -:103500006678FFF7D3FC05464FF6FF70FFF768FCBF -:103510002EB1012E40D0032E01D0042E5AD1207896 -:1035200004286FD0052855D1A80714D5680605D5FD -:10353000E06880B1816971B1022006E02807E06887 -:1035400005D540B1816931B10120884703E010B150 -:10355000406800B18047680704D5E06810B1806812 -:1035600000B18047280705D5E06818B1816909B125 -:10357000012044E0680458D5E068002855D040692F -:1035800005E0680451D5E06800284ED000690028A5 -:103590004BD0BDE8704000472078042832D0052881 -:1035A0000DD0062841D1E804E4D5A804E06833D55D -:1035B00000283AD0C169002937D0012032E0A8079D -:1035C0000DD56806E06806D548B1816939B1022099 -:1035D000884704E029E010B1406800B18047E80660 -:1035E00004D5E06810B1C06800B18047A806C1D515 -:1035F000E0680028BED081690029BBD00020884740 -:10360000B8E7FFE7E807BCD0E0680028B9D0006859 -:103610000028B6D08047B4E7002806D0C169002949 -:1036200003D00020BDE87040084770BD3C0000207A -:1036300010B5144600F080F92046BDE8104000F0B7 -:1036400067BA01B5012269469E20FFF7DFFE08BD7B -:1036500008B52138010A8DF800108DF8010002220A -:1036600069469820FFF7D2FE08BD10B50446010E4A -:1036700040F6CF10FFF7F6FEC4F307414FF41D608C -:10368000FFF7F0FEC4F3072140F6D110FFF7EAFE82 -:10369000E1B2BDE8104040F6D210FFF7E3BE0000F3 -:1036A0000148FFF7E2BF0000D6BE898E08B50222AE -:1036B0008DF800008DF8011069468F20FFF7A6FEF7 -:1036C00008BD000010B500221146C520FFF79EFE80 -:1036D00001490620087010BD3C00002001B5012200 -:1036E00069468820FFF792FE01490620087008BD50 -:1036F0003C00002008B5010A8DF800108DF801008B -:103700000548407808B1032805D10222694640F6F1 -:10371000C610FFF7ADFE08BD3C00002008B5010A49 -:103720008DF800108DF801000548407808B1032895 -:1037300005D10222694640F6C810FFF799FE08BD80 -:103740003C0000201CB5040A8DF800408DF80100F3 -:10375000080A8DF80200100A8DF804008DF8052083 -:10376000180A8DF806008DF803108DF8073008222E -:1037700069468D20FFF74AFE1CBD000010B50022EF -:103780001146C120FFF742FE01490320087010BD19 -:103790003C00002001490020C87070473C00002018 -:1037A00001B5012269469B20FFF730FE08BD0000ED -:1037B00038B5234D044600786978884201D000F07E -:1037C000ADF8207803281DD003DC38B1012822D1C0 -:1037D0000CE0042825D00F281DD12AE060788DF850 -:1037E0000000A0788DF80100E07812E020798DF8D3 -:1037F000000060798DF80100A0798DF802006079F1 -:10380000A87008E0E0798DF80000207A8DF80100BA -:10381000607A8DF80200032269468B20FFF7F6FDDF -:1038200038BDA07A8DF80000E07A8DF80100207B89 -:10383000EFE700208DF800008DF80100E9E70000B7 -:103840003C0000201CB53449044600784978884281 -:1038500001D000F063F821780020032935D003DC83 -:1038600039B101292BD118E0042942D00F2926D1E2 -:103870004CE060788DF80000A0788DF80100E078C9 -:103880008DF8020020798DF8030060798DF804002E -:10389000A0798DF80500E0790FE0217A8DF800100D -:1038A000617A8DF80110A17A8DF80210E17A8DF815 -:1038B0000310217B8DF804102BE08DF80600072201 -:1038C00069468C20FFF7A2FD1CBD607B8DF80000CF -:1038D000A07B8DF80100E07B8DF80200207C8DF844 -:1038E0000300607C8DF80400A07C8DF80500E07C6E -:1038F000E3E7217D8DF80010617D8DF80110A17D39 -:103900008DF80210E17D8DF8031000E000908DF835 -:1039100004008DF80500D0E73C00002001B5054902 -:103920009DF800000122487069468A20FFF76EFD6D -:1039300008BD00003C0000200A4601460020FFF7B9 -:1039400041BD000001490120C87070473C000020C3 -:1039500070B5074D002400BF05EB8400817835F871 -:103960002400FFF77FFD641C24B2002CF4D070BD4E -:103970008652000801B5012269469620FFF746FDF0 -:1039800008BD000008B5FCF7FEFC0022094BFCF75F -:103990007AFCFCF705FD010C8DF80010010A8DF88A -:1039A00001108DF80200032269468620FFF72EFDE4 -:1039B00008BD0000A8CB684008B58DF80000000CD9 -:1039C000010A8DF801108DF802004FF6FF70FFF725 -:1039D00007FA032269468220FFF718FD01490520F6 -:1039E000087008BD3C0000201CB58DF80000080AD6 -:1039F0008DF801008DF80210100A8DF803008DF883 -:103A00000420052269469420FFF700FD01490520A6 -:103A100008701CBD3C00002000221146D520FFF795 -:103A2000F5BC0000C107090FC0F3400241EA820162 -:103A3000C0F3800208B541EA4201C0F3C00001436F -:103A40008DF8001004490020012208706946842086 -:103A5000FFF7DCFC08BD00003C00002001B501229E -:103A600069468020FFF7D2FC9DF80010034811B191 -:103A70000221017008BD0121FBE700003C0000208D -:103A80000346194810B5427832B140F6CF10032AE8 -:103A900013D0042A22D11EE00522012B04D0022BD0 -:103AA00005D0032B1AD105E040F6CE1018E040F601 -:103AB000D31015E040F6D81012E00422012B0FD0ED -:103AC000022B02D0032B09D102E040F6D41007E00C -:103AD00040F6D91004E00422012B01D0012010BDD2 -:103AE000FFF7C6FC002010BD3C00002070B5044666 -:103AF00040F6CD152846FFF7FDFB00F0F00104F07D -:103B00000F0001432846BDE87040FFF7ABBC000042 -:103B100008B58DF80000000C010A8DF801108DF831 -:103B200002004FF6FF70FFF75BF90322694683201E -:103B3000FFF76CFC01490420087008BD3C00002020 -:103B400000221146D220FFF761BC00221146D1208D -:103B5000FFF75CBC08B512308DF800008DF801103D -:103B6000022269468E20FFF751FC08BD06494978BC -:103B700019B1032901D0042904D1014640F6C5102A -:103B8000FFF770BC704700003C00002010B5FCF748 -:103B90007FFEBDE8104000F0ADBA00002DE9FC4109 -:103BA000294F2A4E00252A4C801E062848D2DFE8DD -:103BB00000F0031E232A424426A000F073FE2A4E82 -:103BC000FF22314635703B6E284898472748417898 -:103BD000022908D18178032905D1C178042902D1AD -:103BE0002168491C216031780844457028E020A0F4 -:103BF00000F058FE306803E023A000F053FE706828 -:103C0000F96D88471CE025A000F04CFE6068401C60 -:103C10006060642800DD656025A1D1E90001CDE97F -:103C2000000120798DF800008DF804000521684618 -:103C300000F028FA04E020A000E025A000F032FE09 -:103C40000020BDE8FC8100008C5200087053000881 -:103C5000500000203C3E3E3E3E3E3E3E3E4F6E52B9 -:103C600078446F6E6500000014000020DC05002021 -:103C70003C3E3E3E3E3E3E3E3E4F6E525854696D87 -:103C8000656F7574000000003C3E3E3E3E3E3E3E89 -:103C90003E4F6E5278457272000000003C3E3E3E40 -:103CA0003E3E3E3E3E4F6E5478446F6E65000000CF -:103CB00000020304000000003C3E3E3E3E3E3E3E0D -:103CC0003E4F6E547854696D656F75740000000046 -:103CD0003C3E3E3E3E3E3E3E3E4F6E436164446F40 -:103CE0006E65000028B10449497880F85110002021 -:103CF00070474FF0FF307047140000202DE9FC5F43 -:103D00008846040033D084F850804A34FFF73EFFE1 -:103D10004FF4FA70FCF75EFF8A4D8B48296888479C -:103D20008AA191A000F0BEFD286B8047014697A0B4 -:103D300000F0B8FD022004F8010B002604F8010B86 -:103D4000202704F8016B4FF0040B04F84D694FF085 -:103D50001009B8F1000F0ED04FF0FF0AB8F1010FB3 -:103D600028D0B8F1020F49D0B8F1030F6BD04FF053 -:103D7000FF30BDE8FC9F8FA000F094FD84F833B0C5 -:103D800094F84A10914A01EB4101535C114484F8C4 -:103D90003D304A7884F83E20897884F83F1084F8D2 -:103DA0001BB084F831B084F82F7084F8309084F818 -:103DB000326070E086A000F075FD012084F83300C9 -:103DC00094F84B1001EB4102804909318B5C11449E -:103DD00084F837304A7884F83820897884F83910A4 -:103DE000E0760C2084F8230084F8246084F825A071 -:103DF00084F82670402084F827004CE07AA000F078 -:103E000051FD84F8336094F84C0000EB40016F489A -:103E10002130425C084484F83420417884F835101D -:103E2000807884F83600E676702020770820607766 -:103E300084F81E90E77784F820A0302084F82100D1 -:103E400084F8226027E06EA000F02CFD032084F8A7 -:103E5000330094F84D1001EB41025C492D318B5C2D -:103E6000114484F83A304A7884F83B20897884F801 -:103E70003C10E076702084F8280084F829B084F89B -:103E80002A9084F82B7084F82CA0302084F82D0020 -:103E9000082084F82E000D2084F8480084F849603A -:103EA0005D480021C4E9100194F85000022819D19E -:103EB0005AA1D1E90001CDE900015AA0009E017983 -:103EC00003685AA00268007926609DF80460267194 -:103ED000C4F805306172C4F80A20A073AA6D69465F -:103EE0000120904794F8500003280AD151A001689E -:103EF00051A0026851A000682160C4F80520C4F8F0 -:103F00000A00A96B00208847E96B94F833008847C2 -:103F1000296C04F133008847696C04F11B00884761 -:103F2000A96C54F8400F88470021EA6C0846904776 -:103F30002A6D617A94F908009047E86E8047002066 -:103F400017E700008C5200081C0000204669726DC3 -:103F5000776172652056657273696F6E3A203137EA -:103F600030393139410000000A0A0D20202020207C -:103F7000535831323831204170706C696361746913 -:103F80006F6E2E2025730A0A0D0000000A0A0D200C -:103F900020202020526164696F206669726D77610C -:103FA00072652076657273696F6E20307825780AA5 -:103FB0000A0D00000A72756E6E696E6720696E20C8 -:103FC000424C45206D6F64650A0D00004C5200089C -:103FD0000A72756E6E696E6720696E204C4F524191 -:103FE000206D6F64650A0D000A72756E6E696E67EA -:103FF00020696E204746534B206D6F64650A0D00A3 -:104000000A72756E6E696E6720696E20464C524367 -:10401000206D6F64650A0D0080D299901234567835 -:104020009A00000023456789AB0000003456789A57 -:10403000BC00000012233445566778899AABBCCD8A -:1040400010B50446FFF74EFA2046FFF74BFE052059 -:10405000FCF7C0FD002010BD70B50848064C0023D9 -:104060004188656D1A460846A8470548E16D4068D5 -:104070008847002070BD00008C520008140000200A -:10408000305200082DE9F04107460A48084C0E4618 -:1040900081880023656D1A460846A8470648636E66 -:1040A00031468268384698470020BDE8F08100001C -:1040B0008C5200081400002030520008044B0122EA -:1040C0001A700A46002301461846FCF74DBB000053 -:1040D0004C00002038B5064C0123237000230093C8 -:1040E00013460A4601460020FCF753FB38BD00008A -:1040F0004C00002010B5064A02210020FCF726FBE8 -:104100000021BDE81040034A0846FCF71FBB000031 -:10411000F9510008ED510008FCF7C8BE10B590B089 -:1041200028216846FCF729F814210AA8FCF725F88D -:1041300001210804CDE900104200029202240491FA -:10414000CDE907404FF4E01009906846FDF726F8E6 -:1041500008B172B6FEE70F20CDE90A0400204FF443 -:104160008061CDE90C010E9002210AA8FCF736FF10 -:10417000002801D072B6FEE710B010BD70470000F5 -:10418000F0B50268194B1A4C1A4D4FF0804798420F -:1041900005D0B84203D0A04201D0A84203D122F0FA -:1041A00070064A683243984205D0B84203D0A04214 -:1041B00001D0A84203D122F44074CA6822434C695A -:1041C00022F08002224302608A68C2620A68826228 -:1041D000984201D109690163012141610169C9075F -:1041E00003D0016921F001010161F0BD002C014003 -:1041F000000400400008004010B5846842EA032231 -:1042000024F47F440A432243826010BD826822F076 -:1042100070020A4342F007018160704730B5036ABB -:10422000026A22F0010202624268846924F0730586 -:104230000C682C4323F002058B682B430A4DA842DF -:104240000BD123F00805CB6822F440722B434D6953 -:1042500023F0040315438A692A4342608461496854 -:104260004163036230BD0000002C014030B5026A9A -:10427000036A23F010030362436884690D6824F421 -:10428000E64444EA05248D6822F0200242EA051241 -:104290000B4DA8420ED1CD6822F0800242EA0512F1 -:1042A0004D6923F4406343EA85038D6922F040029F -:1042B00043EA85034360846149688163026230BDDB -:1042C000002C014030B5036A026A22F48072026257 -:1042D0004268C46923F4007324F073050C682C430E -:1042E0008D6843EA05230C4DA8420ED1CD6823F416 -:1042F000006343EA05234D6922F4405242EA051265 -:104300008D6923F4806342EA05124260C461496802 -:10431000C163036230BD0000002C014030B5046A67 -:10432000026A22F4805202624268C3690D6823F473 -:10433000E64343EA05238D6824F4005444EA053437 -:10434000064DA84204D14D6922F4804242EA85120A -:104350004260C36149680164046230BD002C0140C1 -:1043600010B5036A046A24F001040462846924F02D -:10437000F00444EA021423F00A020A438461026250 -:1043800010BD10B5036A046A24F010040462846945 -:1043900023F0A00324F4704444EA023243EA0111FA -:1043A0008261016210BD10B5406A0021C185C184DF -:1043B000FDF7E4FE10BD70B5446A2068406994F8CA -:1043C0004110C0F3C0100025212904D118B1E584A3 -:1043D000204600F08EF82068406994F84210C0F33F -:1043E0008010222904D118B1E585204600F05AF842 -:1043F000606C40F0100060642046FDF7BFFE70BDA9 -:1044000010B50146406A096809684FF00002890644 -:104410002ED4C28501680C3151E8003F23F480732B -:1044200041E80034002CF5D10168143151E8003F17 -:1044300023F0010341E80034002CF5D10168143168 -:1044400051E8003F23F0400341E80034002CF5D14F -:10445000202180F84210016B012909D101680C313B -:1044600051E8003F23F0100341E80034002CF5D15F -:104470004263016B012902D0FEF796F810BD818DD1 -:10448000FDF742FE10BD10B5406A01214163016B8A -:10449000012902D0FEF79CF810BD818D4908FDF777 -:1044A00033FE10BD01680C3151E8002F22F49072E8 -:1044B00041E80023002BF5D10168143151E8002FA9 -:1044C00022F0010241E80023002BF5D1016B012904 -:1044D00009D101680C3151E8002F22F0100241E8A7 -:1044E0000023002BF5D1202180F842100021016328 -:1044F000704701680C3151E8002F22F0C00241E8FA -:104500000023002BF5D1202180F8411070470000D6 -:1045100000680349884201D100207047022070479B -:104520000044004008B590F84210222901D0022032 -:1045300008BD82684FF480539A4201D1016921B1CC -:10454000816A9A421BD04AB10AE00268816A5268C5 -:10455000C2F308020A80816A891C08E0026972B10C -:104560000268526802F07F020A70816A491C816207 -:10457000C18D491E0904090CC18503D01BE00268E6 -:104580005268F1E70168CA6822F02002CA60016837 -:10459000CA6822F48072CA6001684A6922F0010286 -:1045A0004A61202180F8421000214163026B012AF8 -:1045B00003D0FDF7F9FF002008BD016301680C314D -:1045C00051E8002F22F0100241E80023002BF5D122 -:1045D00001680A68D20602D50A6849680091818D8F -:1045E000FDF792FDE7E7000070B504460068016939 -:1045F000E26821F44051114301612169A068084338 -:10460000616908432168CA6841F20C639A43024316 -:10461000CA6020684169A26921F440711143416177 -:104620001E492068884202D1FCF77EFD01E0FCF7BC -:104630006BFD00EBC00101EB00126068642180009B -:10464000B2FBF0F3B3FBF1F36FF018067343B2FB68 -:10465000F0F5B2FBF0F605EB8305322303EB05150D -:10466000B5FBF1F5B6FBF1F605F0F00505EB061527 -:10467000B2FBF0F6B2FBF0F0B0FBF1F06FF0180215 -:10468000504306EB800003EB0010B0FBF1F0216813 -:1046900000F00F002844886070BD00000038014021 -:1046A00038B5816204468285002013466064222268 -:1046B00084F84220E56B1B4AAA62E56B1A4AEA625B -:1046C000E56B1A4A2A63E26B50630A462168E06B85 -:1046D000091DFCF747FA20680168406800902069CE -:1046E00048B120680C3050E8001F41F4807140E868 -:1046F0000012002AF5D12068143050E8001F41F064 -:10470000010140E80012002AF5D12068143050E879 -:10471000001F41F0400140E80012002AF5D10020BE -:1047200038BD00000144000887440008B743000872 -:104730002DE9F843984617460D460446089E24E0A6 -:10474000701C22D0FCF774FBA0EB0800B0421AD812 -:10475000CEB12068C168490717D5802D15D0402DEE -:1047600013D00168C94309070FD4016800254068C8 -:1047700000902046FFF796FE0820606484F84050C1 -:104780000120BDE8F8830320FBE72068006835EAD4 -:10479000000004D00020B842D2D00020F1E7012070 -:1047A000F9E7000010B50448FDF7FCFCBDE8104037 -:1047B000014800F04DB800006802002070B5040008 -:1047C0002FD01849206888422BD12046FDF79DFC48 -:1047D000154800684068154DC0F1FF00C1B229704E -:1047E00013A000F05FF810494FF400732A78883165 -:1047F0002046FDF701FF15A000F054F80A49883162 -:1048000001F1FF00FBF7C4FC074829788830FBF76B -:10481000B4FC2046BDE870400349FF228831FDF713 -:10482000B5BE70BD00440040B00200200000002072 -:10483000526563656976652044617461286C656EB4 -:10484000677468203D202564293A20000D0A000085 -:1048500038B5040012D00A48216881420ED1086898 -:10486000C043C0060AD408684868009005A000F05C -:1048700019F82046BDE83840FFF7A0BF38BD00005A -:10488000004400400D0A55415254322049646C6581 -:10489000204952512044657465637465640D0A00B3 -:1048A000FEE700000FB4054B10B503A9044A0298B7 -:1048B00000F0EAF810BC5DF814FB00008F5100080E -:1048C000580000200907090E002804DB00F1E02051 -:1048D00080F80014704700F00F0000F1E02080F82D -:1048E000141D704702E008C8121F08C1002AFAD13F -:1048F00070477047002001E001C1121F002AFBD160 -:10490000704700002DE9FF5F82B00021DDE904302F -:10491000020DDDF840B0034318D044F61050A2F267 -:10492000FF3242431514119801281FD0A5EB0B004C -:10493000401C5FEA000A4FF000064E4FDFF8389146 -:10494000B046504615D5CAF1000413E01198012471 -:104950004AA3012801D16FEA0B010298119AC0E91C -:104960000031C0E9024206B0BDE8F09FCBF1000083 -:10497000DFE704460021404A491842EB0450CDE9E4 -:10498000001012E0E00707D032463B464046494659 -:10499000FBF707FC8046894632463B4610461946DF -:1049A000FBF7FFFB06460F466410002CEAD1DDE959 -:1049B0000401DDE90023BAF1000F06DAFBF7F1FB91 -:1049C00042464B46FBF7EDFB05E0FBF75CFC42463D -:1049D0004B46FBF758FC04460E460022284BFBF7DB -:1049E0005BFE03D84FF0FF30014607E00022254B65 -:1049F00020463146FBF791FDFBF736FE102409E017 -:104A0000002C0ADB0A220023FBF7F9FC039B30325F -:104A10001A55641E50EA0102F2D1641C039AC4F1D3 -:104A200011031444119A012A03D0012208430DD125 -:104A30000AE0084304D000204FF0110B119072E7F8 -:104A4000A3EB0B056D1E0DE05B4504DD4FF000028E -:104A500005F1010504E003DA4FF00002A5F10105BC -:104A6000002AECD002981199C0E90231C0E9004552 -:104A700079E70000000014400000F03F3000000023 -:104A80000000F0430000E03F2DE9FF4F95B09A464B -:104A9000884606460025EEE1252877D100242746E2 -:104AA000F94A0121039400E0044316F8013F203B3A -:104AB00001FA03F01042F7D130782A2811D06FF0B4 -:104AC0002F033078A0F13002092A16D8039A44F057 -:104AD000020402EB820203EB42021044761C0390B4 -:104AE000EFE758F8042B0392002A03DA504244F40B -:104AF0000054039044F00204761C30782E2816D11E -:104B000016F8010F44F004042A280DD06FF02F028C -:104B10003078A0F13003092B09D807EB870302EBAB -:104B20004303C718761CF3E758F8047B761C3078EB -:104B30006C280FD006DC4C2817D068280DD06A28C6 -:104B400014D104E0742810D07A280FD10DE044F479 -:104B500000140AE044F4801401E044F44014727834 -:104B6000824202D104F58014761C761C30786628C7 -:104B70000BD013DC582877D009DC002875D04528E5 -:104B8000F6D04628F4D047281AD193E118E06328DC -:104B900035D0642879D0652812D18BE1702873D084 -:104BA00008DC6728F1D069286FD06E280DD06F28F7 -:104BB00006D1ACE073282CD0752874D0782853D057 -:104BC0005246179990476D1C54E1C4F302500228D5 -:104BD00009D003280DD0D8F8001004280DD00D609E -:104BE00008F1040846E1D8F80010EA17C1E90052BC -:104BF000F6E7D8F800100D80F2E70D70F0E718F82E -:104C0000041B8DF8001000208DF80100EB460120F8 -:104C100003E058F804BB4FF0FF3061074FF000018C -:104C200002D40DE009F101018946B9420FDA81454C -:104C3000F8DB1BF809100029F4D108E009F10101A3 -:104C400089468142FADB1BF809100029F6D1039846 -:104C50005346A0EB090721463846179A00F080FA20 -:104C6000284400EB090507E044E008E10DE01BF8EB -:104C7000010B524617999047B9F10109F7D25346F3 -:104C800021463846179AF2E039E00A21C4F302526D -:104C90004FF0000B0091022A06D058F8040BC11700 -:104CA000032A09D00AE023E008F1070020F00702F8 -:104CB000F2E80201904605E000B2C117042A01D1D2 -:104CC00040B2C117002906DA0A460021404261EBD2 -:104CD00002012D2202E0220504D52B228DF80420AA -:104CE000012203E0E20701D02022F7E7914657E0D6 -:104CF0000A2100E010214FF0000B00910BE0102181 -:104D00004FF0000B44F004040827009103E0082052 -:104D10004FF0000B0090C4F30252022A05D058F85D -:104D2000040B0021032A08D008E008F1070020F056 -:104D30000702F2E80201904603E080B2042A00D1A3 -:104D4000C0B24FF0000922072AD53278702A07D066 -:104D5000DDF800C08CF0100C5CEA0B0C05D00EE006 -:104D600040228DF80420012208E050EA010306D019 -:104D700030238DF804308DF8052002229146009BE7 -:104D800083F0080353EA0B030AD150EA010201D170 -:104D9000620705D530228DF804204FF001097F1EEF -:104DA0003278582A04D039A20C920CAA02920BE055 -:104DB0003BA2F9E75B46009AFBF721FB0C9B9B5C4F -:104DC000029A521E0292137050EA0102F2D1029826 -:104DD00004A9081A00F1200B600702D524F48034DE -:104DE00000E001275F4502DDA7EB0B0000E000209B -:104DF00000EB0B01009003984944401A0390E00334 -:104E000006D453462146179A039800F0A9F90544A1 -:104E1000002706E001A85246C05D179990476D1C17 -:104E20007F1C4F45F6DBE0030CD553462146179A0D -:104E3000039800F095F9054404E030205246179994 -:104E400090476D1C0099481E00900029F5DC08E091 -:104E50000298029952460078491C0291179990478E -:104E60006D1CBBF10001ABF1010BF1DC5BE100F06B -:104E700065F90544761C307800287FF40DAE19B032 -:104E80002846BDE8F08F0000092801003031323398 -:104E90003435363738396162636465660000000076 -:104EA0003031323334353637383941424344454660 -:104EB00000000000600700D4062708F1070020F07A -:104EC0000700F0E80223804603F0004C5FEA0C0084 -:104ED00001D097A009E0200501D596A005E0E007E4 -:104EE00001D095A001E0AFF24C001390307823F090 -:104EF000004365280CD006DC452809D046281DD083 -:104F000047287FD13BE0662818D067287AD136E061 -:104F10000021112F01DB112000E0781CCDE90001F8 -:104F200004A90CA8FFF7EEFCDDE90D010C9A4FF087 -:104F3000000B07F10109109200914EE04FF0004084 -:104F40000097CDE9011004A90CA8FFF7DBFCDDE90F -:104F50000D020C9B0F994FF0000B9146109300929D -:104F600011B9791C00EB0109B7EB090003D4C0F1BA -:104F7000FF3B07F10109A9EB0700019042E0012F77 -:104F800000DA01270021112F01DD112000E0384651 -:104F9000CDE9000104A90CA8FFF7B4FCDDE90D017F -:104FA0000C9A00914FF0000BB946109221070FD4D4 -:104FB000009A4A4503DA914601E0A9F10109B9F1E5 -:104FC000010F05DD109AA9F10101515C3029F4D0DF -:104FD000B84202DA10F1040F03DA0121CDE9011021 -:104FE00010E0002803DC8344A9EB000102E0411C2F -:104FF000494500DD8946A0EB0B00401C01904FF0B5 -:1050000000400290200705D40198484502DB4FF08C -:10501000FF30019000208DF84B0002980DF14B07F6 -:10502000B0F1004F25D002200C902B200D9002985B -:1050300000280CDA404202902D200D9007E00A2152 -:105040000298FBF7C6F93031029007F8011D0C9960 -:10505000481E0C900029F2DC02980028EFD1791E3E -:105060000D980870307800F0200040F0450007F8F7 -:10507000020D11A8C01BC01D02901398007800B14A -:10508000012000EB0901019801EBE0710298014455 -:105090000398401A401E0390E00306D4534621466D -:1050A000179A039800F05CF805441398007818B13B -:1050B0005246179990476D1CE00323D5534621466D -:1050C000179A039800F04CF805441BE0BBF1000F61 -:1050D00007DB0098584504DD1098179910F80B006D -:1050E00001E0179930205246904701980BF1010BCF -:1050F000401E05F10105019004D12E20524617995A -:1051000090476D1CB9F10001A9F10109DEDC05E051 -:1051100017F8010B5246179990476D1C0299481ECB -:1051200002900029F4DC53462146179A03989EE624 -:105130002D0000002B000000200000002DE9F041B0 -:10514000044600251E461746880404D405E0394667 -:105150002020B0476D1C641EF9D52846BDE8F081BB -:105160002DE9F041044600251E469046C80301D5AE -:10517000302700E02027880404D505E04146384662 -:10518000B0476D1C641EF9D52846BDE8F08113B503 -:105190000020FBF715FB4FF0FF3301226946FDF7B6 -:1051A0002BFA00981CBD0000FBF788FEFEF7B6FF47 -:1051B000FDF7E8FAFDF7B0FAFDF770FBFDF792FB9B -:1051C000FDF7B4FBFDF714FCFDF72EFC0548006865 -:1051D000C16841F01001C160FDF774FA0248FEF7A2 -:1051E0002FFFFBE768020020202700200149002054 -:1051F000087070474C00002001490020087070477B -:105200004C000020010202030405060708090A0BEE -:105210000C0D0E0F10100000000000000000010235 -:10522000030406070809000000000102030400004F -:105230000200E8030200FFFF020010270200FFFF48 -:105240000200E8030200102702001027CE01208D83 -:1052500001204C0120C03407A03404B00A03801898 -:1052600006801801601801500A04500A01EF01205D -:10527000CE01208D01204C0120EB0010AA00106906 -:10528000001069041000000000000000C134000894 -:1052900075330008BD3100080D340008893200085C -:1052A000713400086534000805330008F532000841 -:1052B000C53300081D320008D5310008F92D00085B -:1052C000753900085D3A00081D390008B13700083B -:1052D0004538000885390008AD360008553B000800 -:1052E00045370008813A0008B9390008293100081B -:1052F0003136000845390008953700085139000853 -:10530000FD2E0008253A00087D370008113B0008F3 -:10531000E9390008C53600084B3B0008413B00084E -:105320001D310008DD36000875310008092F00081E -:1053300051310008AD2E0008E12D0008A32D000812 -:10534000193A00085136000843360008A137000812 -:1053500039390008ED3A00081D3700086B3600089F -:10536000A1360008F53600086D3B0008152E000830 -:105370000200FFFF0200FFFF98530008000000201A -:105380005C000000E4480008F45300085C000020C2 -:105390001C2C0000F4480008000000000100000080 -:1053A000100000000000000000127A00000002401F -:1053B00001400000A12A0008652A00080000000042 -:1053C00000000000B52A00088D2A0008792A00088C -:1053D000000000000000000000000000D1340008C0 -:1053E00000000000000000000000000000000000BD -:0453F00000000000B9 +:10000000E04A00209D010008273A0008F52E00086C +:10001000253A00088D0E0008415900080000000034 +:1000200000000000000000000000000005010008C2 +:10003000F70E00080000000049010008E750000822 +:10004000B7010008B7010008B7010008B7010008B0 +:10005000B7010008B7010008B7010008B7010008A0 +:10006000B7010008B7010008B7010008B701000890 +:10007000910E00089D0E0008B7010008A90E0008A7 +:10008000B50E0008C10E0008B7010008B70100084E +:10009000B7010008B7010008B7010008010F000808 +:1000A000B7010008B7010008B7010008B701000850 +:1000B000B7010008B7010008B7010008B701000840 +:1000C000B7010008B7010008B7010008B701000830 +:1000D000B7010008B701000845580008B70100083B +:1000E000F90E0008B7010008B7010008DFF810D0CA +:1000F00000F086FC0048004755630008AFF300801D +:10010000E04A0020224B19680868B0E8F00F80F33D +:100110000988BFF36F8F4FF0000080F311884EF015 +:100120000D0E70470000000006480068006880F36C +:10013000088862B661B6BFF34F8FBFF36F8F00DFE1 +:1001400000BF00BF08ED00E0EFF30980BFF36F8F41 +:100150000F4B1A6820E9F00F106008B54FF05000FF +:1001600080F31188BFF34F8FBFF36F8F07F08EFAC4 +:100170004FF0000080F31188BDE808401968086856 +:10018000B0E8F00F80F30988BFF36F8F704700BFAE +:1001900018000020EFF305807047000006488047F4 +:1001A00006480047FEE7FEE7FEE7FEE7FEE7FEE75C +:1001B000FEE7FEE7FEE7FEE75F510008ED000008FE +:1001C000202A04DB203A21FA02F00021704721FAAC +:1001D00002F3D040C2F12002914008431946704713 +:1001E00040EA01039B0703D009E008C9121F08C0B9 +:1001F000042AFAD203E011F8013B00F8013B521E39 +:10020000F9D27047D2B201E000F8012B491EFBD2AF +:1002100070470022F6E710B513460A460446194611 +:10022000FFF7F0FF204610BD10B5044604E00B7840 +:1002300000F8013B03B1491C521EF8D2204610BD04 +:10024000421C10F8011B0029FBD1801A704710B521 +:10025000002200E0521C835C8C5CA34201D1002B85 +:10026000F8D1D8B2E1B2401A10BD034611F8012B03 +:1002700000F8012B002AF9D11846704730B5054621 +:100280000020034600E05B1C934205D2EC5CC85C96 +:10029000201A01D1002CF6D130BD2DE9F0410E46D7 +:1002A0000546002400E0641C285D00F02CFA074697 +:1002B000305D00F028FA381A02D1295D0029F2D108 +:1002C000BDE8F0810FB400B58DB010A909900B9076 +:1002D00000914FF0FF300A9000200C9005480690E6 +:1002E000054807906A4609A80F9900F027FA0DB053 +:1002F0005DF814FB59070008770700082DE9FF5F38 +:100300001D464FF0FF3BD5E9014691465F464FF051 +:100310000008A9697F1C01988847296A8246884796 +:100320000028F6D1BAF1FF3F0CD024F4C064002EAF +:1003300019DD600614D5BAF12B0F09D0BAF12D0FD3 +:100340000ED103E0584604B0BDE8F09F44F4806449 +:10035000A9697F1C01988847761E8246002E02DD1F +:10036000BAF1300F03D0B9F1000F26D032E0A969FD +:10037000761E44F400747F1C019888478246002E44 +:1003800005DDBAF1780F06D0BAF1580F03D0B9F1F4 +:10039000000F10D01EE0B9F1000F02D0B9F1100F1C +:1003A00018D1A969761E24F400747F1C019888472F +:1003B0008246102002E0082000E00A20814609E081 +:1003C00008FB0908A969761E44F400747F1C019893 +:1003D00088478246002E05DD4946504600F099F9CF +:1003E0000028EDDAE96901988847A00502D46FF08A +:1003F0000100A8E7E00725D1600613D5600502D506 +:10040000C8F1000000E0404629680A1D2A6009681A +:10041000220501D5087015E0220701D5088011E0FA +:1004200008600FE02868011D29600068210502D5D9 +:1004300080F8008006E0210702D5A0F8008001E0E6 +:10044000C0F8008038467EE72DE9FE4F81EA0304BC +:1004500004F0004421F0004100944FF0000B23F021 +:10046000004350EA01045ED052EA03045BD0C3F3B8 +:100470000A54C1F30A552C44A4F2F3340194A0FBAE +:100480000254C1F3130141F48011C3F3130343F485 +:10049000801301FB024400FB034E840A970A44EADE +:1004A000815447EA8357A4FB076802958D0A05FB30 +:1004B00007854FEA932C04FB0C542705029D4FEA55 +:1004C000065847EA1637B5EB08056EEB070C870EA2 +:1004D000920E47EA811742EA8312A7FB0201B6EBAC +:1004E0000B0164EB00042B0D43EA0C335E1844EB64 +:1004F0001C50DA465146E7FB0201C5F313044FEAEC +:100500000B3343EA14534FEA0432019C43EA0603D7 +:10051000A4F10C040294009CCDE900B400F04BF966 +:1005200003B0BDE8F08F00200146F9E72DE9F04D5A +:1005300081EA030404F0004B21F0004514464FF01B +:10054000000A23F0004150EA050220D054EA0102DB +:100550001DD0C5F30A570246C5F31303C1F31300B8 +:10056000C1F30A5640F4801543F48013A7EB060844 +:10057000101BD64608F2FD3873EB050002D308F1D4 +:10058000010801E092185B41B8F1000F03DA002086 +:100590000146BDE8F08D00204FF4801106468446E8 +:1005A0000EE0171B73EB050705D3121B63EB050366 +:1005B00006434CEA010C49084FEA300092185B41AF +:1005C00050EA0107EDD152EA030012D082EA04009A +:1005D00083EA0501084305D0101BAB4106D2012276 +:1005E000002306E000224FF0004302E06FF001021A +:1005F00053101AEB06004CEB085110EB0A0041EBCC +:100600000B01BDE8F04D00F0C7B80EB5C10F80EA90 +:10061000E0700844CA07002140F233438DE80E0021 +:100620000A460B4600F0C7F803B000BD0EB540F215 +:10063000334102910021CDE900110A460B4600F03A +:10064000BAF803B000BDC1F30A5210B5C1F31301EB +:1006500040F2FF3341F480119A4201DA002010BDCC +:1006600040F233439A42A2F2334203DC5242FFF794 +:10067000A7FD10BD904010BD30B50B4601460020CF +:100680002022012409E021FA02F59D4205D303FA54 +:1006900002F5491B04FA02F52844151EA2F10102D5 +:1006A000F1DC30BD2DE9F05F0546002092469B4607 +:1006B00088460646814640241BE028464146474678 +:1006C0002246FFF77DFD53465A46C01A914110D38A +:1006D00011461846224600F0A5F92D1A67EB0108CD +:1006E0004F4622460120002100F09CF917EB00093B +:1006F0004E41201EA4F10104DFDC484631462A4663 +:100700004346BDE8F09FA0F14101192900D82030EF +:1007100070473A2800D2303820F02002412A01D315 +:10072000A2F13700884201D34FF0FF30704700003C +:10073000026811441378016018467047D16004497B +:1007400051610449116200211161114600F090B914 +:1007500031070008670A0008426842B1016811F8D1 +:10076000013B23B1521EC0E9001218467047012117 +:10077000C160881E704742685AB1C368016843B9B6 +:1007800083688B4205D0491E521CC0E9001200202C +:1007900070474FF0FF30704710B5141E73F100041E +:1007A00008DA401C41F1000192185B411A4301D163 +:1007B00020F0010010BD2DE9F04D92469B4611B18D +:1007C000B1FA81F202E0B0FA80F22032904600F0F5 +:1007D00029F904460F4640EA0A0041EA0B01534654 +:1007E0005A46084313D0114653EA010019D0C8F104 +:1007F00040025046FFF7E4FC05460E465046594677 +:10080000424600F00FF9084305D0012004E02046DD +:100810003946BDE8F08D0020054346EAE0762C43DA +:1008200037430A986305E40AA0EB08000022FD0A9A +:1008300044EA47540A3002D500200146E9E70105A1 +:1008400010196941DDE9084500196941BDE8F04D1D +:10085000A2E72DE9FE4F804681EA0300C00F0C4657 +:10086000009021F0004123F00045B8EB0200A941BF +:1008700005D24046214690461C460B46024623F0D0 +:100880000040104347D0270DC7F30A00C3F30A51B5 +:100890000290401A019040286BDAC3F3130040F431 +:1008A000801B0098924620B10023D2EB030A63EB31 +:1008B0000B0B01985946C0F14002504600F0B2F8C7 +:1008C00006460D4650465946019A00F0BAF810EB1C +:1008D00008006141002487EA115284EAE7731A4351 +:1008E00040D0009A62B3019A012A4FEA075215DC00 +:1008F000001B61EB02014FF0004202EA0752CDE912 +:100900000042001C41F5801132462B46FFF753FF91 +:1009100003B0BDE8F08F40462146F9E7001B61EBCC +:100920000201001C41F5801300185B412018A2F55C +:10093000001747EB030140EAD570B6196D4111E08D +:100940006D084FEA360645EAC0754FEA0752001BAC +:1009500061EB0201001C41F5801149084FEA3000AB +:100960000019514132462B4603B0BDE8F04FFFF766 +:1009700013BF0098012240000023D0EB020263EB7A +:10098000E073009821464FEAE074B8EB000061EB99 +:100990000401E9E783F000435BE781F0004158E799 +:1009A000C1F30A52C1F3130140F2FF3341F4801145 +:1009B0009A4202DA00200146704740F233439A42DD +:1009C000A2F2334202DC5242FFF7FABB00F02AB82F +:1009D00030B5041E71F1000404DB4FF000444042C6 +:1009E00064EB0101141E73F1000405DB1C464FF09B +:1009F0000043524263EB0403994208BF904230BD6A +:100A0000064C074D06E0E06840F0010394E807005B +:100A100098471034AC42F6D3FFF76CFB30B60008B1 +:100A200050B60008202A04DB203A00FA02F1002028 +:100A300070479140C2F1200320FA03F3194390401C +:100A40007047202A06DBCB17203A41FA02F043EA2E +:100A5000E07306E041FA02F3D040C2F12002914077 +:100A6000084319467047C0B24FF4F05100F098B9EE +:100A70002DE9F34F8BB04FF0000801F10C000C464C +:100A80004FF0010B46460DF1080A01906269012101 +:100A900001989047051E2DD0252D2CD0216A88471E +:100AA000C0B16269012101989047216A88470028F6 +:100AB000F7D1411E62690198904700E0761CA16958 +:100AC0000B988847216A88470028F7D1E1690B987D +:100AD0008847DBE7A1690B9888470746A84201D100 +:100AE000761CD3E7E1690B9888477F1C02D1B8F1E7 +:100AF000000F6FD047E1002762693D4639460198F3 +:100B000090472A2804D16269012101989047012564 +:100B1000DFF888926269012101989047A0F13001C5 +:100B20000A290AD24F45E5DC07EB870100EB4107B4 +:100B3000303FDFD445F01005ECE7E90601D46FF053 +:100B400000476C280AD04C2814D0682815D06A2891 +:100B50000DD074281CD07A281AD01DE062690121BA +:100B6000019890476C2802D045F0040514E045F048 +:100B700002050DE045F020050AE0626901210198B7 +:100B80009047682802D045F0080505E045F4006567 +:100B90006269012101989047C4E9015765283DD059 +:100BA00019DC58287AD00CDC452837D004DC2528FD +:100BB00026D0412831D131E046282FD047282CD1EA +:100BC0002CE05B2877D0612828D063287CD064286B +:100BD00023D15AE0D1E06F2848D008DC66281DD028 +:100BE00067281BD0692821D06E2816D127E07028ED +:100BF00045D0732868D0752847D078280DD14DE0AE +:100C0000A1690B988847054625283FF469AFE1693B +:100C10000B9888476D1C3FF46AAFB4E023466A46E0 +:100C20006FF001000B99AFF300809FE045F04000AA +:100C30006060A80723464FF0000236D43EE0E80784 +:100C40007FF447AF2068011D21600068290501D5A8 +:100C500006701BE7290701D5068017E7A90703D50A +:100C6000F117C0E9006111E706600FE745F04000A9 +:100C70006060A80723464FF0080216D41EE040F635 +:100C80000E0125EA0100606016E045F0400060605A +:100C9000A80723464FF00A0207D40FE045F04000B2 +:100CA0006060A80708D5234610226FF001000B9959 +:100CB000AFF300805AE007E0234610226FF00100F6 +:100CC0000B99FFF71BFB51E04FF000094F464B46D5 +:100CD000632802D05B2807D041E02079C00601D408 +:100CE0000120A06001273AE0626901210198904744 +:100CF0005E2805D14FF00109626949460198904785 +:100D0000216939B900210A46534643F82120491C7C +:100D10000829FADBB0B3216969B9C11700EBD162C8 +:100D200053110AEB830122F01F02821A01200B6883 +:100D3000904003430B6062690121019890475D2850 +:100D4000E8D1B9F1000F09D00020514651F8202018 +:100D5000D24341F82020401C0828F7DB02AB224692 +:100D600000976FF001000B99AFF3008000280CDAB8 +:100D7000401C08D1BBF1000F05D04FF0FF300DB083 +:100D8000BDE8F08FFFE74046F9E7E90701D108F138 +:100D9000010806444FF0000B78E60000CCCCCC0CE8 +:100DA0007F2801D9002208E0064A02EB5002C00762 +:100DB000127800D1120902F00F0201209040084081 +:100DC0007047000078B4000818B1012803D0002053 +:100DD0007047024870470248704700000001002039 +:100DE0005801002010B5022806D2FFF7EDFF18B118 +:100DF000BDE8104000F096BFFF2010BD32B1054B9A +:100E000003EB401040F82120002070476FF00100F4 +:100E100070470000F01E002010B54FF0FF3402288C +:100E200006D2FFF7D1FF18B123B101F0DFFA04E0D9 +:100E3000204610BD142301F0A5F80028F9D00120A8 +:100E400010BD38B54FF0FF34049D022806D2FFF7DD +:100E5000BBFF18B125B101F041FA05E0204638BDCD +:100E60001424009401F041F90028F8D0012038BD85 +:100E700018B1012803D0002070470248704702488B +:100E8000704700000C030020C4020020FEE70000B1 +:100E9000014800F0A1B90000F4010020014800F071 +:100EA0009BB90000B0010020014800F095B9000096 +:100EB00038020020014800F08FB9000054030020E0 +:100EC000014800F089B900009803002030B590F87F +:100ED00040500124AC40C56B6C600468636043689B +:100EE000102B036803D099600068C26030BD9A601F +:100EF0000068C16030BD70474FF4805000F0A4BA64 +:100F000010B5202000F0A0FA402000F09DFABDE8C6 +:100F10001040802000F098BA72B6FEE730B5002489 +:100F20002346146019E0401C0578C5B1202DFAD184 +:100F300010F8015F9DB1202DFAD0641C8C420CD1B9 +:100F400003461168491C116010F8011F09B12029DE +:100F5000F7D1106818B9002301E08C42E4D3184699 +:100F600030BD00002DE9F0472F4C054691466068E2 +:100F70008A4601264FF00008A0BB04F10C0010E0E7 +:100F8000006807683846FFF75BF90246A85C20282E +:100F900000D020B939462846FFF770F928B16068BB +:100FA000406860600028EBD134E0D4F804C0DCF87D +:100FB000000090F90C70002F10DB0020294602463B +:100FC00003E0202B18D00022491C0B78002BF8D10D +:100FD0000AB1401E40B2B84200D00026BCF1000F5A +:100FE00018D07EB160682A4649460068836850463A +:100FF000984706000BD013E0002AE5D1401C40B210 +:101000000122E1E74A4609495046FFF70DF9C4F8C5 +:10101000048005E04A4606495046FFF705F90026D8 +:101020003046BDE8F0870000D8000020FCB400087E +:1010300054B5000870B5050011D0082005F0C8FFB0 +:10104000040014D006F008F90020C4E900500C4850 +:1010500001684C60046006F01FF9012070BD50204B +:1010600080F31188BFF34F8FBFF36F8FFEE75020DF +:1010700080F31188BFF34F8FBFF36F8FFEE700003F +:10108000D8000020014600200A0A00D008204FF2B4 +:10109000F002114201D040F004004CF6CC42114263 +:1010A00001D040F002004AF6AA22114201D040F0DD +:1010B00001007047704700F0C3BA000070B51546D4 +:1010C0000C460846FFF7DEFF002B0FD0084941F819 +:1010D0002030204602F0CAFA04460022294600F0D9 +:1010E00063FB2046BDE8704000F050BB70BD0000BF +:1010F000781F0020D2B200F0A8BA10B590F82110E5 +:101100000022022905D00421816380F820200120DB +:1011100010BD01680B6823F00E030B6001680B68BB +:1011200023F001030B6090F84030C46B012101FAF9 +:1011300003F3636080F8211080F82020104610BD72 +:1011400010B590F821100024022903D004218163F6 +:1011500001243DE001680A6822F00E020A6001687D +:101160000A6822F001020A601A4A0168914201D11C +:10117000012121E0174A1432914201D110211BE0D4 +:10118000144A2832914201D1891515E0114A3C32A6 +:10119000914201D189140FE00E4A5032914202D19E +:1011A0004FF4803108E00B4A6432914202D14FF48F +:1011B000801101E04FF08071064A083A5160012128 +:1011C00080F82110002180F82010416B01B1884780 +:1011D000204610BD080002402DE9F05FC16B0C688D +:1011E00001680B68D0F840C0042202FA0CF2494DA5 +:1011F000DFF824A1494E4A4FDFF828B1DFF828E193 +:1012000022422CD05A072AD50A68920603D40A68CB +:1012100022F004020A600168A94201D1042219E007 +:10122000514501D1402215E0B14202D14FF4806214 +:1012300010E0B94202D14FF480420BE0594502D18F +:101240004FF4802206E0714502D14FF4800201E0A4 +:101250004FF080622F4908394A60C16A3BE04FF085 +:10126000020808FA0CF818EA040F4FF000094FF0D2 +:10127000010235D05FEA837832D50B689B0605D42E +:101280000B6823F00A030B6080F821200168A94253 +:1012900001D1022219E0514501D1202215E0B142CD +:1012A00002D14FF4007210E0B94202D14FF4005263 +:1012B0000BE0594502D14FF4003206E0714502D1EE +:1012C0004FF4001201E04FF00072124908394A60F1 +:1012D00080F82090816A00291AD0BDE8F05F0847A5 +:1012E000082505FA0CF5254212D01B0710D50B680E +:1012F00023F00E030B6090F84010C36B02FA01F16B +:101300005960826380F8212080F82090016BE2E729 +:10131000BDE8F09F080002401C000240300002407F +:1013200044000240580002406C00024030B528B32F +:1013300008C8134914221944B1FBF2F18900C163B2 +:1013400010498163022141771A6843F6F0718A439C +:10135000D0E900142143D0E902452C43214304691C +:1013600021434469214384692143114319600021C9 +:101370004163012242770177084630BD012030BD2C +:10138000F8FFFDBF0000024070B5044690F8200051 +:10139000002501280CD0012084F8200094F8216059 +:1013A0000020012E06D084F820000225284670BDBA +:1013B000022070BD022684F82160A06320680668C0 +:1013C00026F0010606602046FFF780FDE06A00284F +:1013D0002068016802D041F00E0106E021F004010E +:1013E00001602068016841F00A010160206801681D +:1013F00041F001010160D9E770B5044600F02AF917 +:101400000546601C02D004480078044400F022F92C +:10141000401BA042FAD370BD080000202DE9F04126 +:101420000024084F0646012505FA04F0304203D097 +:1014300057F8240000B18047641CE4B2102CF3D3A9 +:10144000BDE8F081B01E0020044910B50A680242D0 +:1014500002D00860FFF7E2FF10BD00001404014055 +:101460002DE9F84FDFF8B8910024A9F1040B2346C9 +:101470000F2709F1040AABF1040EC9E00125A540CC +:101480002A40AA427DD1674ED1F804C0ACEB0608D1 +:10149000B44532D014DCBCF1030F3AD009DCBCF106 +:1014A000000F2AD0BCF1010F1CD0BCF1020F31D1CA +:1014B0001DE0BCF1110F17D0BCF1120F2AD119E0B9 +:1014C000B8F5881F19D006DCB8F5803F15D0B8F5FF +:1014D000801F1FD111E0B8F5001F0ED0B8F5041F12 +:1014E00018D10AE0CB6815E0CB681B1D12E0CB6871 +:1014F00008330FE0CB680C330CE08B682BB1012B69 +:101500004FF0080303D0456104E0042302E00561C5 +:1015100000E00023FF2A01D8064601E000F104069E +:101520004FEA840501D9A5F12005D6F8008007FA15 +:1015300005FC28EA0C0803FA05F548EA0508C6F890 +:1015400000804D68ED0062D5374DAE6946F001066A +:10155000AE61AD6924F0030605F001050095334D39 +:1015600006EB050CDCF80850A607360F07FA06F85C +:1015700025EA0805DFF8B880404503D14FF00008A0 +:1015800017E044E0DFF8AC80404502D14FF001089D +:101590000FE0DFF8A480404502D14FF0020808E0D8 +:1015A000DFF89880404502D14FF0030801E04FF08A +:1015B000040808FA06F848EA0508CCF808804D68DF +:1015C000D9F80060ED024D4601D5164300E0964380 +:1015D0002E604D68DAF80060AD02554601D516431D +:1015E00000E096432E604D68DBF80060AD035D4679 +:1015F00001D5164300E096432E604D68DEF800608A +:10160000ED03754601D5164300E096432E60641C39 +:101610000D682A46E5407FF431AFBDE8F88F000041 +:1016200008040140000011100010024000000140B9 +:1016300000080140000C014000100140001401406E +:101640008068084000D0012070470AB101617047EE +:101650000904FBE70148806870470000080000208B +:1016600070B5040004D094F84100002510B106E0E4 +:10167000012070BD84F84050204601F015FB242065 +:1016800084F841002068C16821F40051C1602046FF +:1016900003F0FAFF2068016921F49041016120689C +:1016A000416921F0220141612068416941F008014E +:1016B00041612068C16841F40051C1606564202027 +:1016C00084F8410084F842006563002070BD00008A +:1016D0000248816802781144816070470800002048 +:1016E000074810B5016841F010010160032000F0C7 +:1016F0007BF80F2000F006F800F024F8002010BD61 +:101700000020024070B50D4D04464FF47A712878E0 +:10171000B1FBF0F00A490968B1FBF0F000F032FFCC +:1017200048B9102C07D200222146501E00F03CF888 +:1017300000206C6070BD012070BD0000080000201A +:10174000140000200F4808B5816941F00101816152 +:10175000816901F001010091C16941F08051C161CD +:10176000C069002200F0805000900F21901E00F010 +:101770001BF80548416821F0E06141F000714160CB +:1017800008BD00000010024000000140002809DBF5 +:1017900000F01F02012191404009800000F1E0208B +:1017A000C0F8001170470000F0B40E4B1B680C46E7 +:1017B000C3F30223C3F10705042D00D90425191D25 +:1017C000072901D2002300E0DB1E012606FA05F1FD +:1017D000491E214099409E40761E16403143F0BC80 +:1017E00004F0DAB80CED00E0064900F007020868E2 +:1017F0004FF6FF03184040EA0220034A10430860F6 +:10180000704700000CED00E00000FA052DE9F047FC +:101810000F46050061D0434E306800F00700B84223 +:1018200009D2306820F0070038433060306800F09B +:101830000700B84251D128683B4C810712D54007B8 +:1018400003D5606840F4E06060602878000703D545 +:10185000606840F4605060606068A96820F0F00043 +:10186000084360602878C00728D06868012810D035 +:101870002168022810D0890700292EDA616821F03A +:10188000030101436160FFF7E5FE804641F28839BC +:101890000DE021688903EFE78901EDE7FFF7DAFE44 +:1018A000A0EB0801494502D90320BDE8F087606834 +:1018B000696800F00C00B0EB810FEFD1306800F0E8 +:1018C0000700B8420BD9306820F007003843306079 +:1018D000306800F00700B84201D00120E5E7287821 +:1018E000400705D56068E96820F4E060084360605F +:1018F0002878000706D56068296920F4605040EA1E +:10190000C100606000F038F86168084AC1F3031153 +:10191000515CC8400649086006480068FFF7F2FEBF +:101920000020C2E700200240001002402E81000883 +:10193000140000200C000020044805490068496894 +:10194000044AC1F30221515CC840704714000020D2 +:10195000001002403E8100080448054900684968BB +:10196000044AC1F3C221515CC840704714000020F2 +:10197000001002403E8100080F4A516801F00C003F +:10198000042803D0082803D00C4870470C4870473F +:101990000C48C1F38343C903C05C0AD55168094AA6 +:1019A000C1F34041921E515C054A5043B0FBF1F037 +:1019B00070470549484370470010024000127A0002 +:1019C0000024F4001E81000800093D002DE9F84FB5 +:1019D000040070D02078C04DC00749D06868C0F3BB +:1019E0008100012807D06868C0F38100022809D16E +:1019F0006868C00306D52868800339D56068002868 +:101A0000E7D035E06068B0F5803F0BD010B1B0F59D +:101A1000A02F11D0286820F480302860286820F496 +:101A2000802002E0286840F480302860606890B12F +:101A3000FFF710FE06460AE0286840F48020286080 +:101A4000F0E700BFFFF706FE801B642873D8286804 +:101A50008003F7D50CE0FFF7FDFD064605E000BF6B +:101A6000FFF7F8FD801B6428F0D828688003F7D4BE +:101A700020789A4E80074FF001094FF0000839D5C1 +:101A8000686810F00C0F07D06868C0F38100022866 +:101A900009D16868C00306D42868800714D5206976 +:101AA000012808D110E02069B0B1C6F80090FFF716 +:101AB000D1FD074605E00AE1FFF7CCFDC01B022877 +:101AC000C4D828688007F7D52868616920F0F80035 +:101AD00040EAC10028600DE0C6F80080FFF7BAFDBB +:101AE000074604E0FFF7B6FDC01B022823D828688C +:101AF0008007F7D4207800072CD57948A169D9B19F +:101B0000C0F80090FFF7A6FD074604E0FFF7A2FD2E +:101B1000C01B02280FD8686A8007F7D571484FF4B8 +:101B2000FA510068B0FBF1F0009000BF0098411E30 +:101B30000091FAD20EE080E0C0F80080FFF78AFD45 +:101B4000074604E0FFF786FDC01B022875D8686AC7 +:101B50008007F7D42078400760D5E8690027C000E7 +:101B600008D4E86940F08050E861E869012700F096 +:101B7000805000905C480168C90513D40168834611 +:101B800041F480710160FFF765FD824606E000BF09 +:101B9000FFF760FDA0EB0A0064284ED8DBF80000D8 +:101BA000C005F5D5E06801280AD008B1052813D092 +:101BB000286A20F001002862286A20F0040002E070 +:101BC000286A40F001002862E06841F2883B98B141 +:101BD000FFF740FD82460BE0286A40F004002862CF +:101BE000EEE700BFFFF736FDA0EB0A0159455AD8D2 +:101BF000286A8007F6D50CE0FFF72CFD824605E049 +:101C0000FFF728FDA0EB0A0159454CD8286A800748 +:101C1000F6D41FB1E86920F08050E861E06988B32C +:101C20006968C1F38101022944D00228C6F86080A6 +:101C300004D0FFF70FFD044638E034E0FFF70AFD5B +:101C4000074604E0FFF706FDC01B02282BD82868D2 +:101C50008001F7D4206AB0F5803F05D16868A1689B +:101C600020F4003008436860D4E90801084369683B +:101C700021F4741108436860C6F86090FFF7EAFC2D +:101C8000044606E025E000BFFFF7E4FC001B022845 +:101C900009D828688001F7D51BE000BFFFF7DAFC00 +:101CA000001B022802D90320BDE8F88F28688001B4 +:101CB000F4D40EE00128F7D06868226A00F480317D +:101CC000914204D1616A00F47010884201D0012071 +:101CD000EAE70020E8E7000000100240000042426E +:101CE00080044242140000200070004070B5044699 +:101CF00001F0C8FF032811D0204601F0C3FF084DB2 +:101D000005EB40108069002808D0204601F0BAFF9A +:101D100005EB40108069BDE87040004770BD0000D1 +:101D2000F01E002090F85100704770B5040009D0F3 +:101D3000606A002540B125616561A56294F8510093 +:101D400040B10CE0012070BD6068B0F5827FF4D036 +:101D5000E561F2E784F85050204600F03FF8022099 +:101D600084F851002068016821F040010160A088DA +:101D7000218900F4827001F404410843A18901F42F +:101D800000610843217C01F002010843217D01F03C +:101D900001010843218B01F400710843217F01F008 +:101DA0003801084394F8201001F080010843218D88 +:101DB00001F40051084321680860A069042101EA88 +:101DC0001040216848602068C16921F40061C16148 +:101DD0006565012084F85100002070BD2DE9F041B7 +:101DE00086B0002400940194029403940646424D68 +:101DF000036842480221032210274FF08008AB42BB +:101E000047D1836943F480538361836903F480532A +:101E10000493836943F0040383618069384D00F0C3 +:101E200004000490A020CDE90001039269462846F1 +:101E3000FFF716FB4020CDE90004694628460294CE +:101E4000FFF70EFB304D2F48C5E90007C5E90248F2 +:101E50002C616C61AC6147462846EC61FFF766FA7D +:101E600008B1FFF759F8B5646E62274D254844352F +:101E70001438C5E90004C5E902472C616C61AC6106 +:101E80002846EC61FFF752FA08B1FFF745F8F56410 +:101E90002EE01E4DAB422CD1C36943F48043C36195 +:101EA000C36903F480430493836943F008038361A7 +:101EB0008069039200F0080004904FF42040CDE9BF +:101EC000000169461248FFF7CBFA0F4D0D488835DF +:101ED00028302860C5E90174C5E903846C61AC61F0 +:101EE0002846EC61FFF722FA08B1FFF715F8B56450 +:101EF0006E6206B0BDE8F081003001400010024083 +:101F00000008014030000240B001002000380040CD +:101F1000000C014070B5044601F0B4FE032811D056 +:101F2000204601F0AFFE084D05EB40104068002848 +:101F300008D0204601F0A6FE05EB40104068BDE841 +:101F40007040004770BD0000F01E002070B50446D0 +:101F500001F098FE032811D0204601F093FE084DB1 +:101F600005EB40100069002808D0204601F08AFEE9 +:101F700005EB40100069BDE87040004770BD0000EF +:101F8000F01E00202DE9F84F984616468A46044672 +:101F9000FFF760FB814694F8510001281ED1BAF189 +:101FA000000F73D0002E71D094F85000012815D086 +:101FB000012784F85070032084F8510000256565DE +:101FC000C4F830A0A686E686A563A587E587656484 +:101FD0002564A068B0F5004F03D00CE00220BDE8F6 +:101FE000F88F2068016821F04001016020680168D5 +:101FF00041F48041016020680168490603D401680A +:1020000041F040010160E068B0F5006F606803D006 +:1020100048B3012E27D047E008B1012E1FD1206B15 +:1020200021680088C86006E020688168890709D5B2 +:10203000216B0988C160206B801C2063E08E401EEC +:10204000E0860CE0FFF706FBA0EB0901414503D356 +:10205000B8F1FF3F03D035E0B8F1000F32D0E08E89 +:102060000028E1D123E0206B21680078087306E0A6 +:102070002068816889070AD5216B09780173206B74 +:10208000401C2063E08E401EE0860DE02BE0FFF751 +:10209000E1FAA0EB0901414503D3B8F1FF3F03D0BA +:1020A00010E0B8F1000F0DD0E08E0028E0D14A46D4 +:1020B0004146204601F0CCFD08B120206065A068B3 +:1020C00030B109E084F8517084F85050032086E75D +:1020D0002068C1688068009084F8517004F8505FEF +:1020E00060680028F3D0012079E72DE9FF4F81B027 +:1020F0001D46934604464FF001090E9EFFF7AAFACB +:10210000074694F851006168012806D0B1F5827F36 +:102110003CD1A168C9BB042838D10298002871D0ED +:10212000BBF1000FFBD0002DF9D094F8500001282E +:102130002CD04FF0010A84F850A094F851000428E4 +:1021400002D0052084F851004FF00008C4F85480F4 +:10215000C4F838B0E587A58702992163E586A5868E +:10216000C4F84080C4F8448020680168490603D45C +:10217000016841F040010160E068B0F5006F6068FF +:1021800008D0F0B3012D49D081E0FFE7022005B06F +:10219000BDE8F08F08B1012D39D1206B216800888E +:1021A000C860206B801C2063E08E401EE0862EE01D +:1021B0002068816889070FD5E18E69B1B9F1010FF7 +:1021C0000AD1216B0988C160206B801C2063E08EDE +:1021D000401EE0864FF0000920688168C9070CD0D6 +:1021E000E18F51B1C068A16B0880A06B801CA06317 +:1021F000E08F401EE0874FF00109FFF72BFAC01B6C +:1022000001E00BE067E0B04201D3701C50D1E08EDA +:102210000028CDD1E08F0028CAD13EE0206B216894 +:1022200000780873206B401C2063E08E401EE0861F +:102230002DE02068816889070FD5E18E69B1B9F179 +:10224000010F0AD1216B09780173206B401C2063B8 +:10225000E08E401EE0864FF0000920688168C907C3 +:102260000CD0E18F51B1C068A16B0870A06B401C0D +:10227000A063E08F401EE0874FF00109FFF7EAF905 +:10228000C01BB04202D3701C01D011E086B1E08EB9 +:102290000028CED1E08F0028CBD13A4631462046E7 +:1022A00001F0D6FC50B12020606584F8508012E027 +:1022B00084F851A084F85080032068E7A06818B91A +:1022C0002068C1688068009084F851A084F850802C +:1022D000606D0028F1D0012059E7000070B5044678 +:1022E00090F851006568012806D0B5F5827F3AD193 +:1022F000A568A5BB042836D191B38AB383B394F8FB +:10230000500001282FD0012084F8500094F851008B +:10231000042802D0052084F851000025656521635A +:10232000A386E386A263A387E3872564656494F8A4 +:102330005100042819D0E16C2748C8622748E16C95 +:102340008862E16C26480863E06C4563E38F21688E +:10235000A26B0C31E06CFFF717F800BB0AE002E05B +:10236000FFE7012070BD022070BDE16C1D48C8620E +:102370001D48E4E72068416841F001014160A06C1C +:10238000C562A06C8562A06C0563A06C4563E38E9A +:102390002268216B0C32A06CFEF7F6FF30B1606D45 +:1023A00040F01000606584F85050DAE7206801685A +:1023B000490603D4016841F04001016084F850509F +:1023C0002068416841F0200141602068416841F087 +:1023D00002014160002070BDC33A00089B3B000829 +:1023E0008D3A0008AF3A0008CD3A000870B50446AF +:1023F00090F8510001281CD1C9B1C2B194F8500025 +:10240000012816D0012084F85000032084F85100E0 +:10241000002565652163A286E286A563656425645F +:10242000A587E587A068B0F5004F04D00DE0012036 +:1024300070BD022070BD2068016821F0400101607C +:102440002068016841F480410160A16C1748C862AE +:10245000A16C17488862A16C16480863A06C45639C +:10246000E38E2268216B0C32A06CFEF78DFF30B139 +:10247000606D40F01000606584F85050D7E7206828 +:102480000168490603D4016841F04001016084F805 +:1024900050502068416841F0200141602068416847 +:1024A00041F002014160002070BD0000B93A00080F +:1024B000373B00088D3A000810B501F0E3FB032814 +:1024C00008D0054901EB40100068002802D0BDE8A3 +:1024D0001040004710BD0000F01E002070B50446FB +:1024E00001F0D0FB032811D0204601F0CBFB084DB2 +:1024F00005EB4010C068002808D0204601F0C2FB60 +:1025000005EB4010C068BDE87040004770BD00009A +:10251000F01E002070B5044601F0B4FB032811D072 +:10252000204601F0AFFB084D05EB40108068002805 +:1025300008D0204601F0A6FB05EB40108068BDE8FE +:102540007040004770BD0000F01E002070B50446CA +:1025500001F098FB032811D0204601F093FB084DB1 +:1025600005EB40104069002808D0204601F08AFBA6 +:1025700005EB40104069BDE87040004770BD0000A9 +:10258000F01E002010B5401EB0F1807F01D3012065 +:1025900010BD4FF0E02460610F21601703F0FCF9DB +:1025A0000020A06107202061002010BD10B590F828 +:1025B0003C20012A22D0012280F83C20CA688C6885 +:1025C00022F4407222434C6822F4806222430C6859 +:1025D00022F4006222430C6922F4805222434C69A7 +:1025E00022F400522243C969002322F480420A43A4 +:1025F00001684A6480F83C30002010BD022010BD04 +:1026000070B590F83C20012A26D0012480F83C4087 +:10261000022280F83D2003685A689D6822F0700607 +:102620000A6832435A600D4B02689A4208D0B2F1F0 +:10263000804F05D00A4B9A4202D00A4B9A4204D1ED +:10264000496825F080031943916080F83D400021DE +:1026500080F83C10084670BD022070BD002C01407F +:10266000000400400008004010B5040003D094F8B6 +:102670003D0010B107E0012010BD002084F83C00AF +:10268000204600F01FF8022084F83D00211D20683C +:1026900002F066FD012084F8460084F83E0084F8CC +:1026A0003F0084F8400084F8410084F8420084F838 +:1026B000430084F8440084F8450084F83D0000207D +:1026C00010BD000008B500680649884208D10648D8 +:1026D000816941F400618161806900F400600090CB +:1026E00008BD0000002C01400010024070B50446F7 +:1026F00090F83C000025012817D0012684F83C60A2 +:10270000022084F83D002068826822F0770222F4DB +:102710007F4282600868502838D00DDC20284FD0D6 +:1027200005DC90B3102811D14AE0022070BD30289A +:1027300046D040280AD13BE060282FD070280DD029 +:10274000B0F5805F03D0B0F5005F12D0012584F8AA +:102750003D60002084F83C00284670BDCB68D1E97C +:102760000121206802F038FD2068816841F077017E +:1027700009E0CB68D1E90121206802F02DFD206835 +:10278000816841F480418160E1E719E0CA684968E5 +:10279000206802F0D5FD5021206806E0CA6849682B +:1027A000206802F0DEFD6021206802F01FFDCEE708 +:1027B000CA684968206802F0C3FD40212068F4E738 +:1027C000226801461046F0E700B585B0002100916F +:1027D00001910291039100680B49884212D10B4884 +:1027E000816941F0040181618069694600F004005B +:1027F00004904FF400600090022001900390044880 +:10280000FEF72EFE05B000BD002C01400010024076 +:102810000008014070B5044690F83C0000260D46C3 +:1028200001280FD0012084F83C006AB1042A1DD091 +:10283000082A2FD00C2A3FD00126002084F83C0023 +:10284000304670BD022070BD206802F0D7FC2068C1 +:10285000816941F0080181612068816921F00401EA +:102860008161206881692A69114311E0206802F0C2 +:10287000EDFC2068816941F4006181612068816913 +:1028800021F480618161206881692A6941EA02211D +:102890008161D2E7206802F005FD2068C16941F03E +:1028A0000801C1612068C16921F00401C16120688B +:1028B000C1692A69114311E0206802F01FFD2068F8 +:1028C000C16941F40061C1612068C16921F480617E +:1028D000C1612068C1692A6941EA0221C161ACE78E +:1028E00010B5040003D094F83D0010B107E00120BA +:1028F00010BD002084F83C00204600F01EF80220A5 +:1029000084F83D00211D206802F02AFC012084F893 +:10291000460084F83E0084F83F0084F8400084F8C4 +:10292000410084F8420084F8430084F8440084F8AD +:10293000450084F83D00002010BD7047704710B579 +:1029400004460068406994F84110C0F3C010212982 +:1029500011D180B12068143050E8001F21F08001AF +:1029600040E80012002AF5D1A06B08B1FEF7C5FBC4 +:10297000204602F007FE2068406994F84210C0F338 +:102980008010222911D180B12068143050E8001F36 +:1029900021F0400140E80012002AF5D1E06B08B1B7 +:1029A000FEF7ABFB204602F0C6FD002010BD000084 +:1029B00010B502F0F5FD03280AD000EBC001054870 +:1029C00000EB81000069002802D0BDE810400047FC +:1029D00010BD0000301F0020F8B5016804460868EB +:1029E000CA684B6910F00F0F4FF0000559D003F083 +:1029F000010602F49077374365D0C10705D0D105B1 +:102A000003D5616C41F001016164410705D5D90727 +:102A100003D0616C41F002016164810705D5D907DB +:102A200003D0616C41F004016164010707D502F035 +:102A30002001314303D0616C41F008016164616C95 +:102A400000293AD0800604D5900602D5204602F02F +:102A5000B9FD20684069616CC0F38010090700D49B +:102A600060B3204602F067FD20684069400621D52A +:102A70002068143050E8001F21F0400140E80012A7 +:102A8000002AF5D1E06BA8B16D494163E06BFEF718 +:102A900057FB002811D0E06B416B01B0BDE8F0405E +:102AA000084783060FD593060DD52046BDE8F840AC +:102AB00002F088BD2046FFF77BFFF8BD2046FFF7F8 +:102AC00077FF6564F8BD266B2023012E7CD1C606F6 +:102AD0007AD5D60678D508684868009048694FF0DE +:102AE0000206400640D5E16B086840680004000C0F +:102AF000E8D0A28D8242E5D9E085886920282DD0D2 +:102B000020680C3050E8001F21F4807140E800126A +:102B1000002AF5D12068143050E8001F21F001018F +:102B200040E80012002AF5D12068143050E8001F58 +:102B300021F0400140E80012002AF5D184F842302B +:102B4000256320680C3050E8001F21F0100140E898 +:102B50000012002AF5D1E06BFEF7CFFA6663A08D74 +:102B6000E18D401A81B22AE0A08DE18D401A81B238 +:102B7000E08D0028A6D00029A4D022680C3252E8AB +:102B8000000F20F4907042E80007002FF5D1206874 +:102B9000143050E8002F22F0010240E80027002FF7 +:102BA000F5D184F84230256320680C3050E8002FBE +:102BB00022F0100240E80023002BF5D16663204686 +:102BC000FFF7BCFEF8BDFFE705062BD5150629D596 +:102BD00094F841002128F5D1A068B0F5805F01D1BB +:102BE0002069B0B1206A411C2162216800784860E8 +:102BF000E08C401E0004000CE084E3D12068C16832 +:102C000021F08001C1602068C16841F04001C160CD +:102C1000D8E7206A0088C0F308004860206A801C5A +:102C20002062E5E74006CDD55006CBD5CA682046E0 +:102C300022F04002CA6084F8413000F047F9C1E751 +:102C40003954000870B5040004D094F84100002500 +:102C500010B106E0012070BD84F84050204600F01D +:102C600023F8242084F841002068C16821F4005131 +:102C7000C160204602F008FD2068016921F49041FE +:102C800001612068416921F02A0141612068C16821 +:102C900041F40051C1606564202084F8410084F84B +:102CA00042006563002070BDF0B585B0002400943B +:102CB00001940294039406463B4B02683B4803216F +:102CC0003B4D9A421AD1826942F480428261826904 +:102CD00002F480420492826942F0040282618069B7 +:102CE000039100F004000490581500901220019008 +:102CF00069462846FEF7B4FB05B0F0BD2D4B9A425D +:102D0000FAD1C26942F40032C261C26902F40032EF +:102D10000492826942F0040282618069039100F0AA +:102D20000400049004200090022001906946284687 +:102D3000FEF796FB0820CDE9000469462846029478 +:102D4000FEF78EFB1D4D1C488027C5E90004C5E930 +:102D500002472C616C61AC612846EC61FEF7E6FA33 +:102D600008B1FEF7D9F8F5636E62144D1248443588 +:102D7000143001C5102091C5104845F81049443061 +:102D80006C61AC61EC61FEF7D1FA08B1FEF7C4F8F2 +:102D9000B5630022052126206E62FEF705FD262080 +:102DA000FEF7F4FCA8E700000038014000100240E4 +:102DB00000080140004400406C0002405403002021 +:102DC00090F84230202B01D00220704721B11AB177 +:102DD0000023036302F0B4BC0120704710B502F079 +:102DE000DFFB03280AD000EBC001054800EB81009F +:102DF000C068002802D0BDE81040004710BD0000A8 +:102E0000301F002010B502F0CBFB03280AD000EBE6 +:102E1000C001054800EB81008068002802D0BDE8B1 +:102E20001040004710BD0000301F00202DE9F8437E +:102E3000044690F84100984616460D46202802D0D8 +:102E40000220BDE8F88385B17EB1002060642120B6 +:102E500084F84100FEF7FEFBA6848146E684A06864 +:102E60002027B0F5805F02D003E00120E9E7206968 +:102E700010B12E4600250EE000260CE080212046F1 +:102E800002F0A6FCA8B9C6B116F8010B216848608B +:102E9000E08C401EE084E08C4B464FF00002CDF801 +:102EA00000800028EAD14FF04001204602F090FC5B +:102EB00040B184F841700320C3E735F8020BC0F33A +:102EC0000800E3E784F841700020BAE710B502F08B +:102ED00067FB03280AD000EBC001054800EB810026 +:102EE0004068002802D0BDE81040004710BD000037 +:102EF000301F0020FEE72DE9F041070AC6B200218D +:102F0000F0238722084600F027FA4FF48770044622 +:102F100003F03AFA050014D0002029182F54801C21 +:102F20004E70A042F9D300262146284600F0AEFAA2 +:102F3000761CF02EF8D3284603F0E4F90020BDE813 +:102F4000F0816FF00100FAE72DE9FF5F1F465FEAAD +:102F5000000B04D0F81D4FEAD00800262CE06FF0DB +:102F6000010004B0BDE8F09F06FB08BA00251FE091 +:102F70001AF805905FF0000404EBC50080B2B84277 +:102F800014D2109901291CD00121A14011EA090F86 +:102F900008D0019A02991044314489B280B20F9A44 +:102FA00000F0C4F8641CE4B2082CE5D36D1CADB28B +:102FB0004545DDD3761CB6B20E988642D4D30020A8 +:102FC000CFE78021E140E1E72DE9FF4F83B088465C +:102FD000DDE91016203A05464FF0FF335F2A08D28C +:102FE000D0B20C2930D0102907D0182932D020298E +:102FF00063D0184607B0BDE8F08F49494FF0080B81 +:1030000001EB001000901020002701900098002490 +:1030100008EB070A10F80790281983B21FFA8AF103 +:10302000012E12D029FA04F010F0010F03D0184637 +:10303000069A00F07BF8641CE4B25C45ECD37F1C7C +:103040000198FFB28742E1D367E0C4F1070229FA91 +:1030500002F0E9E7334900EB400001EB001B0C20D4 +:10306000009018200190022000270290029900246D +:1030700008EB070A07FB01F9281983B20BEBD40010 +:103080001FFA8AF119F80000012E04F0070201D19D +:10309000C2F10702D04010F0010F03D01846069A83 +:1030A00000F044F8641C0098E4B28442E4D37F1C2E +:1030B0000198FFB28742D9D32FE01B4901EB801B57 +:1030C00010200090202001900220002702900299F9 +:1030D000002408EB070A07FB01F9281983B20BEB60 +:1030E000D4001FFA8AF119F80000012E04F007023B +:1030F00001D1C2F10702D04010F0010F03D01846F1 +:10310000069A00F013F8641C0098E4B28442E4D3F9 +:103110007F1C0198FFB28742D9D300206AE70000E4 +:1031200046810008368700080699000838B503462E +:1031300014481446007828B1012813D0022815D06D +:10314000032818D0184601231A4600F005F9200A72 +:103150008DF800008DF801400221684600F06EF9FC +:10316000002038BD0846C3F1EF0109E0C1F1860037 +:1031700080B21946E7E7C3F1860080B2C1F1EF01E2 +:1031800089B2E0E7980000202DE9FF4F83B0814627 +:10319000DDE910AB0546144688465046BAF10C0FDF +:1031A0001FD0102808D0182809D020280AD04FF0A6 +:1031B000FF3007B0BDE8F08F0927112611E00D2779 +:1031C00019260EE0112721260BE00A2A0DD0CDE9A1 +:1031D00000AB41462846069BFFF7F6FEE81985B28C +:1031E000641C2278002AF0D1E3E708EB060080B2E5 +:1031F0004D468046F4E7000070B504464A488AB060 +:103200004A4E04704FF48045002229463046FEF7AE +:103210001CFA3220FEF7F0F8012229463046FEF76C +:1032200014FA3220FEF7E8F8362000F0C7F834B17F +:10323000012C06D0022C73D0032C05D172E008209B +:1032400000E0602000F0DAF83A2000F0B7F805203E +:1032500000F0D4F8B22000F0B1F835A1D1E90001B6 +:10326000CDE90801052108A800F0E8F8B72000F032 +:10327000A5F8352000F0C2F8BB2000F09FF8192017 +:1032800000F0BCF8C02000F099F82C2000F0B6F84F +:10329000C22000F093F8012000F0B0F8C32000F045 +:1032A0008DF8122000F0AAF8C42000F087F8202042 +:1032B00000F0A4F8C62000F081F80F2000F09EF87E +:1032C000D02000F07BF8A42000F098F8A12000F0B6 +:1032D00095F8E02000F072F817A00FC88DE80F00F5 +:1032E0000E21684600F0AAF8E12000F067F816A168 +:1032F00004AC0FC984E80F000E2104A800F09EF86A +:10330000212000F05BF8112000F058F87820FEF73B +:1033100073F8292000F052F80AB0002070BDFFE7D2 +:10332000A0208FE7C8208DE798000020000C014006 +:103330000C0C003333000000D0040D11132B3F544C +:103340004C180D0B1F230000D0040C11132C3F440C +:10335000512F1F1F202300002DE9FC4100F13404F0 +:1033600001F12807A518FE182A206D1E761E00F010 +:1033700025F8200A8DF800008DF80140280A8DF804 +:1033800002008DF803500421684600F057F82B2006 +:1033900000F014F8380A8DF804008DF80570300A32 +:1033A0008DF806008DF80760042101A800F046F8AA +:1033B0002C2000F003F80020BDE8FC8131B500228C +:1033C0004FF480710B48FEF740F90B4D4FF48054D9 +:1033D000002221462846FEF738F9012200236946DB +:1033E0001046FDF719FD012221462846FEF72DF96A +:1033F000002038BD00080140000C014031B5012219 +:1034000011020C48FEF721F90B4D4FF480540022B5 +:1034100021462846FEF719F9012200236946104685 +:10342000FDF7FAFC012221462846FEF70EF900209E +:1034300038BD000000080140000C01402DE9F041BA +:103440000C460546402902D900F020F817E0012279 +:1034500011020C48FEF7F9F80B4F4FF4805600228A +:1034600031463846FEF7F1F800232246294601206E +:10347000FDF7D2FC012231463846FEF7E6F800207F +:10348000BDE8F08100080140000C01402DE9F04149 +:103490000C460546012211020E48FEF7D6F80E4FE3 +:1034A0004FF48056002231463846FEF7CEF801230D +:1034B000224629461846FDF7AFFC0120FDF792FC95 +:1034C0000128FAD1012231463846FEF7BEF8002025 +:1034D000BDE8F08100080140000C014010B504482F +:1034E000FDF7A8FD0248BDE810401030FDF7A2BD71 +:1034F00010B400083EB50D460446FFF7EFFF144830 +:103500002946047001244470124801F0D1FB11488F +:1035100001F07EFD0120FFF76FFE0020FFF7EBFCBE +:1035200000212020CDE900014BF6BA230AA208466B +:10353000FFF72AFE40214DF6A700CDE900100B460B +:1035400050220294B4210648FFF7FEFC3EBD000065 +:10355000EC000020B83F00205358313238310000D1 +:10356000C6B000080FB42DE9F05F364EDDE931BA80 +:10357000B0784FF0030810B30024334DB4708DF8C9 +:1035800029802A78314F32B131493846FCF728FE7C +:1035900028783C5400E03C702E4D4FF480792C701C +:1035A0004A462C492948FDF7DDFC0746287818B122 +:1035B000284929A002F0C6F92C70012FF0D09DF8FF +:1035C000290000282ED001282CD002282AD170787A +:1035D000224C012804D0022810D003281AD116E06A +:1035E0002078022804D0032802D0012803D011E05B +:1035F00086F801800EE0022070700BE0174801F0A1 +:10360000FDFC52465946154801F01AFD02E01348E8 +:1036100001F0F4FC2078012808D0032802D10F48DB +:1036200001F0ECFCBDE8F01F5DF814FB0B4801F065 +:10363000E5FC9DF832000CA9401DC2B2074801F01C +:10364000FFFCEFE7EC000020040000201F420020F8 +:10365000DB0400201F43002025730000B83F00203A +:103660000149012088707047EC00002000B5FDF78B +:1036700009FD012801D8062000BD032801D8072034 +:1036800000BD052801D8082000BD072801D8092061 +:1036900000BD092801D80A2000BD0F2801D8172035 +:1036A00000BD282000BD0000194808B5416941F05F +:1036B000010141614069002200F0010000900521F4 +:1036C0000C20FEF771F80C20FEF760F800220521AF +:1036D0000D20FEF769F80D20FEF758F800220521AD +:1036E0000F20FEF761F80F20FEF750F800220521A9 +:1036F0001020FEF759F81020FEF748F800220521A7 +:103700001120FEF751F8BDE808401120FEF73EB841 +:103710000010024010B5074A0021074803F018F8CE +:103720000649074A0860BDE810400021054803F03B +:103730000FB80000F8800008D950000800000020F1 +:1037400030B40008895300082DE9F04186B0002606 +:103750003E480096019602960396816941F0200149 +:103760008161816901F020010491816941F00401C6 +:103770008161816901F004010491816941F00801CE +:1037800081618069324F00F008004FF48874049022 +:10379000002221463846FDF758FFDFF8B8800022A6 +:1037A00045F219214046FDF750FF01258DE87000D4 +:1037B0000224694638460394FDF752FECDE90254CF +:1037C0000095694640460195FDF74AFE4FF4A44036 +:1037D00003948DE8610069464046FDF741FEE00232 +:1037E00000901D48CDE9010669463846FDF738FED0 +:1037F00018200090CDE90154694640460394FDF736 +:103800002FFEE02000901548CDE9010469464046AE +:10381000FDF726FEE001CDE9000669460294404628 +:10382000FDF71EFE002205211720FDF7BDFF172022 +:10383000FDF7ACFF002205212820FDF7B5FF282069 +:10384000FDF7A4FF06B0BDE8F081000000100240C3 +:1038500000080140000C0140000021100000111080 +:10386000104810B50E4901604FF48271416000218B +:103870008160C1604FF400720161C0E9051210223D +:10388000C0E90721416281620A21C162FEF74DFA57 +:10389000002803D0BDE81040FDF73EBB10BD00007E +:1038A0000030014000010020104810B50E490160B1 +:1038B0004FF48271416000218160C1604FF4007259 +:1038C0000161C0E905120822C0E907214162816255 +:1038D0000A21C162FEF729FA002803D0BDE8104092 +:1038E000FDF71ABB10BD0000003800405801002051 +:1038F00010B596B000240F94109411941294139460 +:103900001C2108A81494FCF784FC20216846FCF7CD +:1039100080FC27482549C0E900144FF6FF71C0E933 +:103920000241046144618461FEF79EFE08B1FDF727 +:10393000F3FA4FF480500F900FA91D48FEF7D6FE02 +:1039400008B1FDF7E9FA1A48FEF7CAFF08B1FDF71A +:10395000E3FA139413A916481494FEF751FE08B124 +:10396000FDF7DAFA6020CDE908040A940C940D946E +:103970000C2208A90E480E94FEF74CFF08B1FDF783 +:10398000CBFA00944FF40050CDE904400294019426 +:103990000394694606480794FEF708FE08B1FDF750 +:1039A000BBFA0348FEF710FF16B010BD002C014013 +:1039B0007C0200200C4810B50A4901604FF4E13147 +:1039C0004160002181600822C160C0E90412816168 +:1039D000C161FDF745FE002803D0BDE81040FDF7AA +:1039E0009BBA10BD00380140C40200200C4810B53D +:1039F0000A4901604FF4E1314160002181600C22ED +:103A0000C160C0E904128161C161FFF71BF90028A0 +:103A100003D0BDE81040FDF77FBA10BD0044004060 +:103A20000C030020FEE7FEE7034910B502200870F2 +:103A300001F092F810BD00009C000020034910B571 +:103A40000420087001F088F810BD00009C000020E0 +:103A5000034910B50320087001F07EF810BD000086 +:103A60009C000020034910B50520087001F074F88F +:103A700010BD00009C000020034910B5062008700E +:103A800001F06AF810BD00009C00002010B5406AEB +:103A900001684A6822F003024A60416D41F010015A +:103AA0004165012180F85110FEF720F910BD10B5D5 +:103AB000406AFEF74BFA10BD10B5406AFEF70EFDE6 +:103AC00010BD10B5406AFEF741FD10BD70B505464A +:103AD000446AFDF7BFFD024628680068800626D4C8 +:103AE0002068416821F020014160A06818B9606831 +:103AF000B0F5827F16D02068416821F00101416055 +:103B00006421204600F076F808B12020606500208E +:103B1000E087012084F85100606D40B12046FEF737 +:103B2000E5F870BD2068416821F00301E7E7204611 +:103B3000FEF7F0F970BD38B50546446AFDF78AFD19 +:103B4000024628680068800623D42068416821F076 +:103B5000200141602068416821F002014160642138 +:103B6000204600F075F818B1606D40F020006065E7 +:103B7000A068002118B92068C26880680090E186BA +:103B8000012084F85100606D18B12046FEF7AEF8B0 +:103B900038BD2046FEF790FC38BD70B50546446A36 +:103BA000FDF758FD02462868006880061ED420688C +:103BB000416821F0200141606421204600F048F86E +:103BC00018B1606D40F0200060652068416821F008 +:103BD000030141600020E086E087012084F8510065 +:103BE000606D18B12046FEF781F870BD2046FEF7E3 +:103BF00091FC70BDF8B5044640684FF4827398425A +:103C000017D1A0684FF48065B0F5004F01D0A842ED +:103C10000FD12068066826F040060660606898426A +:103C200007D1A068A84204D100920B4600220121CE +:103C300003E000920B4600228021204600F034F879 +:103C4000002804D0606D40F0200060650320F8BDBE +:103C5000F8B515460E460B46009204460122022195 +:103C600000F022F840B9334600228021204600951A +:103C700000F01AF8002804D0606D40F02000606564 +:103C80000320F8BD00680649884201D10020704732 +:103C90000449884201D10120704703207047000089 +:103CA00000300140003800402DE9F8431E4691469F +:103CB00088460446089DFDF7CDFC401B351AFDF7EC +:103CC000C9FC074625480068C0F3CB30684338E09C +:103CD000701C37D0FDF7BEFCC01BA84203D215B143 +:103CE000009860B32CE02068416821F0E001416059 +:103CF0006068B0F5827F0BD1A068B0F5004F02D0AC +:103D0000B0F5806F04D12068016821F040010160A6 +:103D1000A06AB0F5005F09D12068016821F4005164 +:103D200001602068016841F400510160012084F8BD +:103D30005100002084F850000320BDE8F8830025DE +:103D4000401E00902068816838EA010004D00021FC +:103D50004945BDD10020F0E70121F9E7140000201A +:103D6000C0F340114901C0F3001241EA0211C0F34F +:103D7000C00241EAC201C0F3800241EA8201C0F3FD +:103D8000400241EA420108B500F0010001438DF80C +:103D9000001001226946892000F016FB08BD08B515 +:103DA000010A8DF800108DF8010002226946972063 +:103DB00000F00AFB08BD10B54FF4AA7000F078FAC5 +:103DC000044640F2531000F073FA44EA002010BD9C +:103DD00070B5204A002001465278032A39DA002AB9 +:103DE00037D0012A35D140F6541000F061FA04466C +:103DF00040F6551000F05CFA054640F6561000F00B +:103E000057FA210441EA05210143C1F3130400F0EC +:103E100035F8FCF7FAFB02460B4600200E49FCF78A +:103E200085FB00220D4BFCF70FFB05460E46204696 +:103E3000B4F5002F01D3A4F58010FCF7E6FB084A87 +:103E4000084BFCF701FB2A463346BDE87040FCF7FF +:103E50006DBB70BDC40000200000994000408F4041 +:103E6000CDCCCCCCCCCCF83F08B50222694615208D +:103E700000F0E8F9BDF8000040BA08BD094900208B +:103E800089780A290BD0182907D0262903D034298C +:103E900000D10548704705487047054870470548F8 +:103EA00070470000C400002075190300EA320600C4 +:103EB000D4650C00A8CB18000148007870470000BA +:103EC000C40000201CB50446052269461D2000F0F0 +:103ED000B9F9804840782070032865D00FDCC0B164 +:103EE000012815D19DF80000404200EBD070401031 +:103EF00060709DF80100802819D280081DE0042818 +:103F00007DD00F2804D100202060A0800F202070D9 +:103F10001CBD9DF80000404200EBD0704010607066 +:103F20009DF80100404200EBD070401005E0A0F584 +:103F30008070C11700EB91708010A0709DF8020096 +:103F40008109E07861F30000E0709DF802104909F2 +:103F500061F34100E0709DF80210090961F38200ED +:103F6000E0709DF80210C90861F3C300E0709DF88D +:103F70000210890861F30410E0709DF802104908EE +:103F800061F34510E0709DF8021061F38610E07057 +:103F90009DF803004109207961F3000020719DF82C +:103FA000031061F341008DE09DF80000404200EBFA +:103FB000D070401060709DF80100404200EBD0705E +:103FC0004010A0709DF802008109E07861F30000C4 +:103FD000E0709DF80210490961F34100E0709DF81E +:103FE0000210090961F38200E0709DF80210C9080F +:103FF00061F3C300E0709DF80210890800E025E03D +:1040000061F30410E0709DF80210490861F3451057 +:10401000E0709DF8021061F38610E0709DF80300D7 +:104020008109207961F3010020719DF8031049098D +:1040300061F3820020719DF80310090961F3C30048 +:1040400020719DF8031061F304103BE09DF800001F +:10405000404200EBD070401060709DF8010040427B +:1040600000EBD0704010A0709DF802008109E0784C +:1040700061F30000E0709DF80210490961F341000E +:10408000E0709DF80210090961F38200E0709DF86C +:104090000210C90861F3C300E0709DF8021089089E +:1040A00061F30410E0709DF80210490861F34510B7 +:1040B000E0709DF8021061F38610E0709DF8030037 +:1040C00000F0010020719DF8040000F0070060710D +:1040D0001CBD0000C400002001484078704700006B +:1040E000C4000020F8B50C46064615466946204631 +:1040F00000F01EF82278AA4201D90120F8BD31460D +:104100009DF8000000F068F80020F8BD08B5002018 +:104110008DF80000012269461F2000F093F89DF8F9 +:104120000000404200EBD07040F3470008BD0000A3 +:10413000F8B50D46044602226946172000F082F8C1 +:104140000C4E707801280AD140F6031000F0B0F848 +:10415000C00904D040F6011000F0AAF805E070781C +:1041600004289DF8000000D1801C20709DF80100FB +:104170002870F8BDC400002008B500208DF80000AC +:1041800001226946C02000F05DF89DF8000008BDDE +:1041900070B5074D4FF480712846FCF78CFF04463C +:1041A00080212846FCF787FF44EA4000C0B270BD7A +:1041B000000C014010B5044600F0BAF82046BDE8F6 +:1041C000104000F001B8000000220368802101487F +:1041D000FCF774BF000C01402DE9F0410E4601468A +:1041E00015481446D51C1B220270417000218170B5 +:1041F0000B4603E0C2185B1CD1709BB2A342F9D3FB +:1042000000F0B0F80D4F002210213846FCF772FF85 +:104210002A460B49084800F03DFF09492246C91CBF +:104220003046FBF7DDFF012210213846FCF762FF24 +:10423000BDE8F04100F096B8B81F0020000801402A +:10424000B72F00202DE9F0410E460146901C85B2A3 +:10425000144814460170002141700B4603E0C21857 +:104260005B1C91709BB2A342F9D300F07BF80E4F18 +:10427000002210213846FCF73DFF2A460B49094829 +:1042800000F008FF09492246891C3046FBF7A8FFC9 +:10429000012210213846FCF72DFFBDE8F04100F067 +:1042A00061B80000B81F002000080140B72F0020AF +:1042B00008B50122694600F003F89DF8000008BD2A +:1042C0002DE9F0410E46111D164B8DB219211970C2 +:1042D000010A5970987000211446D970084603E00D +:1042E0001A18401C117180B2A042F9D300F03AF8BC +:1042F0000D4F002210213846FCF7FCFE2A460B49E0 +:10430000084800F0C7FE09492246091D3046FBF760 +:1043100067FF012210213846FCF7ECFEBDE8F041B2 +:1043200000F020B8B81F002000080140B72F00207F +:1043300010B51420FDF760F8094C00220121204639 +:10434000FCF7D8FE3220FDF757F80122114620462F +:10435000FCF7D0FEBDE810401420FDF74DB800007A +:10436000000C014070B5054D4FF48074214628467D +:10437000FDF766F90128F9D070BD0000000C01407E +:1043800070B50F481A23941C00F8013B002300F875 +:10439000013BFBF725FFFFF7E5FF0A4D0022102147 +:1043A0002846FCF7A7FE2146054800F067FE0122DB +:1043B00010212846FCF79EFEBDE87040FFF7D2BFF3 +:1043C000B81F0020000801402DE9F0410546501CAF +:1043D0001446884686B2FFF7C5FF0F4F0022102112 +:1043E0003846FCF787FE0D482246414600F8015B3F +:1043F000FBF7F6FE3146094800F040FE012210218D +:104400003846FCF777FE842D03D0BDE8F041FFF776 +:10441000A9BFBDE8F081000000080140B81F0020DE +:1044200013B5012201A900F001F81CBD70B50346C7 +:10443000D01C84B20F48182500F8015B1D0A00F853 +:10444000015B00F8013BFBF7CBFEFFF78BFF0A4D4A +:10445000002210212846FCF74DFE2146054800F0B9 +:104460000DFE012210212846FCF744FEBDE87040F5 +:10447000FFF778BFB81F0020000801400249C8605C +:1044800001F10800FFF796BEC40000200348C17880 +:1044900011B101210171704700F002B8C400002081 +:1044A00070B5514C2078002872D0E07830B1207976 +:1044B00000286DD072B60020207162B66678FFF7D2 +:1044C000D3FC05464FF6FF70FFF769FC2EB1012EB5 +:1044D00040D0032E01D0042E5AD1207804286FD06A +:1044E000052855D1A80714D5680605D5E06880B120 +:1044F000816971B1022006E02807E06805D540B166 +:10450000816931B10120884703E010B1406800B1F2 +:104510008047680704D5E06810B1806800B1804723 +:10452000280705D5E06818B1816909B1012044E088 +:10453000680458D5E068002855D0406905E0680453 +:1045400051D5E06800284ED0006900284BD0BDE866 +:10455000704000472078042832D005280DD0062866 +:1045600041D1E804E4D5A804E06833D500283AD066 +:10457000C169002937D0012032E0A8070DD56806AF +:10458000E06806D548B1816939B10220884704E066 +:1045900029E010B1406800B18047E80604D5E06822 +:1045A00010B1C06800B18047A806C1D5E0680028F6 +:1045B000BED081690029BBD000208847B8E7FFE75B +:1045C000E807BCD0E0680028B9D000680028B6D061 +:1045D0008047B4E7002806D0C169002903D0002035 +:1045E000BDE87040084770BDC400002010B51446F7 +:1045F00000F080F92046BDE8104000F067BA01B530 +:10460000012269469E20FFF7DFFE08BD08B521386C +:10461000010A8DF800108DF80100022269469820E9 +:10462000FFF7D2FE08BD10B50446010E40F6CF10CC +:10463000FFF7F6FEC4F307414FF41D60FFF7F0FEED +:10464000C4F3072140F6D110FFF7EAFEE1B2BDE85E +:10465000104040F6D210FFF7E3BE00000148FFF71C +:10466000E2BF0000D6BE898E08B502228DF8000098 +:104670008DF8011069468F20FFF7A6FE08BD0000E7 +:1046800010B500221146C520FFF79EFE0149062005 +:10469000087010BDC400002001B5012269468820C1 +:1046A000FFF792FE01490620087008BDC4000020F3 +:1046B00008B5010A8DF800108DF801000548407812 +:1046C00008B1032805D10222694640F6C610FFF75B +:1046D000ADFE08BDC400002008B5010A8DF8001029 +:1046E0008DF801000548407808B1032805D1022261 +:1046F000694640F6C810FFF799FE08BDC4000020C7 +:104700001CB5040A8DF800408DF80100080A8DF8E8 +:104710000200100A8DF804008DF80520180A8DF8A3 +:1047200006008DF803108DF80730082269468D20A9 +:10473000FFF74AFE1CBD000010B500221146C12043 +:10474000FFF742FE01490320087010BDC40000209D +:1047500001490020C8707047C400002001B5012243 +:1047600069469B20FFF730FE08BD000038B5234D99 +:10477000044600786978884201D000F0ADF82078CE +:1047800003281DD003DC38B1012822D10CE0042815 +:1047900025D00F281DD12AE060788DF80000A07880 +:1047A0008DF80100E07812E020798DF80000607942 +:1047B0008DF80100A0798DF802006079A87008E0FA +:1047C000E0798DF80000207A8DF80100607A8DF88C +:1047D0000200032269468B20FFF7F6FD38BDA07A60 +:1047E0008DF80000E07A8DF80100207BEFE70020D3 +:1047F0008DF800008DF80100E9E70000C4000020FA +:104800001CB53449044600784978884201D000F04C +:1048100063F821780020032935D003DC39B1012960 +:104820002BD118E0042942D00F2926D14CE0607822 +:104830008DF80000A0788DF80100E0788DF8020076 +:1048400020798DF8030060798DF80400A0798DF847 +:104850000500E0790FE0217A8DF80010617A8DF87B +:104860000110A17A8DF80210E17A8DF80310217BF6 +:104870008DF804102BE08DF80600072269468C2085 +:10488000FFF7A2FD1CBD607B8DF80000A07B8DF8BA +:104890000100E07B8DF80200207C8DF80300607C35 +:1048A0008DF80400A07C8DF80500E07CE3E7217D15 +:1048B0008DF80010617D8DF80110A17D8DF802103A +:1048C000E17D8DF8031000E000908DF804008DF874 +:1048D0000500D0E7C400002001B505499DF800009F +:1048E0000122487069468A20FFF76EFD08BD00006E +:1048F000C40000200A4601460020FFF741BD000029 +:1049000001490120C8707047C400002070B5074DF0 +:10491000002400BF05EB8400817835F82400FFF700 +:104920007FFD641C24B2002CF4D070BD12B30008CB +:1049300001B5012269469620FFF746FD08BD00003B +:1049400008B5FBF773FE0022094BFBF7EFFDFBF701 +:104950007AFE010C8DF80010010A8DF801108DF817 +:104960000200032269468620FFF72EFD08BD0000E5 +:10497000A8CB684008B58DF80000000C010A8DF83E +:1049800001108DF802004FF6FF70FFF708FA0322BE +:1049900069468220FFF718FD01490520087008BD0F +:1049A000C40000201CB58DF80000080A8DF8010035 +:1049B0008DF80210100A8DF803008DF804200522EE +:1049C00069469420FFF700FD0149052008701CBDD1 +:1049D000C400002000221146D520FFF7F5BC0000DE +:1049E000C107090FC0F3400241EA8201C0F380020F +:1049F00008B541EA4201C0F3C00001438DF8001040 +:104A0000044900200122087069468420FFF7DCFC7D +:104A100008BD0000C400002001B5012269468020C5 +:104A2000FFF7D2FC9DF80010034811B1022101707C +:104A300008BD0121FBE70000C4000020034619481F +:104A400010B5427832B140F6CF10032A13D0042AB1 +:104A500022D11EE00522012B04D0022B05D0032B0E +:104A60001AD105E040F6CE1018E040F6D31015E05C +:104A700040F6D81012E00422012B0FD0022B02D0F6 +:104A8000032B09D102E040F6D41007E040F6D9101C +:104A900004E00422012B01D0012010BDFFF7C6FC69 +:104AA000002010BDC400002070B5044640F6CD15AE +:104AB0002846FFF7FDFB00F0F00104F00F00014372 +:104AC0002846BDE87040FFF7ABBC000008B58DF884 +:104AD0000000000C010A8DF801108DF802004FF65D +:104AE000FF70FFF75CF9032269468320FFF76CFC37 +:104AF00001490420087008BDC400002000221146AE +:104B0000D220FFF761BC00221146D120FFF75CBC28 +:104B100008B512308DF800008DF8011002226946A8 +:104B20008E20FFF751FC08BD0649497819B10329C9 +:104B300001D0042904D1014640F6C510FFF770BC2E +:104B400070470000C400002010B5FCF7B3FABDE8C0 +:104B5000104000F0AFBA00002DE9F041284D294C7B +:104B6000801E062848D2DFE800F003272E36424494 +:104B700025A000F0E7FE294F0026FF22FE702B6ED5 +:104B8000F91C274898472648F97801444E70017867 +:104B9000407801EA0021002004EB4002B2F88A20AC +:104BA0008A4205D104EB800252F8903F5B1C1360EF +:104BB000401C0328F0DB1FE01AA000F0C3FE1F48D2 +:104BC00000F026FA18E01EA000F0BCFE2148E96DB6 +:104BD0000068884710E020A000F0B4FEA07A0949E0 +:104BE000401DC2B20831154800F02AFA04E01FA0A7 +:104BF00000E024A000F0A6FE0020BDE8F081000047 +:104C000018B30008404400203C3E3E3E3E3E3E3E3F +:104C10003E4F6E5278446F6E65000000EC0000203D +:104C2000204100203C3E3E3E3E3E3E3E3E4F6E52C8 +:104C30005854696D656F757400000000B83F00201E +:104C40003C3E3E3E3E3E3E3E3E4F6E527845727288 +:104C5000000000000CB400083C3E3E3E3E3E3E3E9E +:104C60003E4F6E5478446F6E650000003C3E3E3E01 +:104C70003E3E3E3E3E4F6E547854696D656F75748E +:104C8000000000003C3E3E3E3E3E3E3E3E4F6E43F8 +:104C90006164446F6E65000028B10449097880F8AA +:104CA0006010002070474FF0FF3070479C000020DC +:104CB0002DE9FC5F8846040030D084F808803E343B +:104CC000FFF742FF4FF4FA70FCF796FB8C4D8D48CE +:104CD000296888478CA193A000F034FE286B804798 +:104CE000014699A000F02EFE022020776077002672 +:104CF000A677E67720273E3C4FF0040B4FF01009D3 +:104D0000B8F1000F0ED04FF0FF0AB8F1010F28D014 +:104D1000B8F1020F4AD0B8F1030F71D04FF0FF3055 +:104D2000BDE8FC9F92A000F00DFE84F83CB094F822 +:104D30005A10954A01EB4101535C114484F8463006 +:104D40004A7884F84720897884F8481084F824B099 +:104D500084F83AB084F8387084F8399084F83B606D +:104D600077E08AA000F0EEFD012084F83C0094F882 +:104D70005B1001EB4102844909318B5C114484F8DA +:104D800040304A7884F84120897884F8421084F8C9 +:104D900024000C2084F82C0084F82D6084F82EA0C8 +:104DA00084F82F70402084F8300052E07DA000F09D +:104DB000C9FD84F83C6094F85C0000EB4001724847 +:104DC0002130425C084484F83D20417884F83E104C +:104DD000807884F83F0084F82460702084F82500EF +:104DE000082084F8260084F8279084F8287084F836 +:104DF00029A0302084F82A0084F82B6029E0FFE7FE +:104E00006EA000F09FFD032084F83C0094F85D1034 +:104E100001EB41025C492D318B5C114484F8433035 +:104E20004A7884F84420897884F8451084F824006E +:104E3000702084F8310084F832B084F8339084F81C +:104E4000347084F835A0302084F83600082084F8C7 +:104E500037000D2084F8580084F859605D4800211F +:104E6000C4E91401207A02281AD15BA1D1E900011A +:104E7000CDE900015AA0009E017903685AA002689A +:104E80000079C4F809609DF804606673C4F80E30B8 +:104E9000A174C4F81320E075AA6D694601209047FB +:104EA000207A03280BD152A0016852A0026852A0B8 +:104EB0000068C4F80910C4F80E20C4F81300A96BE8 +:104EC00000208847E96B94F83C008847296C04F17E +:104ED0003C008847696C04F124008847A96C54F8A9 +:104EE000500F88470021EA6C084690472A6D617A86 +:104EF00094F908009047E86E8047002010E7000012 +:104F000018B30008A40000204669726D77617265CD +:104F10002056657273696F6E3A20313730393139F6 +:104F2000410000000A0A0D20202020205358313271 +:104F30003831204170706C69636174696F6E2E2026 +:104F400025730A0A0D0000000A0A0D2020202020E7 +:104F5000526164696F206669726D7761726520764F +:104F6000657273696F6E20307825780A0A0D00002B +:104F70000A72756E6E696E6720696E20424C45201C +:104F80006D6F64650A0D0000D8B200080A72756E74 +:104F90006E696E6720696E204C4F5241206D6F64C0 +:104FA000650A0D000A72756E6E696E6720696E2063 +:104FB0004746534B206D6F64650A0D000A72756E8B +:104FC0006E696E6720696E20464C5243206D6F6497 +:104FD000650A0D0080D29990123456789A0000002C +:104FE00023456789AB0000003456789ABC00000066 +:104FF00012233445566778899AABBCCD10B5044668 +:10500000FFF74EFA2046FFF747FE002010BD0000D4 +:1050100070B5032101700848064C00234188656D76 +:105020001A460846A8470548E16D406888470020B1 +:1050300070BD000018B300089C000020C8B2000832 +:105040002DE9F0410F46012101700A48084C16462F +:1050500081880023656D1A460846A8470648636E96 +:1050600031468268384698470020BDE8F08100004C +:1050700018B300089C000020C8B20008044B0122AD +:105080001A700A46002301461846FBF7C5BE000009 +:10509000D400002038B5064C012323700023009370 +:1050A00013460A4601460020FBF7CBFE38BD000040 +:1050B000D400002010B5064A02210020FBF79EFE16 +:1050C0000021BDE81040034A0846FBF797BE0000E8 +:1050D000957100088971000810B501F036FBBDE834 +:1050E000104001F07ABB10B5FCF7F2FA02F046FE70 +:1050F000012803D0BDE8104002F04EBB10BD10B532 +:1051000090B028216846FBF784F814210AA8FBF721 +:1051100080F801210804CDE9001042000292022427 +:105120000491CDE907404FF4E01009906846FCF780 +:105130004DFC08B172B6FEE70F20CDE90A0400204D +:105140004FF48061CDE90C010E9002210AA8FCF712 +:105150005DFB002801D072B6FEE710B010BD7047AD +:10516000F0B50268194B1A4C1A4D4FF0804798421F +:1051700005D0B84203D0A04201D0A84203D122F00A +:1051800070064A683243984205D0B84203D0A04224 +:1051900001D0A84203D122F44074CA6822434C696A +:1051A00022F08002224302608A68C2620A68826238 +:1051B000984201D109690163012141610169C9076F +:1051C00003D0016921F001010161F0BD002C014013 +:1051D000000400400008004010B5846842EA032241 +:1051E00024F47F440A432243826010BD826822F087 +:1051F00070020A4342F007018160704730B5036ACC +:10520000026A22F0010202624268846924F0730596 +:105210000C682C4323F002058B682B430A4DA842EF +:105220000BD123F00805CB6822F440722B434D6963 +:1052300023F0040315438A692A4342608461496864 +:105240004163036230BD0000002C014030B5026AAA +:10525000036A23F010030362436884690D6824F431 +:10526000E64444EA05248D6822F0200242EA051251 +:105270000B4DA8420ED1CD6822F0800242EA051201 +:105280004D6923F4406343EA85038D6922F04002AF +:1052900043EA85034360846149688163026230BDEB +:1052A000002C014030B5036A026A22F48072026267 +:1052B0004268C46923F4007324F073050C682C431E +:1052C0008D6843EA05230C4DA8420ED1CD6823F426 +:1052D000006343EA05234D6922F4405242EA051275 +:1052E0008D6923F4806342EA05124260C461496813 +:1052F000C163036230BD0000002C014030B5046A78 +:10530000026A22F4805202624268C3690D6823F483 +:10531000E64343EA05238D6824F4005444EA053447 +:10532000064DA84204D14D6922F4804242EA85121A +:105330004260C36149680164046230BD002C0140D1 +:1053400010B5036A046A24F001040462846924F03D +:10535000F00444EA021423F00A020A438461026260 +:1053600010BD10B5036A046A24F010040462846955 +:1053700023F0A00324F4704444EA023243EA01110A +:105380008261016210BD000010B501F063F90A4AA4 +:1053900000210A4801F0DCF9094C00220A212060B2 +:1053A000022001F0A6F9606001F086F901F0CDF964 +:1053B000BDE8104001F011BA54B40008C55300080C +:1053C00020440020A6B001F030F9FBF72FF90022AD +:1053D000154BFBF7ABF8FBF736F90646002001F05A +:1053E000F9F801F01BF9044610480068C16841F063 +:1053F0001001C16003210220FEF77CF80D4DDFF89B +:105400003080012705F11009CDE9238734448C222F +:1054100049466846FAF7E4FE95E80F00FEF7A2F861 +:10542000204601F0E4F8EFE70088C3400C030020B9 +:10543000F00000204044002010B5406A0021C185E2 +:10544000C184FDF7B5FA10BD70B5446A20684069A3 +:1054500094F84110C0F3C0100025212904D118B1DF +:10546000E584204600F08EF82068406994F84210E8 +:10547000C0F38010222904D118B1E585204600F040 +:105480005AF8606C40F0100060642046FDF790FA16 +:1054900070BD10B50146406A096809684FF0000206 +:1054A00089062ED4C28501680C3151E8003F23F4EF +:1054B000807341E80034002CF5D10168143151E8C3 +:1054C000003F23F0010341E80034002CF5D10168CE +:1054D000143151E8003F23F0400341E80034002C30 +:1054E000F5D1202180F84210016B012909D1016812 +:1054F0000C3151E8003F23F0100341E80034002C48 +:10550000F5D14263016B012902D0FDF767FC10BDA4 +:10551000818DFDF713FA10BD10B5406A012141637A +:10552000016B012902D0FDF76DFC10BD818D49088A +:10553000FDF704FA10BD01680C3151E8002F22F488 +:10554000907241E80023002BF5D10168143151E835 +:10555000002F22F0010241E80023002BF5D1016B5E +:10556000012909D101680C3151E8002F22F0100205 +:1055700041E80023002BF5D1202180F842100021C2 +:105580000163704701680C3151E8002F22F0C0021E +:1055900041E80023002BF5D1202180F8411070470D +:1055A00000680649884201D10020704704498842BA +:1055B00001D10120704703207047000000440040E3 +:1055C0000038014008B590F84210222901D002208D +:1055D00008BD82684FF480539A4201D1016921B11C +:1055E000816A9A421BD04AB10AE00268816A526815 +:1055F000C2F308020A80816A891C08E0026972B15C +:105600000268526802F07F020A70816A491C816256 +:10561000C18D491E0904090CC18503D01BE0026835 +:105620005268F1E70168CA6822F02002CA60016886 +:10563000CA6822F48072CA6001684A6922F00102D5 +:105640004A61202180F8421000214163026B012A47 +:1056500003D0FDF7C3FB002008BD016301680C31D6 +:1056600051E8002F22F0100241E80023002BF5D171 +:1056700001680A68D20602D50A6849680091818DDE +:10568000FDF75CF9E7E7000070B5044600680169C2 +:10569000E26821F44051114301612169A068084387 +:1056A000616908432168CA6841F20C639A43024366 +:1056B000CA6020684169A26921F4407111434161C7 +:1056C0001E492068884202D1FCF746F901E0FCF748 +:1056D00033F900EBC00101EB001260686421800027 +:1056E000B2FBF0F3B3FBF1F36FF018067343B2FBB8 +:1056F000F0F5B2FBF0F605EB8305322303EB05155D +:10570000B5FBF1F5B6FBF1F605F0F00505EB061576 +:10571000B2FBF0F6B2FBF0F0B0FBF1F06FF0180264 +:10572000504306EB800003EB0010B0FBF1F0216862 +:1057300000F00F002844886070BD00000038014070 +:1057400038B58162044682850020134660642222B7 +:1057500084F84220E56B1B4AAA62E56B1A4AEA62AA +:10576000E56B1A4A2A63E26B50630A462168E06BD4 +:10577000091DFBF709FE2068016840680090206958 +:1057800048B120680C3050E8001F41F4807140E8B7 +:105790000012002AF5D12068143050E8001F41F0B3 +:1057A000010140E80012002AF5D12068143050E8C9 +:1057B000001F41F0400140E80012002AF5D100200E +:1057C00038BD0000935400081955000849540008DA +:1057D0002DE9F843984617460D460446089E24E0F6 +:1057E000701C22D0FBF736FFA0EB0800B0421AD89D +:1057F000CEB12068C168490717D5802D15D0402D3E +:1058000013D00168C94309070FD401680025406817 +:1058100000902046FFF78FFE0820606484F8405017 +:105820000120BDE8F8830320FBE72068006835EA23 +:10583000000004D00020B842D2D00020F1E70120BF +:10584000F9E7000010B50448FDF7C6F8BDE81040C0 +:10585000014800F04DB800000C03002070B50400B2 +:105860002FD01849206888422BD12046FDF767F8D1 +:10587000154800684068154DC0F1FF00C1B229709D +:1058800013A000F05FF810494FF400732A788831B4 +:105890002046FDF7CBFA15A000F054F80A498831EC +:1058A00001F1FF00FAF7E1FC074829788830FAF7A0 +:1058B000B0FC0549FF2288312046FDF781FAFDF74B +:1058C000CFFE70BD004400405403002004000020BF +:1058D000526563656976652044617461286C656E04 +:1058E000677468203D202564293A20000D0A0000D5 +:1058F00038B5040012D00A48216881420ED10868E8 +:10590000C043C0060AD408684868009005A000F0AB +:1059100019F82046BDE83840FFF7A0BF38BD0000A9 +:10592000004400400D0A55415254322049646C65D0 +:10593000204952512044657465637465640D0A0002 +:10594000FEE700000FB4054B10B503A9044A029806 +:1059500000F004F910BC5DF814FB0000ED620008D3 +:10596000F40000200FB47CB50C0009AD01D0611E1D +:1059700000E00021CDE90001064B6A46294608985F +:1059800000F0ECF8002C02D0009A002111707CBCD1 +:105990005DF814FB636200080907090E002804DBA8 +:1059A00000F1E02080F80014704700F00F0000F1D3 +:1059B000E02080F8141D704702E008C8121F08C1DB +:1059C000002AFAD170477047002001E001C1121F80 +:1059D000002AFBD1704700002DE9FF5F82B0002153 +:1059E000DDE90430020DDDF840B0034318D044F681 +:1059F0001050A2F2FF3242431514119801281FD013 +:105A0000A5EB0B00401C5FEA000A4FF000064E4F6A +:105A1000DFF83891B046504615D5CAF1000413E0BE +:105A2000119801244AA3012801D16FEA0B010298C1 +:105A3000119AC0E90031C0E9024206B0BDE8F09F0A +:105A4000CBF10000DFE704460021404A491842EB51 +:105A50000450CDE9001012E0E00707D032463B4683 +:105A600040464946FAF7F0FC8046894632463B46B6 +:105A700010461946FAF7E8FC06460F466410002C5B +:105A8000EAD1DDE90401DDE90023BAF1000F06DA0D +:105A9000FAF7DAFC42464B46FAF7D6FC05E0FAF78D +:105AA00045FD42464B46FAF741FD04460E460022AC +:105AB000284BFAF78DFF03D84FF0FF30014607E07F +:105AC0000022254B20463146FAF7C3FEFAF768FF5D +:105AD000102409E0002C0ADB0A220023FAF7E2FD79 +:105AE000039B30321A55641E50EA0102F2D1641C45 +:105AF000039AC4F111031444119A012A03D001221C +:105B000008430DD10AE0084304D000204FF0110BE8 +:105B1000119072E7A3EB0B056D1E0DE05B4504DDF4 +:105B20004FF0000205F1010504E003DA4FF0000236 +:105B3000A5F10105002AECD002981199C0E90231C3 +:105B4000C0E9004579E70000000014400000F03F84 +:105B5000300000000000F0430000E03F2DE9FF4F5F +:105B600095B09A46884606460025EEE1252877D16D +:105B700000242746F94A0121039400E0044316F863 +:105B8000013F203B01FA03F01042F7D130782A2878 +:105B900011D06FF02F033078A0F13002092A16D807 +:105BA000039A44F0020402EB820203EB4202104427 +:105BB000761C0390EFE758F8042B0392002A03DACF +:105BC000504244F40054039044F00204761C3078B0 +:105BD0002E2816D116F8010F44F004042A280DD0FF +:105BE0006FF02F023078A0F13003092B09D807EBB2 +:105BF000870302EB4303C718761CF3E758F8047BCE +:105C0000761C30786C280FD006DC4C2817D068281A +:105C10000DD06A2814D104E0742810D07A280FD14E +:105C20000DE044F400140AE044F4801401E044F46C +:105C300040147278824202D104F58014761C761CDE +:105C4000307866280BD013DC582877D009DC002880 +:105C500075D04528F6D04628F4D047281AD193E1CC +:105C600018E0632835D0642879D0652812D18BE1FB +:105C7000702873D008DC6728F1D069286FD06E28AF +:105C80000DD06F2806D1ACE073282CD0752874D0C5 +:105C9000782853D05246179990476D1C54E1C4F3AD +:105CA0000250022809D003280DD0D8F8001004288B +:105CB0000DD00D6008F1040846E1D8F80010EA178D +:105CC000C1E90052F6E7D8F800100D80F2E70D7038 +:105CD000F0E718F8041B8DF8001000208DF8010083 +:105CE000EB46012003E058F804BB4FF0FF3061079A +:105CF0004FF0000102D40DE009F101018946B942DB +:105D00000FDA8145F8DB1BF809100029F4D108E00F +:105D100009F1010189468142FADB1BF809100029CB +:105D2000F6D103985346A0EB090721463846179A47 +:105D300000F080FA284400EB090507E044E008E1A0 +:105D40000DE01BF8010B524617999047B9F1010974 +:105D5000F7D2534621463846179AF2E039E00A2135 +:105D6000C4F302524FF0000B0091022A06D058F8FB +:105D7000040BC117032A09D00AE023E008F1070049 +:105D800020F00702F2E80201904605E000B2C117D8 +:105D9000042A01D140B2C117002906DA0A460021BF +:105DA000404261EB02012D2202E0220504D52B22A4 +:105DB0008DF80420012203E0E20701D02022F7E75A +:105DC000914657E00A2100E010214FF0000B0091AE +:105DD0000BE010214FF0000B44F004040827009161 +:105DE00003E008204FF0000B0090C4F30252022A97 +:105DF00005D058F8040B0021032A08D008E008F168 +:105E0000070020F00702F2E80201904603E080B2AA +:105E1000042A00D1C0B24FF0000922072AD53278F7 +:105E2000702A07D0DDF800C08CF0100C5CEA0B0C77 +:105E300005D00EE040228DF80420012208E050EA4F +:105E4000010306D030238DF804308DF8052002229E +:105E50009146009B83F0080353EA0B030AD150EAF2 +:105E6000010201D1620705D530228DF804204FF0E0 +:105E700001097F1E3278582A04D039A20C920CAA4C +:105E800002920BE03BA2F9E75B46009AFAF70AFCA4 +:105E90000C9B9B5C029A521E0292137050EA010204 +:105EA000F2D1029804A9081A00F1200B600702D56C +:105EB00024F4803400E001275F4502DDA7EB0B00EE +:105EC00000E0002000EB0B01009003984944401AC9 +:105ED0000390E00306D453462146179A039800F036 +:105EE000A9F90544002706E001A85246C05D1799AC +:105EF00090476D1C7F1C4F45F6DBE0030CD55346E5 +:105F00002146179A039800F095F9054404E03020E3 +:105F10005246179990476D1C0099481E0090002921 +:105F2000F5DC08E00298029952460078491C02917B +:105F3000179990476D1CBBF10001ABF1010BF1DC2F +:105F40005BE100F065F90544761C307800287FF4A9 +:105F50000DAE19B02846BDE8F08F000009280100F9 +:105F600030313233343536373839616263646566CF +:105F70000000000030313233343536373839414291 +:105F80004344454600000000600700D4062708F19E +:105F9000070020F00700F0E80223804603F0004CE1 +:105FA0005FEA0C0001D097A009E0200501D596A07A +:105FB00005E0E00701D095A001E0AFF24C0013909E +:105FC000307823F0004365280CD006DC452809D042 +:105FD00046281DD047287FD13BE0662818D0672887 +:105FE0007AD136E00021112F01DB112000E0781C6E +:105FF000CDE9000104A90CA8FFF7EEFCDDE90D01D5 +:106000000C9A4FF0000B07F10109109200914EE03D +:106010004FF000400097CDE9011004A90CA8FFF74C +:10602000DBFCDDE90D020C9B0F994FF0000B914654 +:106030001093009211B9791C00EB0109B7EB09002C +:1060400003D4C0F1FF3B07F10109A9EB0700019060 +:1060500042E0012F00DA01270021112F01DD11207C +:1060600000E03846CDE9000104A90CA8FFF7B4FC14 +:10607000DDE90D010C9A00914FF0000BB94610922A +:1060800021070FD4009A4A4503DA914601E0A9F1AD +:106090000109B9F1010F05DD109AA9F10101515C67 +:1060A0003029F4D0B84202DA10F1040F03DA0121EA +:1060B000CDE9011010E0002803DC8344A9EB0001C6 +:1060C00002E0411C494500DD8946A0EB0B00401C65 +:1060D00001904FF000400290200705D401984845F8 +:1060E00002DB4FF0FF30019000208DF84B0002984A +:1060F0000DF14B07B0F1004F25D002200C902B2062 +:106100000D90029800280CDA404202902D200D904C +:1061100007E00A210298FAF7AFFA3031029007F847 +:10612000011D0C99481E0C900029F2DC02980028F1 +:10613000EFD1791E0D980870307800F0200040F003 +:10614000450007F8020D11A8C01BC01D029013984E +:10615000007800B1012000EB0901019801EBE0712A +:10616000029801440398401A401E0390E00306D4AD +:1061700053462146179A039800F05CF8054413989B +:10618000007818B15246179990476D1CE00323D54B +:1061900053462146179A039800F04CF805441BE03B +:1061A000BBF1000F07DB0098584504DD10981799E4 +:1061B00010F80B0001E017993020524690470198E3 +:1061C0000BF1010B401E05F10105019004D12E20B9 +:1061D0005246179990476D1CB9F10001A9F10109C8 +:1061E000DEDC05E017F8010B5246179990476D1C4D +:1061F0000299481E02900029F4DC53462146179A62 +:1062000003989EE62D0000002B00000020000000F7 +:106210002DE9F041044600251E461746880404D4A3 +:1062200005E039462020B0476D1C641EF9D528468C +:10623000BDE8F0812DE9F041044600251E46904658 +:10624000C80301D5302700E02027880404D505E0E5 +:1062500041463846B0476D1C641EF9D52846BDE856 +:10626000F0814A68002A06D00A68531C0B6010703F +:106270004868401E486070472DE9F041040006D090 +:10628000184E306884420AD10020BDE8F0815020C9 +:1062900080F31188BFF34F8FBFF36F8FFEE700F0DD +:1062A000DBFF6569776BB66B00F0F6FFBD4201D08E +:1062B000B54201D10220E8E70B48854208D1A06A27 +:1062C0000028F7D194F858000128F3D00320DCE728 +:1062D00005481438854202D00DB10120D5E70420CD +:1062E000D3E7000018000020CC0A002013B50020DE +:1062F000FAF7BEFD4FF0FF3301226946FCF796FD29 +:1063000000981CBD10B5002821D0114B0022001FA1 +:10631000196803E0814203D80A4649680029F9D187 +:1063200052B11368841A9C4204D10068184410606A +:10633000104602E0506000E0186039B102680B1AA4 +:10634000934203D10B681A4402604968416010BD52 +:10635000F8000020FBF7C4F9FEF7D1FEFDF7F4F9D1 +:10636000FDF7A2F9FDF77CFAFDF79EFAFDF7C0FAFA +:10637000FDF720FBFDF73AFB00F05AF9FDF7CAF9EB +:1063800000F07EF9FEE70000F0B50B30154D20F06F +:1063900007010024144A0FE003688B420BD38B42A1 +:1063A00005D95E1A43184768C3E9006700E04368EF +:1063B000136002C004E0021D10680028ECD12046E2 +:1063C000002802D1286808B10020F0BD064A07481D +:1063D0001060074A121A22F00702C0E900240120C7 +:1063E0002860D7E7FC000020F8000020E4440020EB +:1063F000E04600202DE9F04395B01546002488467C +:106400008146139413AA012128461494FAF786FDB5 +:10641000074614AA02212846FAF780FD06462021E5 +:1064200008A8F9F7F6FE20216846F9F7F2FE57B101 +:10643000139D1F2D00DB1F252A46394608A8F9F7B2 +:10644000F3FE08A8445556B1149D1F2D00DB1F25EF +:106450002A4631466846F9F7E7FE0DF8054030A1B7 +:1064600008A8F9F71AFF304C88B130A108A8F9F74D +:1064700014FF002828D02EA108A8F9F70EFF002845 +:106480004AD02CA108A8F9F708FF30B344E09DF8E2 +:106490000000B0B129A16846F9F7FFFE38B129A183 +:1064A0006846F9F7FAFE20B16B4627A230E00120DA +:1064B00000E0022060706B4628A241464846FFF784 +:1064C00051FA6B462AA223E0A07A1749401DC2B2B6 +:1064D00008312A48FEF7B4FD1EE09DF80000D8B14F +:1064E00010AA27A16846F9F7EDFEBDF840304FF637 +:1064F000FC71981E884203D2A4F88A3021A207E0DA +:1065000026A241464846FFF72DFAB4F88A302CA25D +:1065100041464846FFF726FA15B00020BDE8F08353 +:106520006D6F646500000000404400207478000036 +:10653000727800007278696431000000524655415B +:106540005254000052430000496E76616C69642029 +:106550006D6F64653A2025730D0A00006D6F6465E8 +:106560002073657420746F3A2025730D0A000000B3 +:10657000536574202D3E2025730D0A00B83F00207E +:106580002568780052584944312073657420746F2F +:106590003A203078253034580D0A000052584944CA +:1065A0003120736574206661696C65643A20696E98 +:1065B00076616C69642076616C75650D0A00000077 +:1065C0005258494431206E6F773A20307825303464 +:1065D000580D0A0010B5EFF3058111B16FF00504F5 +:1065E00003E0002408B100F00FFF204610BD38B5CD +:1065F0000546EFF3058010B16FF005040CE00024B0 +:1066000001F0CAFB291A0090002903DD684600F05A +:1066100021FF01E06FF00304204638BDEFF3058051 +:1066200008B101F0BFBB01F0B7BB4FF47A707047FF +:10663000EFF3058010B16FF0050070470448016862 +:1066400011B14FF0FF307047012101600020704709 +:106650006800002010B5EFF3058010B16FF0050061 +:1066600010BD01F08BFB20B1022804D04FF0FF30A9 +:1066700010BD012010BD01F001F8002010BD000088 +:1066800010B5EFF3058010B16FF0050010BD08489C +:106690000168012902D04FF0FF3010BD054A0021EA +:1066A00082F8141D0221016000F0A4FF002010BD3B +:1066B000680000200BE000E070B5EFF3058010B13A +:1066C0006FF0050413E001F059FB4FF0FF3510B1F6 +:1066D00002280BD108E0012401F048FC012806D073 +:1066E00001F04CFB10B102E0002400E02C462046F3 +:1066F00070BDF8B514464FF00005EFF3058212BBEC +:1067000008B301B3A4B1D4E9023263B1502A1AD359 +:106710002269C2B1676900FB01F6B74213D3009545 +:1067200001F071F807E072B9226962B9626952B981 +:10673000002201F047F8050005D00CB1216800E007 +:10674000002100F02BFE2846F8BD01F011BB00002F +:106750002DE9FF414FEA01034FF00005EFF30581FA +:10676000039549BB40B38027182100244AB316681B +:1067700006B1344696691EB13146761E382E02D2D5 +:106780001679F60703D0002004B0BDE8F081566901 +:1067900006B1B708D2F808C0BCF1000F0DD0D5681B +:1067A0005C2D18D312693AB136B18DE806103A461D +:1067B000214601F0B2FA03900DE0D6685EB9126985 +:1067C0004AB903AACDE90012BAB2214601F078FA1B +:1067D000012800D003950398D6E770B50546EFF37E +:1067E000058010B16FF005040FE04DB12846FFF7AA +:1067F00043FD042807D00024284600F071FE04E081 +:106800006FF0030401E06FF00204204670BD000049 +:106810002DE9F041134C0F460546E6682068001D3F +:1068200000F0BEFC681C07D137B12168BDE8F0411B +:106830000D48091D00F004BD20683544B54245608F +:10684000216805D2A06BBDE8F041091D00F0E0BC55 +:10685000606B091D00F0DCFCA06A854200D2A562D5 +:10686000BDE8F08118000020CC0A00202DE9F0419D +:10687000054600F0F1FC2D4CA068401CA06020688B +:106880002B4F10B1606930B32BE02560A068012860 +:1068900027D1002606EB860007EB800000F0AAFC5B +:1068A000761C382EF6D3234800F0A4FC214814307F +:1068B00000F0A0FC1F48283000F09CFC1D483C3034 +:1068C00000F098FC1B48503000F094FC19486063BD +:1068D0001430A06305E02068E96AC06A884200D8E5 +:1068E0002560606A401C60626864E86A21698842C9 +:1068F00000D9206100EB800007EB8000291D00F02B +:106900009FFC00F0C9FC606900280CD02068E96A8F +:10691000C06A884207D208494FF080500860BFF330 +:106920004F8FBFF36F8FBDE8F0810000180000208B +:106930001C0600207C0A002004ED00E038B500F0C1 +:106940008BFC104C2068C8B90F4800F053FC0E486F +:10695000143000F04FFC0C48E060143020610A4B0A +:106960000020F03B009003F1500210210A2000F0BB +:106970004AFF206010B105A100F010FDBDE83840CD +:1069800000F08ABC54000020D00B0020546D7251DE +:106990000000000030B4026C0B46002A0BD0C16826 +:1069A0001144C1608468A14201D30168C16030BC58 +:1069B0001846F9F715BC30BC70472DE9F041856BDE +:1069C000174604460026026C82B1C7B1E068F9F7A9 +:1069D00007FCE168206C091AE1602268914202D24A +:1069E000A168081AE060022F16D017E02068A8B945 +:1069F000A06801F043FA06460020A0600EE060683F +:106A0000F9F7EEFB216C606808446060A168884279 +:106A100004D32068606001E005B16D1E6D1CA563A4 +:106A20003046BDE8F08110B5044690F8590058B1E1 +:106A300001280CD002280FD0502080F31188BFF31A +:106A40004F8FBFF36F8FFEE7206B00F039FC2046BD +:106A5000BDE8104000F034BC10BD000010484FF4F9 +:106A60004061420706D0C01D0D4920F00700411AC1 +:106A7000C1F540610B4A00230144C2E90003083913 +:106A8000183A21F0070111604B600B600B1AC0E946 +:106A9000001393604FF00040536050617047000056 +:106AA000B01200208400002010B5094CA26812B971 +:106AB00004F10C02A260126853680A461946F9F7FD +:106AC000B3FBA0684068A060002800D0012010BD82 +:106AD000D8000020144E154CA6F29C474FF0805869 +:106AE000DFF84C9012E000BF00F0B6FBF068C5681C +:106AF000281D00F055FBA068401EA0606068401E85 +:106B0000606000F0C9FB2846FFF78DFF6068002831 +:106B1000EAD138680128F9D9C9F80080BFF34F8F4E +:106B2000BFF36F8FF2E70000B80A002018000020C2 +:106B300004ED00E070B51D46049C51B1C4F800207E +:106B4000C4E90F010121204600F090FE84F84C506A +:106B500070BD2460F4E700002DE9F05F8846DDE9B0 +:106B60000B941546834691009A460A9EA522206BF7 +:106B7000F9F748FB6FF00301206B01EB8501084436 +:106B800020F00707780707D0502080F31188BFF363 +:106B90004F8FBFF36F8FFEE70025B8F1000F0FD0C6 +:106BA0005FF00000221818F8001082F8341018F86E +:106BB000001011B1401C1028F4D384F8435001E0B8 +:106BC00084F83450382E00D33726E662C4E91365C2 +:106BD000201D00F01AFB04F1180000F016FB2461E0 +:106BE000C6F138006462A061656584F85850524669 +:106BF0005946384600F05AFA2060B9F1000F01D02A +:106C0000C9F80040BDE8F09F30B5114900E01146D9 +:106C10000A688242FBD34B685C18844203D1406807 +:106C200018444860084643681C18944209D1084C2F +:106C3000183C2468A24209D052681A4442600A688B +:106C400012680260814200D0086030BD0460F9E73C +:106C50008400002070B5002441600B4D006191421A +:106C600006D8D11A8269914206D2011D286907E02F +:106C70009A4203D2994201D3012403E0011DE8683E +:106C800000F0C6FA204670BD5400002010B504463E +:106C900000F0E2FAA06B28B15FF0000400F0FCFA0B +:106CA000204610BD0124F9E730B589B03C4D6EE0B7 +:106CB0000498002806DADDE90601059A9047049851 +:106CC000002864DB069C606910B1201D00F068FAA2 +:106CD00003A800F0D7F8024604980A2857D2DFE844 +:106CE00000F00505052D334A05052D3394F82800DD +:106CF00040F0010084F828000599A069059B014433 +:106D00002046FFF7A7FF68B3216A2046884794F81A +:106D1000280040073BD5002000900598A16900237A +:106D200042181946204601F0B3F9D8B9502080F333 +:106D30001188BFF34F8FBFF36F8FFEE714F8280F52 +:106D400020F00100207022E094F8280040F00100BB +:106D500084F828000598A06128B1811813462046C0 +:106D6000FFF778FF13E0502080F31188BFF34F8FB7 +:106D7000BFF36F8FFEE794F82800810703D4204605 +:106D800000F09EFA03E020F0010084F828000022C1 +:106D900004A9286800F0BEFE002889D109B030BDE2 +:106DA000540000202DE9FC410F46054600F066FC2A +:106DB00001A800F067F80446019818B101F0D6F870 +:106DC000BDE8FC81254EAFB130690068D0B3002723 +:106DD000291B3A46306800F0F5FA01F0C7F80028A0 +:106DE000EED11F494FF080500860BFF34F8FBFF3C3 +:106DF0006F8FE5E7A542EBD801F0B8F8F0682746B9 +:106E0000C068C468201D00F0CBF994F82800410741 +:106E100019D5A0692B4641193A462046FFF71AFFBB +:106E2000A8B100200346014600902A46204601F002 +:106E30002FF960B9502080F31188BFF34F8FBFF353 +:106E40006F8FFEE707E020F0010084F82800216A38 +:106E500020468847B4E70127BAE700005400002025 +:106E600004ED00E00648416B096829B1416BC9682F +:106E7000C9684968816270474FF0FF31FAE7000046 +:106E80001800002070B5054600F086FF064E044647 +:106E9000B068844203D200F009F8012000E000202D +:106EA00028602046B46070BD54000020F8B5194D2C +:106EB00020E0C068C4680668201D00F071F9216AEE +:106EC0002046884794F82800400713D5A06930442D +:106ED000B04206D924616060211DE86800F098F98D +:106EE00008E000200346014600903246204601F0AB +:106EF000CFF838B1E86801680029DAD12969C5E915 +:106F00000310F8BD502080F31188BFF34F8FBFF3FB +:106F10006F8FFEE75400002008484068401C4FF087 +:106F2000500080F3118804D0BFF34F8FBFF36F8FF1 +:106F3000FEE7BFF34F8FBFF36F8FFEE78C0000209B +:106F4000074CE068016841B1C0680021D0F800003A +:106F5000FFF728FFFFF7A8FEF3E701210020F7E77E +:106F6000540000202DE9F041044600F075F994F931 +:106F7000455004F1240609E0606A48B1304600F04B +:106F8000BDFF08B100F0FCFA6D1E6DB2002DF3DC00 +:106F90004FF0FF3684F8456000F07EF900F05CF9B0 +:106FA00094F9445004F1100709E0206948B13846CB +:106FB00000F0A4FF08B100F0E3FA6D1E6DB2002DE1 +:106FC000F3DC84F84460BDE8F04100F065B90000EE +:106FD0002DE9F0410546002700F050FB324E3068A5 +:106FE00008B9FFF73BFD706905424ED1C5B30835BE +:106FF00068070ED005F00700C0F1080005446807D7 +:1070000007D0502080F31188BFF34F8FBFF36F8FED +:10701000FEE72DB37068854237D823481830014603 +:107020000C6801E020460C466168A94202D2216842 +:107030000029F7D131688C4227D0076821680160A8 +:1070400060680837411B10290FD96019420708D022 +:10705000502080F31188BFF34F8FBFF36F8FFEE78F +:1070600013E041606560FFF7CFFD61687068401A0A +:107070007060B268904200D2B06070690143002035 +:10708000C4E90001F068401CF06000F06FFF780771 +:1070900007D0502080F31188BFF34F8FBFF36F8F5D +:1070A000FEE73846BDE8F0816C00002010B5031FF4 +:1070B0004FF080741C601B1F21F001011960191F23 +:1070C000024B0B60143940380A6010BD196F00087C +:1070D0002DE9F0439BB0154600248846814619945B +:1070E00019AA012128461A94F9F718FF07461AAA87 +:1070F00002212846F9F712FF0646202111A8F9F7C8 +:1071000088F8402101A8F9F784F857B1199D1F2D7F +:1071100000DB1F252A46394611A8F9F785F811A882 +:10712000445501AF4EB11A9D3F2D00DB3F252A4645 +:1071300031463846F9F778F87C550BA111A8F9F7D4 +:1071400086F850B111AB09A2414648460097FEF7B8 +:1071500009FC1BB00020BDE8F08301AB07A241464B +:107160004846FEF7FFFBF4E753657400476F743A37 +:107170002025732025730D0A00000000536574203C +:107180002D3E2025730D0A0001490020087070472C +:10719000D40000200149002008707047D40000206E +:1071A000D0E9013201699A60D0E901235A604A6846 +:1071B000824201D182684A60002202610868401E52 +:1071C0000860086870470000034B036003F15C002F +:1071D0000860802010607047F80B0020044B0360AB +:1071E00003F15C0008604FF480701060704700008D +:1071F000540E002000F108014FF0FF32C0E90112E7 +:10720000C160016100210160704700210161704788 +:1072100030B50B685A1C02D000F1080202E0026986 +:1072200004E02246546825689D42FAD953684B60B1 +:1072300099608A60516008610168491C016030BD35 +:1072400042684A6093688B609368596091600861F6 +:107250000168491C01607047502080F31188BFF31A +:107260004F8FBFF36F8F0A494868401C4860012860 +:107270000CD10848006810F0FF0F07D0502080F3B1 +:107280001188BFF34F8FBFF36F8FFEE77047000089 +:107290008C00002004ED00E00849486828B1401E39 +:1072A000486001D180F311887047502080F3118825 +:1072B000BFF34F8FBFF36F8FFEE700008C000020FD +:1072C00070B500282AD0164DA0F1080460686969DD +:1072D000084207D1502080F31188BFF34F8FBFF3CE +:1072E0006F8FFEE722683AB1502080F31188BFF318 +:1072F0004F8FBFF36F8FFEE78843606000F0BEF9E9 +:1073000060686968084468602046FFF77DFC28696A +:10731000401C2861BDE8704000F028BE70BD000030 +:107320006C0000204FF0E0200021016181610549DF +:107330004FF47A720968B1FBF2F1491E41610721ED +:10734000016170471400002010B5F8F723FF1149C0 +:1073500010280ED300F1E02090F8F0030A78904254 +:1073600007D2502080F31188BFF34F8FBFF36F8F88 +:10737000FEE709480068896800F4E060884207D9A0 +:10738000502080F31188BFF34F8FBFF36F8FFEE75C +:1073900010BD00008C0000200CED00E010B5084B83 +:1073A000002200BF53F832401CB1521C082AF9D306 +:1073B00010BD43F8321003EBC201486010BD00005D +:1073C000DC05002070B515460E460446FFF744FF65 +:1073D00094F944100020491C01D184F8440094F928 +:1073E0004510491C01D184F84500FFF755FFA06BFB +:1073F00028B92A46314604F1240000F0DFF820467F +:10740000BDE87040FFF7AEBD10B5020014D00F48C4 +:10741000006B38B1502080F31188BFF34F8FBFF35A +:107420006F8FFEE700F02AF900211046FFF7F0F910 +:1074300000F09CFD002807D105494FF080500860FE +:10744000BFF34F8FBFF36F8F10BD000018000020F7 +:1074500004ED00E070B50D4604000BD095B11E4A56 +:10746000106BB8B1502080F31188BFF34F8FBFF37A +:107470006F8FFEE7502080F31188BFF34F8FBFF36B +:107480006F8FFEE7502080F31188BFF34F8FBFF35B +:107490006F8FFEE700F0F2F8D26823685919934223 +:1074A00004D98B420AD9914202D807E08B42FAD91B +:1074B000881A21600021FFF7ABF900E0216000F09D +:1074C00055FD002807D105494FF080500860BFF3F3 +:1074D0004F8FBFF36F8F70BD1800002004ED00E0E8 +:1074E00070B50546FFF7B8FE1E4C05B92568281D86 +:1074F000FFF756FEA86A18B105F11800FFF750FE15 +:10750000606A401C60622068854207D1291D1648C8 +:10751000FFF796FE6068401C606007E0A068401EB0 +:10752000A0602846FFF77FFAFFF79CFCFFF7B4FE48 +:107530006069002814D02068854211D1206B38B1D1 +:10754000502080F31188BFF34F8FBFF36F8FFEE79A +:1075500006494FF080500860BFF34F8FBFF36F8F25 +:1075600070BD000018000020B80A002004ED00E003 +:1075700002490A6A0260C968416070471800002029 +:1075800001490120C86170471800002010B50C4661 +:1075900050B1094909681831FFF73AFE2046BDE8A5 +:1075A00010400121FFF734B9502080F31188BFF358 +:1075B0004F8FBFF36F8FFEE71800002070B51446A1 +:1075C0000D4668B10A4909681831FFF739FE0CB158 +:1075D0004FF0FF3521462846BDE87040FFF718B947 +:1075E000502080F31188BFF34F8FBFF36F8FFEE7FA +:1075F0001800002030B587B00024039405AA04A920 +:1076000003A80494FFF7E0FDDDE903010094CDE950 +:107610000110002315A11748059A00F07EFB164DB6 +:107620000028E8621FD000F003FD012809D0401CAB +:1076300019D1502080F31188BFF34F8FBFF36F8FA4 +:10764000FEE7502080F31188BFF34F8FBFF36F8F99 +:107650004FF0FF30A86201206861EC6007B0BDE820 +:10766000304000F045B807B030BD000049444C45FB +:1076700000000000D56A0008180000200248016BD5 +:10768000491C01637047000018000020164810B51F +:10769000016B11B10121C16110BD0021C1610169FE +:1076A000124A01E0B9B1491E01EB810352F82330BF +:1076B000002BF7D001EB810302EB830202F10804F7 +:1076C00053685B685360A34201D15B685360DA681A +:1076D0000260016110BD502080F31188BFF34F8F0D +:1076E000BFF36F8FFEE70000180000201C0600208B +:1076F0001CB5264908780190FF20087008788DF89D +:1077000000009DF800009DF8002000F0F00090427D +:1077100007D0502080F31188BFF34F8FBFF36F8FD6 +:10772000FEE79DF800001A4C00F050002070072082 +:10773000A06005E09DF8002052008DF80020401E5A +:107740009DF800201206F5D4A060032807D0502031 +:1077500080F31188BFF34F8FBFF36F8FFEE74FF4B5 +:107760004070A060019808700A48016841F47001F7 +:107770000160016841F070410160FFF7D3FD002016 +:107780006060F8F7D1FC00201CBD000000E400E0C0 +:107790008C00002020ED00E010B5502080F311880F +:1077A000BFF34F8FBFF36F8F00F004FB18B1044994 +:1077B0004FF080500860002080F3118810BD000059 +:1077C00004ED00E0F8B517460E46050013D005FBA2 +:1077D00006F05030FFF7FCFB04000AD0002084F8CC +:1077E000460004F150023B46314628460094FFF71C +:1077F000A1F92046F8BD502080F31188BFF34F8FC8 +:10780000BFF36F8FFEE738B5049D18B153B1CAB10D +:1078100081B120E0502080F31188BFF34F8FBFF378 +:107820006F8FFEE7502080F31188BFF34F8FBFF3B7 +:107830006F8FFEE7502080F31188BFF34F8FBFF3A7 +:107840006F8FFEE739B1502080F31188BFF34F8F5F +:10785000BFF36F8FFEE750241C46012384F84630A7 +:107860002B460094FFF766F9204638BD70B50D46EB +:10787000040025D0FFF7F0FCD4E90F20216802FBBB +:107880000011A1600021A163216861600A46D4E96A +:107890000F01401E00FB0121E16021464FF0FF3047 +:1078A00001F8440F487004F110008DB1FFF7A2FCFD +:1078B00004F12400FFF79EFCFFF7EEFC012070BDF1 +:1078C000502080F31188BFF34F8FBFF36F8FFEE717 +:1078D00021690029F0D000F011FB0028ECD0044908 +:1078E0004FF080500860BFF34F8FBFF36F8FE3E717 +:1078F00004ED00E02DE9FF4782B01D468A464FF0B7 +:107900000008040003D0BAF1000F08D011E05020A5 +:1079100080F31188BFF34F8FBFF36F8FFEE7206CAA +:1079200038B1502080F31188BFF34F8FBFF36F8FB2 +:10793000FEE7022D0AD1E06B012807D0502080F32A +:107940001188BFF34F8FBFF36F8FFEE700F016FA79 +:107950003F4F4FF000094FF0805648B9049838B1B6 +:10796000502080F31188BFF34F8FBFF36F8FFEE776 +:10797000FFF772FCA06BE16B884207D3022D05D0A4 +:107980000498D0B1B8F1000F1AD01EE02A46514633 +:107990002046FFF712F8616A19B104F1240000F0E3 +:1079A000ADFA20B13E60BFF34F8FBFF36F8FFFF78B +:1079B00073FC012006B0BDE8F087FFF76DFC22E004 +:1079C0006846FFF7D5FD4FF00108FFF765FCFFF7AC +:1079D00055FEFFF741FC94F94400401C01D184F8A6 +:1079E000449094F94500401C01D184F84590FFF77C +:1079F00053FC04A9684600F029F930B12046FFF78E +:107A0000B1FA00F0B3FA0020D4E7FFF725FCA06B31 +:107A1000E16B884213D1FFF73FFC04F11000049999 +:107A2000FFF7B4FD2046FFF79DFA00F09FFA00280B +:107A30009ED13E60BFF34F8FBFF36F8F98E7FFF784 +:107A40002BFC2046FFF78EFA00F090FA90E700003A +:107A500004ED00E02DE9F0471F46904689460400FA +:107A600003D0B9F1000F08D011E0502080F3118845 +:107A7000BFF34F8FBFF36F8FFEE7206C38B15020FC +:107A800080F31188BFF34F8FBFF36F8FFEE7022F94 +:107A90000AD1E06B012807D0502080F31188BFF392 +:107AA0004F8FBFF36F8FFEE7FFF74EFC5020EFF3D1 +:107AB000118680F31188BFF34F8FBFF36F8FA06BD8 +:107AC000E16B884206D3022F04D0002086F3118890 +:107AD000BDE8F08794F94550A06B3A4649462046E8 +:107AE000FEF76BFF681C04D06D1C84F84550012024 +:107AF000ECE7606A0028FAD004F1240000F0FEF9F7 +:107B00000028F4D0B8F1000FF1D00121C8F800101E +:107B1000EDE700002DE9F747002683B08A46040010 +:107B200003D0BAF1000F08D011E0502080F3118883 +:107B3000BFF34F8FBFF36F8FFEE7206C38B150203B +:107B400080F31188BFF34F8FBFF36F8FFEE700F014 +:107B500015F9DFF8F4804FF000094FF0805748B96D +:107B6000059838B1502080F31188BFF34F8FBFF3D1 +:107B70006F8FFEE7FFF770FBA56BC5B1514620463E +:107B8000FEF708FF6D1EA563206950B104F11000D7 +:107B900000F0B4F928B1C8F80070BFF34F8FBFF3FD +:107BA0006F8FFFF779FB012006B0BDE8F0870598DD +:107BB00008B11EB106E0FFF76FFB27E06846FFF74C +:107BC000D7FC0126FFF768FBFFF758FDFFF744FBE2 +:107BD00094F94400401C01D184F8449094F9450084 +:107BE000401C01D184F84590FFF756FB05A9684673 +:107BF00000F02CF8002820460AD0FFF7B3F900F077 +:107C0000B5F92046FFF742F80028B3D00020CBE7B3 +:107C1000FFF73CF890B104F124000599FFF7B6FC9A +:107C20002046FFF79FF900F0A1F90028A2D1C8F87B +:107C30000070BFF34F8FBFF36F8F9BE72046FFF7B6 +:107C400091F900F093F995E704ED00E02DE9F0419A +:107C50000C46050011D0C4B1FFF7FEFA174BDA68E5 +:107C60006E682068911B471C17D02F681B6A9F42C3 +:107C700019D0964217D8012410E0502080F31188C3 +:107C8000BFF34F8FBFF36F8FFEE7502080F3118853 +:107C9000BFF34F8FBFF36F8FFEE70024FFF7FCFAAF +:107CA0002046BDE8F081884205D9401A2060284668 +:107CB000FFF75EFCF1E700202060DCE71800002001 +:107CC0002DE9FF5F8346DDE90E87994616468A4611 +:107CD0009000FFF77DF905001CD05C20FFF778F9D4 +:107CE000040014D00020256384F85900CDE9024037 +:107CF000CDE900874B46324651465846FEF72CFFE9 +:107D00002046FEF7B3FD012004B0BDE8F09F2846F1 +:107D1000FFF7D6FA4FF0FF30F6E7F0B585B0DDE9B2 +:107D20000B640A9DA6B1DCB15C270097266302268E +:107D300084F85960002604AFCDE90246CDE900572A +:107D4000FEF70AFF2046FEF791FD049805B0F0BD4E +:107D5000502080F31188BFF34F8FBFF36F8FFEE782 +:107D6000502080F31188BFF34F8FBFF36F8FFEE772 +:107D7000014800687047000018000020054841696C +:107D800019B1006B18B10020704701207047022024 +:107D900070470000180000200148C06870470000CC +:107DA0001800002010B5FFF7CFFA0148C06810BDD9 +:107DB000180000202DE9F0412E4C0027206B28B13F +:107DC000A069401CA0613846BDE8F081E668761CD9 +:107DD000E66013D1606B006838B1502080F31188E1 +:107DE000BFF34F8FBFF36F8FFEE7606BA16B6163D3 +:107DF000A063206A401C2062FFF734F8A06ADFF815 +:107E00007880864209D3606B0068A0B1606BC0685F +:107E1000C5686868864211D2A0622068C06A00EB1B +:107E2000800158F82100012800D90127E0690028C5 +:107E3000C9D00127C7E74FF0FF30EDE7281DFFF756 +:107E4000AFF9A86A18B105F11800FFF7A9F9E86AB7 +:107E50002169884200D9206100EB800108EB810094 +:107E6000291DFFF7EDF9E86A2168C96A8842CAD37B +:107E70000127C8E7180000201C06002070B5040088 +:107E80004FF0000133D01B4D2868844207D05020AA +:107E900080F31188BFF34F8FBFF36F8FFEE7206D24 +:107EA00038B1401E2065E36CE26A9A421FD040B1AF +:107EB0001DE0502080F31188BFF34F8FBFF36F8F09 +:107EC000FEE7201DFFF76CF9E06CE062C0F13800BE +:107ED000A061E06A2969884200D92861064900EB5F +:107EE000800001EB8000211DFFF7AAF9012108465F +:107EF00070BD0000180000201C06002070B5C0688E +:107F0000C46854B104F118000646FFF749F9144D4E +:107F1000286B50B13146134815E0502080F311888A +:107F2000BFF34F8FBFF36F8FFEE7201DFFF738F9C8 +:107F3000E06A2969884200D928610B4900EB80007A +:107F400001EB8000211DFFF77BF9E06A2968C96A0F +:107F5000884202D90120E86170BD002070BD000098 +:107F600018000020A40A00201C0600202DE9F0477C +:107F70002C4D00242746286B38B1FFF76DF9286B8C +:107F8000401E2863286B40B146E0502080F31188E2 +:107F9000BFF34F8FBFF36F8FFEE7A968224E01201A +:107FA000D1B3A6F5916980463068E0B1F068C46845 +:107FB00004F11800FFF7F4F8201DFFF7F1F8E06A6C +:107FC0002969884200D9286100EB800109EB810012 +:107FD000211DFFF735F9E06A2968C96A8842E3D3B1 +:107FE000C5F81C80E0E70CB1FEF73CFFAC694CB172 +:107FF0004FEA0806FFF7DEFE00B1EE61641EF9D11C +:108000000020A861E86938B10849012738070860ED +:10801000BFF34F8FBFF36F8FFFF73EF93846BDE8D0 +:10802000F087000018000020A40A002004ED00E002 +:1080300010B586B0FEF782FC114C2068B8B1002064 +:108040000390049005AA04A903A8FFF7C7F8DDE987 +:10805000032102208DE8070000230AA10B48059A9E +:10806000FFF75BFE606010B106B0012010BD50202C +:1080700080F31188BFF34F8FBFF36F8FFEE70000CF +:1080800054000020546D722053766300416F000845 +:108090002DE9FF411E46134602000A9D4FF00000E5 +:1080A00016D0144C2768002F0FD0CDE90013029290 +:1080B000062917DAFFF762FE02284FF000030FD0FF +:1080C000002269462068FFF715FC04B0BDE8F08186 +:1080D000502080F31188BFF34F8FBFF36F8FFEE7FF +:1080E0002A46EEE70023324669463846FFF7B2FCDF +:1080F000EBE7000054000020B8B4000800000000C6 +:10810000000000000000000000000000000200006D +:10811000180000000000000000000000010202033F +:108120000405060708090A0B0C0D0E0F10100000BD +:108130000000000000000102030406070809000017 +:108140000000010203040000000000000000000025 +:1081500000000000000000000008080808080808E7 +:1081600000001818000000486C24120000000000F5 +:108170000000000000000000002424247F121212DE +:108180007F12121200000000081C2A2A0A0C18286C +:10819000282A2A1C080800000022251515152A582F +:1081A0005454542200000000000C1212120A7625CA +:1081B0002911916E00000006060403000000000073 +:1081C0000000000000000040201010080808080807 +:1081D00008101020400000020408081010101010B1 +:1081E0001008080402000000000008086B1C1C6B4B +:1081F00008080000000000000000080808087F08C8 +:108200000808080000000000000000000000000056 +:108210000000060604030000000000000000FE004D +:10822000000000000000000000000000000000004E +:1082300000000606000000008040402020101008CA +:108240000804040202000000001824424242424294 +:10825000424224180000000000080E080808080820 +:108260000808083E00000000003C42424220201066 +:108270000804427E00000000003C424220182040DA +:108280004042221C0000000000203028242422222A +:108290007E20207800000000007E0202021A2640A4 +:1082A0004042221C0000000000382402021A26422C +:1082B0004242241800000000007E2222101008080C +:1082C0000808080800000000003C4242422418242C +:1082D0004242423C000000000018244242426458DE +:1082E0004040241C0000000000000000181800009E +:1082F0000000181800000000000000000008000046 +:1083000000000008080400000040201008040204D7 +:108310000810204000000000000000007F00000066 +:108320007F00000000000000000204081020402030 +:108330001008040200000000003C424246402010A9 +:108340001000181800000000001C225A5555555501 +:108350002D42221C00000000000808181414243CC0 +:10836000224242E700000000001F2222221E224279 +:108370004242221F00000000007C42420101010134 +:108380000142221C00000000001F224242424242E1 +:108390004242221F00000000003F4212121E121231 +:1083A0000242423F00000000003F4212121E121221 +:1083B0000202020700000000003C222201010171BC +:1083C0002122221C0000000000E7424242427E427D +:1083D000424242E700000000003E08080808080882 +:1083E0000808083E00000000007C1010101010105B +:1083F00010101010110F0000007722120A0E0A123E +:10840000122222770000000000070202020202028C +:108410000202427F000000000077363636362A2AF4 +:108420002A2A2A6B0000000000E346464A4A5252BC +:108430005262624700000000001C2241414141415C +:108440004141221C00000000003F424242423E02E5 +:108450000202020700000000001C2241414141418C +:108460004D53321C60000000003F4242423E121257 +:10847000222242C700000000007C42420204182071 +:108480004042423E00000000007F490808080808FA +:108490000808081C0000000000E742424242424235 +:1084A0004242423C0000000000E7424222242414E1 +:1084B0001418080800000000006B49494949555547 +:1084C000362222220000000000E742242418181857 +:1084D000242442E700000000007722221414080838 +:1084E0000808081C00000000007E2120101008046D +:1084F0000442423F000000780808080808080808FD +:10850000080808087800000002020404080808109F +:10851000102020204040001E1010101010101010CD +:10852000101010101E000038440000000000000071 +:10853000000000000000000000000000000000003B +:108540000000000000FF000608000000000000001E +:10855000000000000000000000000000003C427825 +:10856000444242FC0000000000030202021A2642BC +:108570004242261A000000000000000000384402B9 +:10858000020244380000000000604040407844424D +:10859000424264D80000000000000000003C427E1F +:1085A0000202423C0000000000F08808087E080833 +:1085B0000808083E0000000000000000007C2222A5 +:1085C0001C023C42423C000000030202023A4642C6 +:1085D000424242E700000000000C0C00000E0808B8 +:1085E0000808083E0000000000303000003820205D +:1085F00020202020221E0000000302020272120A24 +:108600001612227700000000000E0808080808086B +:108610000808083E0000000000000000007F929261 +:10862000929292B70000000000000000003B46421A +:10863000424242E70000000000000000003C4242CD +:108640004242423C0000000000000000001B2642A5 +:108650004242221E0207000000000000007844424F +:108660004242447840E000000000000000774C04E3 +:108670000404041F0000000000000000007C42020F +:108680003C40423E0000000000000008083E080890 +:1086900008080830000000000000000000634242AB +:1086A000424262DC000000000000000000E74224BB +:1086B00024140808000000000000000000EB4949F5 +:1086C000555522220000000000000000007624180A +:1086D0001818246E000000000000000000E742248B +:1086E000241418080807000000000000007E221073 +:1086F0000808447E000000C02020202020102020F8 +:1087000020202020C0001010101010101010101089 +:1087100010101010101000060808080808100808AB +:108720000808080806000C32C20000000000000023 +:108730000000000000000000000000000000000039 +:108740000000000000000000000000000000000029 +:108750000000000000000000000000000000000019 +:1087600000000000000000000000000000006000A9 +:108770006000600060006000600060004000200059 +:108780002000200000000000000060006000600089 +:1087900000000000000000000000600660063003DA +:1087A0009801880044000000000000000000000064 +:1087B00000000000000000000000000000000000B9 +:1087C0000000000000000000000000000000100297 +:1087D000100210021002FE07FE070802080108013D +:1087E00008010801FE07FE07040104010401040159 +:1087F00000000000000000000000000040004000F9 +:10880000F00158034C03CC034C0058007000E0000A +:10881000C001C00140034C035C034C034801F0005D +:1088200040004000000000000000000000000E01B9 +:108830000A01910091009100510051003A00AE03ED +:10884000A0025004500448044804480484028403ED +:1088500000000000000000000000000000003800E0 +:108860006C006C006C006C006C002C0098071C0104 +:108870001A01330133016301E300C308C6093C0751 +:10888000000000000000000000000C001C001000B0 +:1088900010000800040000000000000000000000BC +:1088A00000000000000000000000000000000000C8 +:1088B00000000000000000000000000400020001B1 +:1088C00080008000400040002000200020002000A8 +:1088D00020002000200040004000800080000001B7 +:1088E0000002000400000000000002000400080074 +:1088F0001000100020002000400040004000400018 +:10890000400040004000200020001000100008003F +:108910000400020000000000000000000000000051 +:1089200000004000C0004000460C4E0FD001F00196 +:108930005E0F460C400040004000000000000000B8 +:108940000000000000000000000000000000000027 +:108950000000000040004000400040004000FE0FCA +:1089600040004000400040004000000000000000C7 +:1089700000000000000000000000000000000000F7 +:1089800000000000000000000000000000000000E7 +:10899000000000000000000000000C001C0010009F +:1089A00010000800040000000000000000000000AB +:1089B0000000000000000000000000000000FE07B2 +:1089C00000000000000000000000000000000000A7 +:1089D0000000000000000000000000000000000097 +:1089E0000000000000000000000000000000000087 +:1089F000000000000000000000001C001C001C0023 +:108A0000000000000000000000000004000600025A +:108A10000003000100018000800040004000600071 +:108A20002000200010001000080008000C000400C6 +:108A3000060002000000000000000000000000002E +:108A4000F00098010C030C0306060606060606064F +:108A500006060606060606060C030C039801F0003F +:108A60000000000000000000000000000000000006 +:108A700040007C00600060006000600060006000FA +:108A80006000600060006000600060006000FC0347 +:108A900000000000000000000000000000000000D6 +:108AA000F8008401020306030603000300018001AD +:108AB000C000600020001000080204020602FE034D +:108AC00000000000000000000000000000000000A6 +:108AD0007800C6008601860180018001C000700018 +:108AE0008001000100030003060306038601F8006D +:108AF0000000000000000000000000000000000076 +:108B000080018001C001A001A001900188018801BD +:108B100084018201FE0F8001800180018001E00755 +:108B20000000000000000000000000000000000045 +:108B3000FC0304000400040004000400F4008C01A1 +:108B40000403000300030603060382018401F80006 +:108B50000000000000000000000000000000000015 +:108B6000E00118030C030C0004000600E6011603E4 +:108B70000E0606060606060604060C021803F0009A +:108B800000000000000000000000000000000000E5 +:108B9000F8070C06040204010001000180008000B7 +:108BA0004000400040006000600060006000600025 +:108BB00000000000000000000000000000000000B5 +:108BC000F8010C030606060606060C021C03F0005C +:108BD000C8010C0306060606060606060C03F0018D +:108BE0000000000000000000000000000000000085 +:108BF000F0000C010C030602060606060606060730 +:108C00008C0678060006000300030C018C01780036 +:108C10000000000000000000000000000000000054 +:108C200000000000000000000000E000E000E000A4 +:108C300000000000000000000000E000E000E00094 +:108C40000000000000000000000000000000000024 +:108C50000000000000000000000060006000000054 +:108C60000000000000000000000000006000600044 +:108C70004000200020000000000000000000000470 +:108C800000020001800040002000100008000400E5 +:108C900008001000200040008000000100020004D5 +:108CA00000000000000000000000000000000000C4 +:108CB00000000000000000000000FE0700000000AF +:108CC0000000FE070000000000000000000000009F +:108CD0000000000000000000000000000000040090 +:108CE0000800100020004000800000010002000485 +:108CF0000002000180004000200010000800040075 +:108D00000000000000000000000000000000000063 +:108D1000E0031806040C040C0C0C0C0C000780017A +:108D200040004000400000000000E000E000E000E3 +:108D30000000000000000000000000000000E00053 +:108D400018030C02CC0564056605A605B604B60436 +:108D5000B604B604B602E4010C040C021803F000D9 +:108D60000000000000000000000000000000000003 +:108D7000600060005000D0009000900088008801E2 +:108D80000801F801040304030402020202060F0FA3 +:108D900000000000000000000000000000000000D3 +:108DA000FE008C030C030C030C030C038C01FC0071 +:108DB0000C030C020C060C060C060C060C03FE0140 +:108DC00000000000000000000000000000000000A3 +:108DD000E00318030C060C04040406000600060059 +:108DE00006000600060006040C040C021803F0003E +:108DF0000000000000000000000000000000000073 +:108E00007F008C010C030C030C060C060C060C06F0 +:108E10000C060C060C060C060C030C038C017F00E0 +:108E20000000000000000000000000000000000042 +:108E3000FF03060306040604060086008600FE0003 +:108E40008600860086000600060406040602FF036C +:108E50000000000000000000000000000000000012 +:108E6000FF03060306040604060086008600FE00D3 +:108E700086008600860006000600060006001F0029 +:108E800000000000000000000000000000000000E2 +:108E9000F00018010C020C02040206000600060095 +:108EA0000600C60F060306030C030C031803F000AC +:108EB00000000000000000000000000000000000B2 +:108EC0000F0F060606060606060606060606FE0737 +:108ED00006060606060606060606060606060F0F20 +:108EE0000000000000000000000000000000000082 +:108EF000FC036000600060006000600060006000D3 +:108F00006000600060006000600060006000FC03C2 +:108F10000000000000000000000000000000000051 +:108F2000F807C000C000C000C000C000C000C00002 +:108F3000C000C000C000C000C000C000C000C00031 +:108F4000C60066003C0000000000000000000000B9 +:108F5000CF038601C60046002600160036002E000C +:108F60006E004600C60086008601060106038F07D4 +:108F700000000000000000000000000000000000F1 +:108F80001F00060006000600060006000600060098 +:108F90000600060006000600060406040602FF039B +:108FA00000000000000000000000000000000000C1 +:108FB0000707860386038E038E034E034E034A0380 +:108FC0005A035A033A033203320332031203870768 +:108FD0000000000000000000000000000000000091 +:108FE0008E0F0C021C021C02340234026402640262 +:108FF0004402C402840284038403040304031F02A2 +:109000000000000000000000000000000000000060 +:10901000F00098010C030C0206060606060606067A +:1090200006060606060606060C020C039801F0006A +:109030000000000000000000000000000000000030 +:10904000FF00060306060606060606060606860353 +:10905000FE000600060006000600060006001F00CF +:109060000000000000000000000000000000000000 +:10907000F00098010C030C0206060606060606061A +:1090800006060606060676064C02CC039801F0009A +:109090008007000300000000000000000000000046 +:1090A000FF01060306060606060606060603FE0080 +:1090B0004600C600860086010603060306060F0E5C +:1090C00000000000000000000000000000000000A0 +:1090D000F8020C030602060206000E003C00F8002F +:1090E000E003800300070206020606060C03F001F7 +:1090F0000000000000000000000000000000000070 +:10910000FE076204610861086000600060006000A2 +:109110006000600060006000600060006000F801B6 +:10912000000000000000000000000000000000003F +:109130001E070C020C020C020C020C020C020C02A8 +:109140000C020C020C020C020C020C021801F000C2 +:10915000000000000000000000000000000000000F +:109160000F070602040104010C010C0188008800AD +:10917000980098005000500070003000200020003F +:1091800000000000000000000000000000000000DF +:10919000F70E620442044604460464026402E402D8 +:1091A000E4029C029C0198019801880188008800D3 +:1091B00000000000000000000000000000000000AF +:1091C0009E070C01080118019000B000600020000B +:1091D00060006000D00090008801080104038E0741 +:1091E000000000000000000000000000000000007F +:1091F0000F0F060404020C0208011801B800B000A9 +:109200007000600060006000600060006000F801B5 +:10921000000000000000000000000000000000004E +:10922000FC070C02060302018001800040004000A0 +:10923000200020001000180008040C040402FE03A3 +:1092400000000000000000000000E00320002000FB +:10925000200020002000200020002000200020000E +:1092600020002000200020002000200020002000FE +:109270002000E003000000000000000000000400E7 +:10928000040008000800100010001000200020005A +:1092900040004000C000800080000001000100028A +:1092A000000200020004000000007C0040004000BA +:1092B00040004000400040004000400040004000AE +:1092C000400040004000400040004000400040009E +:1092D00040007C00000000006000900008010000D9 +:1092E000000000000000000000000000000000007E +:1092F000000000000000000000000000000000006E +:10930000000000000000000000000000000000005D +:10931000000000000000000000000000000000004D +:10932000000000000000000000000000000000003D +:1093300000000000FF0F00000000180060000000A7 +:10934000000000000000000000000000000000001D +:10935000000000000000000000000000000000000D +:1093600000000000000000000000000000000000FD +:1093700000000000000000000000F0010C030C03DE +:109380000003E0031C030E03060306038E0B7C0E92 +:1093900000000000000000000000000000000800C5 +:1093A0000E000C000C000C000C00CC013C031C0651 +:1093B0000C060C060C060C060C060C021C03E40141 +:1093C000000000000000000000000000000000009D +:1093D00000000000000000000000F0008C018C0183 +:1093E000860106000600060006020C020C01F000D1 +:1093F000000000000000000000000000000000026B +:10940000C003000300030003000378038C030C0374 +:109410000603060306030603060304038C0778010C +:10942000000000000000000000000000000000003C +:1094300000000000000000000000E0011803080226 +:109440000C060C06FC070C000C0018041802E001C6 +:10945000000000000000000000000000000000000C +:10946000C0036006300630003000FE0130003000DE +:109470003000300030003000300030003000FC019F +:1094800000000000000000000000000000000000DC +:1094900000000000000000000000F007D8068C016A +:1094A0008C018C019801F8000C00FC00CC03060331 +:1094B00006038E03F8000000000000000000080012 +:1094C0000E000C000C000C000C00EC011C030C0343 +:1094D0000C030C030C030C030C030C030C039E077E +:1094E000000000000000000000000000000000007C +:1094F000600060000000000040007C006000600030 +:109500006000600060006000600060006000FC03BC +:10951000000000000000000000000000000000004B +:10952000C001C001000000000001F00180018001C5 +:109530008001800180018001800180018001800123 +:109540008001CC007C00000000000000000008004A +:109550000E000C000C000C000C008C038C008C0026 +:109560004C006C005C008C008C010C010C039E070D +:1095700000000000000000000000000000004000AB +:109580007C006000600060006000600060006000BF +:109590006000600060006000600060006000FC032C +:1095A00000000000000000000000000000000000BB +:1095B000000000000000000000003707EE0666060D +:1095C0006606660666066606660666066606FF0F99 +:1095D000000000000000000000000000000000008B +:1095E00000000000000000000000EE011C030C035E +:1095F0000C030C030C030C030C030C030C039E075D +:10960000000000000000000000000000000000005A +:1096100000000000000000000000F00098010C03B2 +:10962000060606060606060606060C030C03F000F0 +:10963000000000000000000000000000000000002A +:1096400000000000000000000000EE011C030C06FA +:109650000C060C060C060C060C060C031C03EC0195 +:109660000C000C003E0000000000000000000000A4 +:109670000000000000000000000078028C030C03D2 +:109680000603060306030603060304038C0378039C +:1096900000030003C00700000000000000000000FD +:1096A000000000000000000000009F03580638067C +:1096B0001800180018001800180018001800FF0003 +:1096C000000000000000000000000000000000009A +:1096D00000000000000000000000F0031C030C026A +:1096E0000C023800F000C003040304038C03FC01E7 +:1096F000000000000000000000000000000000006A +:1097000000002000200030003000FE01300030005A +:109710003000300030003000300030023002E00114 +:109720000000000000000000000000000000000039 +:10973000000000000000000008028E030C030C0370 +:109740000C030C030C030C030C030C039C077801A3 +:109750000000000000000000000000000000000009 +:10976000000000000000000000001E070C020801BD +:10977000080118019000B000B000600060002000F7 +:1097800000000000000000000000000000000000D9 +:1097900000000000000000000000F70E6204460414 +:1097A00064026402EC029C0198019801980108008F +:1097B00000000000000000000000000000000000A9 +:1097C00000000000000000000000BC0718011001AC +:1097D000B00060006000E0009000080108039E07F0 +:1097E0000000000000000000000000000000000079 +:1097F000000000000000000000009E0708010801B2 +:10980000080190009000B00060006000600020003F +:10981000200024001C0000000000000000000000E8 +:1098200000000000000000000000FC018401C400F2 +:109830004400600020003000180208020C03FC0104 +:109840000000000000000000000000038000800015 +:1098500080008000800080008000800040002000A8 +:109860004000800080008000800080008000800038 +:109870008000000300004000400040004000400025 +:1098800040004000400040004000400040004000D8 +:1098900040004000400040004000400040004000C8 +:1098A000400040004000000000000C0010001000CC +:1098B00010001000100010001000100020004000E8 +:1098C0002000100010001000100010001000100008 +:1098D00010000C00000000001C002204C2048003E1 +:1098E0000000000000000000000000000000000078 +:1098F0000000000000000000000000000000000068 +:109900000000000000000000000000000000000057 +:109910000000000000000000000000000000000047 +:109920000000000000000000000000000000000037 +:109930000000000000000000000000000000000027 +:109940000000000000000000000000000000000017 +:10995000C001C001C001C001C001C001C001800040 +:1099600080008000800080008000800000000000F7 +:10997000000000008001C003C0038001000000005F +:10998000000000000000000000000000E01CE01CDF +:10999000F01E700E38071803080184000000000054 +:1099A00000000000000000000000000000000000B7 +:1099B00000000000000000000000000000000000A7 +:1099C0000000000000000000000000000000000097 +:1099D000000020102010201020102010FE7FFE7F9D +:1099E0001008100810081008100810081008FE7F52 +:1099F000FE7F0804080408040804080400000000AE +:109A00000000000000000000000000000000000155 +:109A10000001C007601910311831183918393801A0 +:109A20007001E001C0038007000F001D0039003104 +:109A30001C311C310C310C11180DE0070001000124 +:109A40000001000000000000000000000000000015 +:109A500000001C1036186308630C6304630463027F +:109A600063026301361D9C3780228063406340633C +:109A700020632063306310221836081C00000000A9 +:109A800000000000000000000000000000000000D6 +:109A90000000F00098018C018C018C018C018C007D +:109AA000CC007800183E1C083608320863046304B2 +:109AB000C304C303834306438E26781C00000000C2 +:109AC0000000000000000000000000001C003C003E +:109AD0003C003000300010000C00060000000000C8 +:109AE0000000000000000000000000000000000076 +:109AF0000000000000000000000000000000000066 +:109B000000000000000000000000000000400020F5 +:109B100000100008000C000400060003000300030E +:109B2000800180018001800180018001800180012D +:109B300000030003000300060006000C00080010EC +:109B400000200040000000000000000002000400AF +:109B500008001000300020006000C000C000C000FD +:109B600080018001800180018001800180018001ED +:109B7000C000C000C000600060003000100008009D +:109B800004000200000000000000000000000000CF +:109B900000000000000000018003800300011C7130 +:109BA0003C79783DC0070001C007783D3C791C71C5 +:109BB000000180038003800100000000000000001D +:109BC0000000000000000000000000000000000095 +:109BD0000000000000000000000100010001000181 +:109BE000000100010001FC7F0001000100010001F3 +:109BF0000001000100010000000000000000000062 +:109C00000000000000000000000000000000000054 +:109C10000000000000000000000000000000000044 +:109C20000000000000000000000000000000000034 +:109C30000000000000001C003C003C003000300030 +:109C400010000C00060000000000000000000000F2 +:109C50000000000000000000000000000000000004 +:109C6000000000000000FE7F000000000000000077 +:109C700000000000000000000000000000000000E4 +:109C800000000000000000000000000000000000D4 +:109C900000000000000000000000000000000000C4 +:109CA00000000000000000000000000000000000B4 +:109CB0000000000018003C003C00180000000000FC +:109CC00000000000000000000000000000400060F4 +:109CD00000200030001000180008000C00040006EE +:109CE00000020003000180018000C000400060000D +:109CF000200030001000180008000C0004000600CE +:109D00000200000000000000000000000000000051 +:109D10000000C007600C30181830183018200C6094 +:109D20000C600C600C600C600C600C600C600C60D3 +:109D30001820183018303018600CC00700000000E0 +:109D40000000000000000000000000000000000013 +:109D5000000000018001F801800180018001800184 +:109D600080018001800180018001800180018001EB +:109D70008001800180018001C003F81F0000000005 +:109D800000000000000000000000000000000000D3 +:109D90000000E007101C0818043004300C300C30B0 +:109DA000003000180008000400020001800040009C +:109DB0002020102008200430FC1FFC1F00000000A1 +:109DC0000000000000000000000000000000000093 +:109DD0000000E003180E0C0C0C180C180C180018DE +:109DE000000C0006C003000E001800100030003008 +:109DF0000C300C300C100C18180CE00300000000A4 +:109E00000000000000000000000000000000000052 +:109E10000000000C000E000E000F800E800E400EA1 +:109E2000600E200E100E100E080E040E040EFE7FA3 +:109E3000000E000E000E000E000E000EC07F00008F +:109E40000000000000000000000000000000000012 +:109E50000000F03FF03F1000100010000800080064 +:109E6000C807280C181808100030003000300030E7 +:109E70000C300C3004180418080CF003000000002B +:109E800000000000000000000000000000000000D2 +:109E90000000800FC010203010301800180008009B +:109EA0000C008C0F6C183C301C600C600C600C605B +:109EB0000C601860182030306018C00700000000E7 +:109EC0000000000000000000000000000000000092 +:109ED0000000F83FF83F1C100C08040804040004BC +:109EE00000020002000100010001800080008000EB +:109EF000C000C000C000C000C000C00000000000E2 +:109F00000000000000000000000000000000000051 +:109F10000000E007300C18180C300C300C301C30EE +:109F200038187008E007B007180E0C1C0638063009 +:109F30000630063006300C18180CE0030000000054 +:109F40000000000000000000000000000000000011 +:109F50000000E00318040C080C1806100630063048 +:109F60000630063006380C3C1836F0310030001848 +:109F7000001800180C0C0C060C03F0010000000087 +:109F800000000000000000000000000000000000D1 +:109F900000000000000000000000000000000000C1 +:109FA0008001C003C0038001000000000000000029 +:109FB000000000008001C003C00380010000000019 +:109FC0000000000000000000000000000000000091 +:109FD0000000000000000000000000000000000081 +:109FE000C000C000000000000000000000000000F1 +:109FF0000000000000000000C000C00080008000E1 +:10A0000040004000000000000000000000000000D0 +:10A010000020001000080004000600038001C000BA +:10A020006000300018000C00180030006000C00014 +:10A03000800100030006000400080010002000005A +:10A040000000000000000000000000000000000010 +:10A050000000000000000000000000000000000000 +:10A06000FE7F00000000000000000000FE7F0000F6 +:10A0700000000000000000000000000000000000E0 +:10A0800000000000000000000000000000000000D0 +:10A0900004000800100020006000C00080010003E0 +:10A0A0000006000C001800300018000C0006000329 +:10A0B0008001C000600020001000080004000000C3 +:10A0C0000000000000000000000000000000000090 +:10A0D000C0073018083008600C601C601C601C60F1 +:10A0E0000030001C0006000180008000800080001D +:10A0F000000000008001C003C003800100000000D8 +:10A10000000000000000000000000000000000004F +:10A110000000C0076018103018200C2F8C4D864CA2 +:10A12000C64CC64C664C6644664466266626661572 +:10A13000CC1C0C40082018303018C007000000006C +:10A14000000000000000000000000000000000000F +:10A150000001C001C001C0014001600320032003D1 +:10A1600020033006100610061006F80F080C080C25 +:10A17000080C0C0C0418041806181F7C00000000C2 +:10A1800000000000000000000000000000000000CF +:10A190000000FE07181C1838183018301830183016 +:10A1A0001818180CF80718181830182018601860BC +:10A1B00018601860186018301818FE0F00000000B2 +:10A1C000000000000000000000000000000000008F +:10A1D0000000C0276038103018200C400C400400EC +:10A1E000060006000600060006000600060006003F +:10A1F0000C400C400C2018303018C0070000000044 +:10A20000000000000000000000000000000000004E +:10A210000000FE03180E1818183018301830186097 +:10A22000186018601860186018601860186018606E +:10A230001830183018101818180EFE03000000000F +:10A24000000000000000000000000000000000000E +:10A250000000FE3F18301820186018401800180839 +:10A260001808180CF80F180C18081808180018000F +:10A2700018001840184018201830FE3F0000000059 +:10A2800000000000000000000000000000000000CE +:10A290000000FE7F1870184018C0188018001810B1 +:10A2A00018101818F81F181818101810180018008F +:10A2B000180018001800180018007E0000000000A8 +:10A2C000000000000000000000000000000000008E +:10A2D0000000C013701C101018100C200C2004007B +:10A2E0000600060006000600060006FC06300630E2 +:10A2F0000C300C30183018303008C0070000000057 +:10A30000000000000000000000000000000000004D +:10A3100000003F7E0C180C180C180C180C180C18A8 +:10A320000C180C180C18FC1F0C180C180C180C1816 +:10A330000C180C180C180C180C183F7E00000000AC +:10A34000000000000000000000000000000000000D +:10A350000000F81F800180018001800180018001E0 +:10A3600080018001800180018001800180018001E5 +:10A3700080018001800180018001F81F0000000041 +:10A3800000000000000000000000000000000000CD +:10A390000000E07F0006000600060006000600063A +:10A3A000000600060006000600060006000600067D +:10A3B00000060006000600060006000600060E065F +:10A3C0000E038E01FC0000000000000000000000F1 +:10A3D00000007E7C181818081804180618021801C6 +:10A3E00098019801D801B803380318071806180E09 +:10A3F000180C181C1818183018307EFC00000000CB +:10A40000000000000000000000000000000000004C +:10A4100000007E001800180018001800180018002E +:10A42000180018001800180018001800180018006C +:10A4300018001840184018201830FE3F0000000097 +:10A44000000000000000000000000000000000000C +:10A4500000001FF81C381C381C381C3C34343434C1 +:10A460003434343674326432643264326431C43128 +:10A47000C431C431C430C43084309FFC00000000BB +:10A4800000000000000000000000000000000000CC +:10A4900000001F7C1C103C10341034107410641029 +:10A4A000E410C410C4118411841304130417041697 +:10A4B000041E041C041C041C04181F1800000000C7 +:10A4C000000000000000000000000000000000008C +:10A4D0000000C003300C181808100C300C30066057 +:10A4E000066006600660066006600660066006603C +:10A4F0000C200C3008101818300CC00300000000AD +:10A50000000000000000000000000000000000004B +:10A510000000FE0F181818301860186018601860D6 +:10A52000186018301818F80F1800180018001800D4 +:10A53000180018001800180018007E000000000025 +:10A54000000000000000000000000000000000000B +:10A550000000C003300C18180C100C300C200660E2 +:10A5600006600660066006600660066006600660BB +:10A57000E4612C331C321816300EC007004C007CEE +:10A580000038000000000000000000000000000093 +:10A590000000FE07181C1838183018301830183012 +:10A5A0001818180CF8079803180318071806180647 +:10A5B000180E180C180C181C18187E7800000000D3 +:10A5C000000000000000000000000000000000008B +:10A5D0000000E027303818300C200C200C000C0054 +:10A5E00018007800E003800F001E00380070006043 +:10A5F00004600460086018303818C80F00000000BC +:10A60000000000000000000000000000000000004A +:10A610000000FC3F8C2184618241824180018001E5 +:10A620008001800180018001800180018001800122 +:10A6300080018001800180018001E00700000000AE +:10A64000000000000000000000000000000000000A +:10A6500000003F7C0C100C100C100C100C100C1097 +:10A660000C100C100C100C100C100C100C100C100A +:10A670000C100C100C1008083804E0030000000057 +:10A6800000000000000000000000000000000000CA +:10A6900000003EF81820182018203010301030101C +:10A6A0003010600860086008E00CC004C004C004FA +:10A6B000800380038003800300010001000000008C +:10A6C000000000000000000000000000000000008A +:10A6D0000000DFF38661862186218C210C218C23EA +:10A6E0008C138C138C134C1358125816580E380EAA +:10A6F000380E380E300C1004100410040000000056 +:10A700000000000000000000000000000000000049 +:10A7100000007E3E180838083004300470026002E1 +:10A72000E001C001C0018001800340034007200612 +:10A730002006100C100C081808183E7C00000000C1 +:10A740000000000000000000000000000000000009 +:10A7500000007E7C1C10181018083008300C7004A3 +:10A7600060046002C002C002C0018001800180015B +:10A7700080018001800180018001E007000000006D +:10A7800000000000000000000000000000000000C9 +:10A790000000F83F18180818040C040E0006000703 +:10A7A000000380038001C001C000E0006000700071 +:10A7B0003000382018201C100C18FE1F000000006C +:10A7C000000000000000000000000000C03F40004A +:10A7D0004000400040004000400040004000400079 +:10A7E0004000400040004000400040004000400069 +:10A7F0004000400040004000400040004000400059 +:10A80000C03F000000000000000000000000000049 +:10A8100008001800180010003000200060006000E0 +:10A820004000C000800080018001000100030002A0 +:10A83000000600060004000C0008001800180010B4 +:10A84000003000200000000000000000FC030002B7 +:10A8500000020002000200020002000200020002E8 +:10A8600000020002000200020002000200020002D8 +:10A8700000020002000200020002000200020002C8 +:10A88000FC03000000000000000000008007C0067C +:10A890002008101000000000000000000000000070 +:10A8A00000000000000000000000000000000000A8 +:10A8B0000000000000000000000000000000000098 +:10A8C0000000000000000000000000000000000088 +:10A8D0000000000000000000000000000000000078 +:10A8E0000000000000000000000000000000000068 +:10A8F0000000000000000000000000000000000058 +:10A9000000000000FFFF0000000000007800C00011 +:10A910000001000000000000000000000000000036 +:10A920000000000000000000000000000000000027 +:10A930000000000000000000000000000000000017 +:10A940000000000000000000000000000000000007 +:10A9500000000000000000000000000000000000F7 +:10A96000F00318060C0C0C0C000C800F700C1C0C67 +:10A970000C0C060C060C064C0C4FF83800000000BE +:10A9800000000000000000000000000000000000C7 +:10A9900010001E00180018001800180018001800F9 +:10A9A000180FD818383038601860186018601860B0 +:10A9B00018601860182038307818C80700000000A8 +:10A9C0000000000000000000000000000000000087 +:10A9D0000000000000000000000000000000000077 +:10A9E000C007700C181818180C180C000C000C007C +:10A9F0000C000C20182018103008C00700000000C0 +:10AA00000000000000000000000000000000000046 +:10AA10000010001E00180018001800180018001878 +:10AA2000E01B301C181818180C180C180C180C18EF +:10AA30000C180C180818181C307AE00900000000E7 +:10AA40000000000000000000000000000000000006 +:10AA500000000000000000000000000000000000F6 +:10AA6000C007300C181808100C300C30FC3F0C00DC +:10AA70000C000C00182018107018C007000000000F +:10AA800000000000000000000000000000000000C6 +:10AA90000000003E80C380C0C0C0C000C000C00035 +:10AAA000FC1FC000C000C000C000C000C000C0004B +:10AAB000C000C000C000C000C000F80F00000000CF +:10AAC0000000000000000000000000000000000086 +:10AAD0000000000000000000000000000000000076 +:10AAE000C077306C10181818181818181018300C77 +:10AAF000F00718001800F00FF03F08700C600C60B1 +:10AB00000C603838E00F000000000000000000007A +:10AB100010001E0018001800180018001800180077 +:10AB2000980FD818383018301830183018301830BE +:10AB3000183018301830183018307EFC0000000033 +:10AB40000000000000000000000000000000000005 +:10AB5000000080038003800300000000000000016B +:10AB6000F801800180018001800180018001800165 +:10AB700080018001800180018001F81F0000000039 +:10AB800000000000000000000000000000000000C5 +:10AB900000000038003800380000000000000010FD +:10ABA000801F00180018001800180018001800185E +:10ABB00000180018001800180018001800180018D5 +:10ABC000180C1806F0030000000000000000000050 +:10ABD00010001E00180018001800180018001800B7 +:10ABE000183E180C1806180318019801D8013803EC +:10ABF00018071806180C181C18187E7C0000000096 +:10AC00000000000000000000000000000000000044 +:10AC10000001F80180018001800180018001800134 +:10AC2000800180018001800180018001800180011C +:10AC300080018001800180018001F81F0000000078 +:10AC40000000000000000000000000000000000004 +:10AC500000000000000000000000000000000800EC +:10AC6000EE1C9C338C318C318C318C318C318C319D +:10AC70008C318C318C318C318C31DE7B00000000CA +:10AC800000000000000000000000000000000000C4 +:10AC900000000000000000000000000000001000A4 +:10ACA0001E0FD818383018301830183018301830B7 +:10ACB000183018301830183018307EFC00000000B2 +:10ACC0000000000000000000000000000000000084 +:10ACD0000000000000000000000000000000000074 +:10ACE000C007701C103018300C600C600C600C60D9 +:10ACF0000C600C60183018303018C00700000000DD +:10AD00000000000000000000000000000000000043 +:10AD10000000000000000000000000000000100023 +:10AD20009E0F581838301820186018601860186086 +:10AD30001860186018303830781898071800180014 +:10AD4000180018007E000000000000000000000055 +:10AD500000000000000000000000000000000000F3 +:10AD6000C023303C183818300C300C300C300C300C +:10AD70000C300C3008301838303CE03300300030F4 +:10AD80000030003000FC0000000000000000000067 +:10AD90000000000000000000000000000000600053 +:10ADA0007E3C60666061E000E00060006000600082 +:10ADB00060006000600060006000FE0700000000AE +:10ADC0000000000000000000000000000000000083 +:10ADD0000000000000000000000000000000000073 +:10ADE000E02730381830182018007000E003800F7A +:10ADF000001C043004300C301C18EC0F0000000064 +:10AE00000000000000000000000000000000000042 +:10AE1000000000000000800080008000C000E00012 +:10AE2000FC1FC000C000C000C000C000C000C000C7 +:10AE3000C000C000C020C0208011000F0000000032 +:10AE40000000000000000000000000000000000002 +:10AE500000000000000000000000000000001020C2 +:10AE60001E3C183018301830183018301830183090 +:10AE7000183018301830183830F4E0130000000093 +:10AE800000000000000000000000000000000000C2 +:10AE900000000000000000000000000000000000B2 +:10AEA0007E3C18181808380830043004700260021C +:10AEB0006002E001C001C001C0008000000000008D +:10AEC0000000000000000000000000000000000082 +:10AED0000000000000000000000000000000000072 +:10AEE000DFF78E630C238C238C239813981358164A +:10AEF0005816700E700E700E200420040000000022 +:10AF00000000000000000000000000000000000041 +:10AF10000000000000000000000000000000000031 +:10AF2000FC3E70087004E004C002C001800380038E +:10AF300040076006200C100C18183E7E0000000030 +:10AF40000000000000000000000000000000000001 +:10AF500000000000000000000000000000000000F1 +:10AF60007E7C18181808300830083004600460042B +:10AF7000C002C002C0028001800180018000800008 +:10AF800080004C003C0000000000000000000000B9 +:10AF900000000000000000000000000000000000B1 +:10AFA000FC1F0C0C040E0406000380038001C0008B +:10AFB000E0007020302038301C18FC1F000000001A +:10AFC0000000000000000000000000000030000849 +:10AFD0000004000400040004000400040004000451 +:10AFE00000040004000280010002000400040004C8 +:10AFF0000004000400040004000400040004000431 +:10B000000008003000000001000100010001000103 +:10B010000001000100010001000100010001000128 +:10B020000001000100010001000100010001000118 +:10B030000001000100010001000100010001000108 +:10B040000001000100010000000000000C001000E1 +:10B0500020002000200020002000200020002000F0 +:10B06000200020004000800140002000200020003F +:10B0700020002000200020002000200020002000D0 +:10B0800010000C00000000003800C400864002617F +:10B090000022001C00000000000000000000000072 +:10B0A00000000000000000000000000000000000A0 +:10B0B0000000000000000000000000000000000090 +:10B0C0000000000000000000000000000000000080 +:10B0D0000000000000000000000000000000000070 +:10B0E0000000000000000000000000000000000060 +:10B0F0000000000000000000000000000000000050 +:10B10000000000000000000000000000000000003F +:10B11000000000000000000000000000000000002F +:10B12000000000000000000000000000000000001F +:10B13000000000000000000000000000000000000F +:10B140000000000000000001F80000FFC000000740 +:10B15000FC0001FFE000000FFF0007FFF000001FF0 +:10B16000FF800FFFF000003FFFC01FFFF800003F0F +:10B17000FFE07FFFF800003FFFF0FFFFF800003F17 +:10B18000FFFBFFFFF800003FFFFFFFFFF800003F5D +:10B19000FFFFFFFFF800003FFFFFFF9FF800003FA9 +:10B1A000FFFFFF0FF800003FF3FFFC0FF800003F28 +:10B1B000F1FFF80FF800003FF0FFE00FF800003F4C +:10B1C000F07F800FF800003FF01E000FF800003FF6 +:10B1D000F008000FF800003FF000000FF800003FFB +:10B1E000F000000FF800003FF0000E0FF800003FE5 +:10B1F000F0001E0FF800003FE0007E0FF800003F57 +:10B20000E000FE0FF800003FE001FE0FF800003FF5 +:10B21000E003FE0FF800003FE007FE0FF800003FDC +:10B22000E007FE0FF800003FE003FE0FF800003FCC +:10B23000E001FE0FF800003FE000FE0FF800003FC5 +:10B24000E0007E0FF8000000000000000000000099 +:10B2500000000000000000000000000000000000EE +:10B2600000000000000000000000000000000000DE +:10B2700000000000000000000000000000000000CE +:10B2800000000000000000000000000000000000BE +:10B2900000000000000000000000000000000000AE +:10B2A000000000000000000000000000000000009E +:10B2B000000000000000000000000000000000008E +:10B2C00000000000000000000200E8030200FFFF91 +:10B2D000020010270200FFFFCE01208D01204C014B +:10B2E00020C03407A03404B00A0380180680180177 +:10B2F000601801500A04500A01EF0120CE01208D90 +:10B3000001204C0120EB0010AA0010690010690414 +:10B3100010000000000000007D44000831430008D8 +:10B3200079410008C9430008454200082D4400083F +:10B3300021440008C1420008B142000881430008CE +:10B34000D941000891410008B73D00083149000883 +:10B35000194A0008D94800086D470008014800084C +:10B360004149000869460008114B000801470008E0 +:10B370003D4A000875490008E5400008ED45000811 +:10B3800001490008514700080D490008B93E00086E +:10B39000E149000839470008CD4A0008A5490008DE +:10B3A00081460008074B0008FD4A0008D940000804 +:10B3B0009946000831410008C53E00080D410008CB +:10B3C000693E00089F3D0008613D0008D54900081E +:10B3D0000D460008FF4500085D470008F5480008D5 +:10B3E000A94A0008D9460008274600085D4600081B +:10B3F000B1460008294B0008D13D0008F4B400080C +:10B40000C4B40008A96A000800000000020000108F +:10B4100014B60008A4B50008F5630008FF0000009A +:10B420001CB60008CCB50008D1700008FF00000071 +:10B4300024B600080000000000000000000000002A +:10B4400000000000000400003000000000000000C8 +:10B45000000000001CB60008000000000000000012 +:10B4600000000000000000000004000018000000C0 +:10B470000000000000000000DDDDDDDDDCBBBBDD29 +:10B48000DDDDDDDDDDDDDDDD988888888888888884 +:10B4900077777777778888888555555666666666A4 +:10B4A0006666666666688888833333322222222283 +:10B4B000222222222228888D64656661756C74546C +:10B4C00061736B000D0A68656C703A0D0A204C6957 +:10B4D00073747320616C6C20746865207265676991 +:10B4E00073746572656420636F6D6D616E64730D56 +:10B4F0000A0D0A0068656C7000000000496E636FF9 +:10B50000727265637420636F6D6D616E642070612B +:10B5100072616D657465722873292E2020456E74E2 +:10B520006572202268656C702220746F20766965D0 +:10B53000772061206C697374206F66206176616981 +:10B540006C61626C6520636F6D6D616E64732E0D4E +:10B550000A0D0A00436F6D6D616E64206E6F74207A +:10B560007265636F676E697365642E2020456E7423 +:10B570006572202768656C702720746F2076696576 +:10B58000772061206C697374206F66206176616931 +:10B590006C61626C6520636F6D6D616E64732E0DFE +:10B5A0000A0D0A006D723136203C6D6F64657C5463 +:10B5B000587C52587C72786964317C727869643244 +:10B5C0007C72786964333E0D0A0000007261646920 +:10B5D0006F203C6D6F64657C6D6F64756C61746920 +:10B5E0006F6E7C7061636B65747C6261756472619F +:10B5F00074657C706F7765727C72616D7074696D53 +:10B60000657C7266667265717C74787C72783E0DBA +:10B610000A0000006D72313600000000726164693A +:10B620006F0000005461736B5F496E697400000025 +:10B6300050B600080000002000010000B8590008C2 +:10B6400050B7000800010020E0490000C859000878 +:10B6500000000000000000000100000010000000D9 +:10B660000000000000127A0000000000000000004E +:10B6700000000000000000000000000000000000CA +:10B6800000000000000000000000000000000000BA +:10B6900000000000000000000000000000000000AA +:10B6A000000000000000000000000000000000009A +:10B6B000000000000000000000000000000000008A +:10B6C000000000000000000000000000000000007A +:10B6D000000000000000000000000000000000006A +:10B6E000AAAAAAAA00000000000000000000024070 +:10B6F00001400000653A0008293A000800000000F7 +:10B7000000000000793A0008513A00083D3A00086C +:10B710000000000000000000000000008D44000850 +:10B720000000000000000000E40000200000000015 +:10B7300000000000FCB30008000000000000000052 +:10B7400000000000000000000000000000000000F9 :04000005080000ED02 :00000001FF diff --git a/MDK-ARM/MR16/MR16.htm b/MDK-ARM/MR16/MR16.htm index a99da4f..5ee7210 100644 --- a/MDK-ARM/MR16/MR16.htm +++ b/MDK-ARM/MR16/MR16.htm @@ -3,11 +3,11 @@ Static Call Graph - [MR16\MR16.axf]

Static Call Graph for image MR16\MR16.axf


-

#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Sun Nov 30 21:18:49 2025 +

#<CALLGRAPH># ARM Linker, 5060960: Last Updated: Wed Dec 03 22:47:37 2025

-

Maximum Stack Usage = 224 bytes + Unknown(Cycles, Untraceable Function Pointers)

+

Maximum Stack Usage = 504 bytes + Unknown(Cycles, Untraceable Function Pointers)

Call chain for Maximum Stack Depth:

-SX1281GetPayload ⇒ SX1281GetRxBufferStatus ⇒ SX1281HalReadRegister ⇒ SX1281HalReadRegisters ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +Task_radio ⇒ MR16_Init ⇒ LCD_DrawString ⇒ LCD_DrawChar ⇒ LCD_DrawPoint ⇒ LCD_SetAddressWindow ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout

Mutually Recursive functions @@ -16,8 +16,8 @@ Mutually Recursive functions
  • HardFault_Handler   ⇒   HardFault_Handler
  • MemManage_Handler   ⇒   MemManage_Handler
  • NMI_Handler   ⇒   NMI_Handler
    -
  • UART_EndRxTransfer   ⇒   UART_EndRxTransfer
    -
  • UART_EndTxTransfer   ⇒   UART_EndTxTransfer
    +
  • UART_EndRxTransfer   ⇒   UART_EndRxTransfer
    +
  • UART_EndTxTransfer   ⇒   UART_EndTxTransfer
  • UsageFault_Handler   ⇒   UsageFault_Handler

    @@ -51,86 +51,87 @@ Function Pointers

  • I2C2_EV_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • MemManage_Handler from stm32f1xx_it.o(i.MemManage_Handler) referenced from startup_stm32f103xb.o(RESET)
  • NMI_Handler from stm32f1xx_it.o(i.NMI_Handler) referenced from startup_stm32f103xb.o(RESET) -
  • OnRxDone from sx1281.o(i.OnRxDone) referenced from sx1281.o(.data) -
  • OnRxError from sx1281.o(i.OnRxError) referenced from sx1281.o(.data) -
  • OnRxTimeout from sx1281.o(i.OnRxTimeout) referenced from sx1281.o(.data) -
  • OnTxDone from sx1281.o(i.OnTxDone) referenced from sx1281.o(.data) -
  • OnTxTimeout from sx1281.o(i.OnTxTimeout) referenced from sx1281.o(.data) +
  • OnRxDone from sx1281.o(i.OnRxDone) referenced from sx1281.o(.data) +
  • OnRxError from sx1281.o(i.OnRxError) referenced from sx1281.o(.data) +
  • OnRxTimeout from sx1281.o(i.OnRxTimeout) referenced from sx1281.o(.data) +
  • OnTxDone from sx1281.o(i.OnTxDone) referenced from sx1281.o(.data) +
  • OnTxTimeout from sx1281.o(i.OnTxTimeout) referenced from sx1281.o(.data)
  • PVD_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET) -
  • PendSV_Handler from stm32f1xx_it.o(i.PendSV_Handler) referenced from startup_stm32f103xb.o(RESET) +
  • PendSV_Handler from port.o(.emb_text) referenced from startup_stm32f103xb.o(RESET)
  • RCC_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • RTC_Alarm_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • RTC_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • Reset_Handler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • SPI1_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • SPI2_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET) -
  • SPI_DMAError from stm32f1xx_hal_spi.o(i.SPI_DMAError) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) -
  • SPI_DMAError from stm32f1xx_hal_spi.o(i.SPI_DMAError) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) -
  • SPI_DMAHalfReceiveCplt from stm32f1xx_hal_spi.o(i.SPI_DMAHalfReceiveCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) -
  • SPI_DMAHalfTransmitCplt from stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) -
  • SPI_DMAHalfTransmitReceiveCplt from stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitReceiveCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) -
  • SPI_DMAReceiveCplt from stm32f1xx_hal_spi.o(i.SPI_DMAReceiveCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) -
  • SPI_DMATransmitCplt from stm32f1xx_hal_spi.o(i.SPI_DMATransmitCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) -
  • SPI_DMATransmitReceiveCplt from stm32f1xx_hal_spi.o(i.SPI_DMATransmitReceiveCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) -
  • SVC_Handler from stm32f1xx_it.o(i.SVC_Handler) referenced from startup_stm32f103xb.o(RESET) -
  • SX1281Calibrate from sx1281_driver.o(i.SX1281Calibrate) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281ClearIrqStatus from sx1281_driver.o(i.SX1281ClearIrqStatus) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetFirmwareVersion from sx1281_driver.o(i.SX1281GetFirmwareVersion) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetFrequencyError from sx1281_driver.o(i.SX1281GetFrequencyError) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetIrqStatus from sx1281_driver.o(i.SX1281GetIrqStatus) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetOpMode from sx1281_driver.o(i.SX1281GetOpMode) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetPacketStatus from sx1281_driver.o(i.SX1281GetPacketStatus) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetPacketType from sx1281_driver.o(i.SX1281GetPacketType) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetPayload from sx1281_driver.o(i.SX1281GetPayload) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetRssiInst from sx1281_driver.o(i.SX1281GetRssiInst) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetRxBufferStatus from sx1281_driver.o(i.SX1281GetRxBufferStatus) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281GetStatus from sx1281_driver.o(i.SX1281GetStatus) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalGetDioStatus from sx1281_driver_hal.o(i.SX1281HalGetDioStatus) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalReadBuffer from sx1281_driver_hal.o(i.SX1281HalReadBuffer) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalReadCommand from sx1281_driver_hal.o(i.SX1281HalReadCommand) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalReadRegister from sx1281_driver_hal.o(i.SX1281HalReadRegister) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalReadRegisters from sx1281_driver_hal.o(i.SX1281HalReadRegisters) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalReset from sx1281_driver_hal.o(i.SX1281HalReset) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalWriteBuffer from sx1281_driver_hal.o(i.SX1281HalWriteBuffer) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalWriteCommand from sx1281_driver_hal.o(i.SX1281HalWriteCommand) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalWriteRegister from sx1281_driver_hal.o(i.SX1281HalWriteRegister) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281HalWriteRegisters from sx1281_driver_hal.o(i.SX1281HalWriteRegisters) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281Init from sx1281_driver.o(i.SX1281Init) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281OnDioIrq from sx1281_driver.o(i.SX1281OnDioIrq) referenced from sx1281_driver.o(.data) -
  • SX1281SendPayload from sx1281_driver.o(i.SX1281SendPayload) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetAutoFS from sx1281_driver.o(i.SX1281SetAutoFS) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetAutoTx from sx1281_driver.o(i.SX1281SetAutoTx) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetBleAccessAddress from sx1281_driver.o(i.SX1281SetBleAccessAddress) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetBleAdvertizerAccessAddress from sx1281_driver.o(i.SX1281SetBleAdvertizerAccessAddress) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetBufferBaseAddresses from sx1281_driver.o(i.SX1281SetBufferBaseAddresses) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetCad from sx1281_driver.o(i.SX1281SetCad) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetCadParams from sx1281_driver.o(i.SX1281SetCadParams) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetCrcPolynomial from sx1281_driver.o(i.SX1281SetCrcPolynomial) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetCrcSeed from sx1281_driver.o(i.SX1281SetCrcSeed) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetDioIrqParams from sx1281_driver.o(i.SX1281SetDioIrqParams) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetFs from sx1281_driver.o(i.SX1281SetFs) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetInterruptMode from sx1281_driver.o(i.SX1281SetInterruptMode) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetLongPreamble from sx1281_driver.o(i.SX1281SetLongPreamble) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetModulationParams from sx1281_driver.o(i.SX1281SetModulationParams) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetPacketParams from sx1281_driver.o(i.SX1281SetPacketParams) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetPacketType from sx1281_driver.o(i.SX1281SetPacketType) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetPayload from sx1281_driver.o(i.SX1281SetPayload) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetPollingMode from sx1281_driver.o(i.SX1281SetPollingMode) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetRegistersDefault from sx1281_driver.o(i.SX1281SetRegistersDefault) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetRegulatorMode from sx1281_driver.o(i.SX1281SetRegulatorMode) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetRfFrequency from sx1281_driver.o(i.SX1281SetRfFrequency) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetRx from sx1281_driver.o(i.SX1281SetRx) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetRxDutyCycle from sx1281_driver.o(i.SX1281SetRxDutyCycle) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetSaveContext from sx1281_driver.o(i.SX1281SetSaveContext) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetSleep from sx1281_driver.o(i.SX1281SetSleep) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetStandby from sx1281_driver.o(i.SX1281SetStandby) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetSyncWord from sx1281_driver.o(i.SX1281SetSyncWord) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetSyncWordErrorTolerance from sx1281_driver.o(i.SX1281SetSyncWordErrorTolerance) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetTx from sx1281_driver.o(i.SX1281SetTx) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetTxContinuousPreamble from sx1281_driver.o(i.SX1281SetTxContinuousPreamble) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetTxContinuousWave from sx1281_driver.o(i.SX1281SetTxContinuousWave) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetTxParams from sx1281_driver.o(i.SX1281SetTxParams) referenced from sx1281_driver_hal.o(.constdata) -
  • SX1281SetWhiteningSeed from sx1281_driver.o(i.SX1281SetWhiteningSeed) referenced from sx1281_driver_hal.o(.constdata) +
  • SPI_DMAError from stm32f1xx_hal_spi.o(i.SPI_DMAError) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) +
  • SPI_DMAError from stm32f1xx_hal_spi.o(i.SPI_DMAError) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) +
  • SPI_DMAHalfReceiveCplt from stm32f1xx_hal_spi.o(i.SPI_DMAHalfReceiveCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) +
  • SPI_DMAHalfTransmitCplt from stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) +
  • SPI_DMAHalfTransmitReceiveCplt from stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitReceiveCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) +
  • SPI_DMAReceiveCplt from stm32f1xx_hal_spi.o(i.SPI_DMAReceiveCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) +
  • SPI_DMATransmitCplt from stm32f1xx_hal_spi.o(i.SPI_DMATransmitCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) +
  • SPI_DMATransmitReceiveCplt from stm32f1xx_hal_spi.o(i.SPI_DMATransmitReceiveCplt) referenced from stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) +
  • SVC_Handler from port.o(.emb_text) referenced from startup_stm32f103xb.o(RESET) +
  • SX1281Calibrate from sx1281_driver.o(i.SX1281Calibrate) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281ClearIrqStatus from sx1281_driver.o(i.SX1281ClearIrqStatus) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetFirmwareVersion from sx1281_driver.o(i.SX1281GetFirmwareVersion) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetFrequencyError from sx1281_driver.o(i.SX1281GetFrequencyError) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetIrqStatus from sx1281_driver.o(i.SX1281GetIrqStatus) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetOpMode from sx1281_driver.o(i.SX1281GetOpMode) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetPacketStatus from sx1281_driver.o(i.SX1281GetPacketStatus) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetPacketType from sx1281_driver.o(i.SX1281GetPacketType) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetPayload from sx1281_driver.o(i.SX1281GetPayload) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetRssiInst from sx1281_driver.o(i.SX1281GetRssiInst) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetRxBufferStatus from sx1281_driver.o(i.SX1281GetRxBufferStatus) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281GetStatus from sx1281_driver.o(i.SX1281GetStatus) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalGetDioStatus from sx1281_driver_hal.o(i.SX1281HalGetDioStatus) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalReadBuffer from sx1281_driver_hal.o(i.SX1281HalReadBuffer) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalReadCommand from sx1281_driver_hal.o(i.SX1281HalReadCommand) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalReadRegister from sx1281_driver_hal.o(i.SX1281HalReadRegister) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalReadRegisters from sx1281_driver_hal.o(i.SX1281HalReadRegisters) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalReset from sx1281_driver_hal.o(i.SX1281HalReset) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalWriteBuffer from sx1281_driver_hal.o(i.SX1281HalWriteBuffer) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalWriteCommand from sx1281_driver_hal.o(i.SX1281HalWriteCommand) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalWriteRegister from sx1281_driver_hal.o(i.SX1281HalWriteRegister) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281HalWriteRegisters from sx1281_driver_hal.o(i.SX1281HalWriteRegisters) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281Init from sx1281_driver.o(i.SX1281Init) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281OnDioIrq from sx1281_driver.o(i.SX1281OnDioIrq) referenced from sx1281_driver.o(.data) +
  • SX1281SendPayload from sx1281_driver.o(i.SX1281SendPayload) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetAutoFS from sx1281_driver.o(i.SX1281SetAutoFS) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetAutoTx from sx1281_driver.o(i.SX1281SetAutoTx) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetBleAccessAddress from sx1281_driver.o(i.SX1281SetBleAccessAddress) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetBleAdvertizerAccessAddress from sx1281_driver.o(i.SX1281SetBleAdvertizerAccessAddress) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetBufferBaseAddresses from sx1281_driver.o(i.SX1281SetBufferBaseAddresses) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetCad from sx1281_driver.o(i.SX1281SetCad) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetCadParams from sx1281_driver.o(i.SX1281SetCadParams) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetCrcPolynomial from sx1281_driver.o(i.SX1281SetCrcPolynomial) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetCrcSeed from sx1281_driver.o(i.SX1281SetCrcSeed) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetDioIrqParams from sx1281_driver.o(i.SX1281SetDioIrqParams) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetFs from sx1281_driver.o(i.SX1281SetFs) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetInterruptMode from sx1281_driver.o(i.SX1281SetInterruptMode) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetLongPreamble from sx1281_driver.o(i.SX1281SetLongPreamble) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetModulationParams from sx1281_driver.o(i.SX1281SetModulationParams) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetPacketParams from sx1281_driver.o(i.SX1281SetPacketParams) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetPacketType from sx1281_driver.o(i.SX1281SetPacketType) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetPayload from sx1281_driver.o(i.SX1281SetPayload) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetPollingMode from sx1281_driver.o(i.SX1281SetPollingMode) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetRegistersDefault from sx1281_driver.o(i.SX1281SetRegistersDefault) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetRegulatorMode from sx1281_driver.o(i.SX1281SetRegulatorMode) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetRfFrequency from sx1281_driver.o(i.SX1281SetRfFrequency) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetRx from sx1281_driver.o(i.SX1281SetRx) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetRxDutyCycle from sx1281_driver.o(i.SX1281SetRxDutyCycle) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetSaveContext from sx1281_driver.o(i.SX1281SetSaveContext) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetSleep from sx1281_driver.o(i.SX1281SetSleep) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetStandby from sx1281_driver.o(i.SX1281SetStandby) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetSyncWord from sx1281_driver.o(i.SX1281SetSyncWord) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetSyncWordErrorTolerance from sx1281_driver.o(i.SX1281SetSyncWordErrorTolerance) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetTx from sx1281_driver.o(i.SX1281SetTx) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetTxContinuousPreamble from sx1281_driver.o(i.SX1281SetTxContinuousPreamble) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetTxContinuousWave from sx1281_driver.o(i.SX1281SetTxContinuousWave) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetTxParams from sx1281_driver.o(i.SX1281SetTxParams) referenced from sx1281_driver_hal.o(.constdata) +
  • SX1281SetWhiteningSeed from sx1281_driver.o(i.SX1281SetWhiteningSeed) referenced from sx1281_driver_hal.o(.constdata) +
  • StartDefaultTask from freertos.o(i.StartDefaultTask) referenced from freertos.o(i.MX_FREERTOS_Init)
  • SysTick_Handler from stm32f1xx_it.o(i.SysTick_Handler) referenced from startup_stm32f103xb.o(RESET)
  • SystemInit from system_stm32f1xx.o(i.SystemInit) referenced from startup_stm32f103xb.o(.text)
  • TAMPER_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET) @@ -141,10 +142,12 @@ Function Pointers
  • TIM2_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • TIM3_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • TIM4_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET) -
  • UART_DMAAbortOnError from stm32f1xx_hal_uart.o(i.UART_DMAAbortOnError) referenced from stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler) -
  • UART_DMAError from stm32f1xx_hal_uart.o(i.UART_DMAError) referenced from stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA) -
  • UART_DMAReceiveCplt from stm32f1xx_hal_uart.o(i.UART_DMAReceiveCplt) referenced from stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA) -
  • UART_DMARxHalfCplt from stm32f1xx_hal_uart.o(i.UART_DMARxHalfCplt) referenced from stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA) +
  • Task_Init from init.o(i.Task_Init) referenced from freertos.o(i.MX_FREERTOS_Init) +
  • Task_radio from radio.o(i.Task_radio) referenced from init.o(i.Task_Init) +
  • UART_DMAAbortOnError from stm32f1xx_hal_uart.o(i.UART_DMAAbortOnError) referenced from stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler) +
  • UART_DMAError from stm32f1xx_hal_uart.o(i.UART_DMAError) referenced from stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA) +
  • UART_DMAReceiveCplt from stm32f1xx_hal_uart.o(i.UART_DMAReceiveCplt) referenced from stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA) +
  • UART_DMARxHalfCplt from stm32f1xx_hal_uart.o(i.UART_DMARxHalfCplt) referenced from stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA)
  • USART1_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • USART2_IRQHandler from stm32f1xx_it.o(i.USART2_IRQHandler) referenced from startup_stm32f103xb.o(RESET)
  • USART3_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET) @@ -154,10 +157,21 @@ Function Pointers
  • UsageFault_Handler from stm32f1xx_it.o(i.UsageFault_Handler) referenced from startup_stm32f103xb.o(RESET)
  • WWDG_IRQHandler from startup_stm32f103xb.o(.text) referenced from startup_stm32f103xb.o(RESET)
  • __main from entry.o(.ARM.Collect$$$$00000000) referenced from startup_stm32f103xb.o(.text) -
  • fputc from sx1281_header.o(i.fputc) referenced from printfa.o(i.__0printf) +
  • _sbackspace from _sgetc.o(.text) referenced from __0sscanf.o(.text) +
  • _scanf_char_input from scanf_char.o(.text) referenced from scanf_char.o(.text) +
  • _sgetc from _sgetc.o(.text) referenced from __0sscanf.o(.text) +
  • _snputc from printfa.o(i._snputc) referenced from printfa.o(i.__0snprintf) +
  • fputc from sx1281_header.o(i.fputc) referenced from printfa.o(i.__0printf) +
  • isspace from isspace_c.o(.text) referenced from scanf_char.o(.text)
  • main from main.o(i.main) referenced from entry9a.o(.ARM.Collect$$$$0000000B) -
  • tx_cplt_cb from sx1281_driver_spi.o(i.tx_cplt_cb) referenced from sx1281_driver_spi.o(i.SpiInit) -
  • txrx_cplt_cb from sx1281_driver_spi.o(i.txrx_cplt_cb) referenced from sx1281_driver_spi.o(i.SpiInit) +
  • mr16CommandHandler from mr16.o(i.mr16CommandHandler) referenced from mr16.o(.constdata) +
  • prvHelpCommand from freertos_cli.o(i.prvHelpCommand) referenced from freertos_cli.o(.constdata) +
  • prvIdleTask from tasks.o(i.prvIdleTask) referenced from tasks.o(i.vTaskStartScheduler) +
  • prvTaskExitError from port.o(i.prvTaskExitError) referenced from port.o(i.pxPortInitialiseStack) +
  • prvTimerTask from timers.o(i.prvTimerTask) referenced from timers.o(i.xTimerCreateTimerTask) +
  • radioCommandHandler from mr16.o(i.radioCommandHandler) referenced from mr16.o(.constdata) +
  • tx_cplt_cb from sx1281_driver_spi.o(i.tx_cplt_cb) referenced from sx1281_driver_spi.o(i.SpiInit) +
  • txrx_cplt_cb from sx1281_driver_spi.o(i.txrx_cplt_cb) referenced from sx1281_driver_spi.o(i.SpiInit)

    @@ -166,27 +180,45 @@ Global Symbols

    __main (Thumb, 0 bytes, Stack size unknown bytes, entry.o(.ARM.Collect$$$$00000000))
    [Address Reference Count : 1]

    • startup_stm32f103xb.o(.text)
    -

    _main_stk (Thumb, 0 bytes, Stack size unknown bytes, entry2.o(.ARM.Collect$$$$00000001)) +

    _main_stk (Thumb, 0 bytes, Stack size unknown bytes, entry2.o(.ARM.Collect$$$$00000001)) -

    _main_scatterload (Thumb, 0 bytes, Stack size unknown bytes, entry5.o(.ARM.Collect$$$$00000004)) -

    [Calls]

    • >>   __scatterload +

      _main_scatterload (Thumb, 0 bytes, Stack size unknown bytes, entry5.o(.ARM.Collect$$$$00000004)) +

      [Calls]

      • >>   __scatterload
      -

      __main_after_scatterload (Thumb, 0 bytes, Stack size unknown bytes, entry5.o(.ARM.Collect$$$$00000004)) -

      [Called By]

      • >>   __scatterload +

        __main_after_scatterload (Thumb, 0 bytes, Stack size unknown bytes, entry5.o(.ARM.Collect$$$$00000004)) +

        [Called By]

        • >>   __scatterload
        -

        _main_clock (Thumb, 0 bytes, Stack size unknown bytes, entry7b.o(.ARM.Collect$$$$00000008)) +

        _main_clock (Thumb, 0 bytes, Stack size unknown bytes, entry7b.o(.ARM.Collect$$$$00000008)) -

        _main_cpp_init (Thumb, 0 bytes, Stack size unknown bytes, entry8b.o(.ARM.Collect$$$$0000000A)) +

        _main_cpp_init (Thumb, 0 bytes, Stack size unknown bytes, entry8b.o(.ARM.Collect$$$$0000000A)) -

        _main_init (Thumb, 0 bytes, Stack size unknown bytes, entry9a.o(.ARM.Collect$$$$0000000B)) +

        _main_init (Thumb, 0 bytes, Stack size unknown bytes, entry9a.o(.ARM.Collect$$$$0000000B)) -

        __rt_lib_shutdown_fini (Thumb, 0 bytes, Stack size unknown bytes, entry12b.o(.ARM.Collect$$$$0000000E)) +

        __rt_lib_shutdown_fini (Thumb, 0 bytes, Stack size unknown bytes, entry12b.o(.ARM.Collect$$$$0000000E)) -

        __rt_final_cpp (Thumb, 0 bytes, Stack size unknown bytes, entry10a.o(.ARM.Collect$$$$0000000F)) +

        __rt_final_cpp (Thumb, 0 bytes, Stack size unknown bytes, entry10a.o(.ARM.Collect$$$$0000000F)) -

        __rt_final_exit (Thumb, 0 bytes, Stack size unknown bytes, entry11a.o(.ARM.Collect$$$$00000011)) +

        __rt_final_exit (Thumb, 0 bytes, Stack size unknown bytes, entry11a.o(.ARM.Collect$$$$00000011)) + +

        SVC_Handler (Thumb, 32 bytes, Stack size 0 bytes, port.o(.emb_text)) +
        [Address Reference Count : 1]

        • startup_stm32f103xb.o(RESET) +
        +

        __asm___6_port_c_39a90d8d__prvStartFirstTask (Thumb, 28 bytes, Stack size 0 bytes, port.o(.emb_text)) +

        [Called By]

        • >>   xPortStartScheduler +
        + +

        PendSV_Handler (Thumb, 72 bytes, Stack size 0 bytes, port.o(.emb_text)) +

        [Stack]

        • Max Depth = 8
        • Call Chain = PendSV_Handler ⇒ vTaskSwitchContext +
        +
        [Calls]
        • >>   vTaskSwitchContext +
        +
        [Address Reference Count : 1]
        • startup_stm32f103xb.o(RESET) +
        +

        vPortGetIPSR (Thumb, 6 bytes, Stack size 0 bytes, port.o(.emb_text)) +

        [Called By]

        • >>   vPortValidateInterruptPriority +

        Reset_Handler (Thumb, 8 bytes, Stack size 0 bytes, startup_stm32f103xb.o(.text))
        [Address Reference Count : 1]

        • startup_stm32f103xb.o(RESET) @@ -300,221 +332,334 @@ Global Symbols

          WWDG_IRQHandler (Thumb, 0 bytes, Stack size 0 bytes, startup_stm32f103xb.o(.text))
          [Address Reference Count : 1]

          • startup_stm32f103xb.o(RESET)
          -

          __aeabi_llsr (Thumb, 32 bytes, Stack size 0 bytes, llushr.o(.text)) -

          [Called By]

          • >>   __aeabi_d2uiz -
          • >>   __aeabi_uldivmod -
          • >>   _double_epilogue -
          • >>   __aeabi_d2ulz +

            __aeabi_llsr (Thumb, 32 bytes, Stack size 0 bytes, llushr.o(.text)) +

            [Called By]

            • >>   __aeabi_d2uiz +
            • >>   __aeabi_uldivmod +
            • >>   _double_epilogue +
            • >>   __aeabi_d2ulz
            -

            _ll_ushift_r (Thumb, 0 bytes, Stack size 0 bytes, llushr.o(.text), UNUSED) +

            _ll_ushift_r (Thumb, 0 bytes, Stack size 0 bytes, llushr.o(.text), UNUSED) -

            __aeabi_memcpy (Thumb, 36 bytes, Stack size 0 bytes, memcpya.o(.text)) -

            [Called By]

            • >>   SX1281HalReadRegisters -
            • >>   SX1281HalWriteRegisters -
            • >>   SX1281HalWriteCommand -
            • >>   SX1281HalWriteBuffer -
            • >>   SX1281HalReadCommand -
            • >>   SX1281HalReadBuffer +

              __aeabi_memcpy (Thumb, 36 bytes, Stack size 0 bytes, memcpya.o(.text)) +

              [Called By]

              • >>   prvCopyDataToQueue +
              • >>   prvCopyDataFromQueue +
              • >>   SX1281HalReadRegisters +
              • >>   SX1281HalWriteRegisters +
              • >>   SX1281HalWriteCommand +
              • >>   SX1281HalWriteBuffer +
              • >>   SX1281HalReadCommand +
              • >>   SX1281HalReadBuffer +
              • >>   MR16_Main
              -

              __aeabi_memcpy4 (Thumb, 0 bytes, Stack size 0 bytes, memcpya.o(.text), UNUSED) - -

              __aeabi_memcpy8 (Thumb, 0 bytes, Stack size 0 bytes, memcpya.o(.text), UNUSED) - -

              __aeabi_memset (Thumb, 14 bytes, Stack size 0 bytes, memseta.o(.text), UNUSED) -

              [Called By]

              • >>   _memset$wrapper -
              • >>   __aeabi_memclr +

                __aeabi_memcpy4 (Thumb, 0 bytes, Stack size 0 bytes, memcpya.o(.text)) +

                [Called By]

                • >>   Task_radio
                -

                __aeabi_memset4 (Thumb, 0 bytes, Stack size 0 bytes, memseta.o(.text), UNUSED) +

                __aeabi_memcpy8 (Thumb, 0 bytes, Stack size 0 bytes, memcpya.o(.text), UNUSED) -

                __aeabi_memset8 (Thumb, 0 bytes, Stack size 0 bytes, memseta.o(.text), UNUSED) - -

                __aeabi_memclr (Thumb, 4 bytes, Stack size 0 bytes, memseta.o(.text), UNUSED) -

                [Calls]

                • >>   __aeabi_memset +

                  __aeabi_memset (Thumb, 14 bytes, Stack size 0 bytes, memseta.o(.text)) +

                  [Called By]

                  • >>   prvInitialiseNewTask +
                  • >>   memset +
                  • >>   __aeabi_memclr
                  -

                  __aeabi_memclr4 (Thumb, 0 bytes, Stack size 0 bytes, memseta.o(.text)) -

                  [Called By]

                  • >>   USAR_UART_IDLECallback -
                  • >>   MX_TIM1_Init -
                  • >>   SystemClock_Config +

                    __aeabi_memset4 (Thumb, 0 bytes, Stack size 0 bytes, memseta.o(.text), UNUSED) + +

                    __aeabi_memset8 (Thumb, 0 bytes, Stack size 0 bytes, memseta.o(.text), UNUSED) + +

                    __aeabi_memclr (Thumb, 4 bytes, Stack size 0 bytes, memseta.o(.text), UNUSED) +

                    [Calls]

                    • >>   __aeabi_memset
                    -

                    __aeabi_memclr8 (Thumb, 0 bytes, Stack size 0 bytes, memseta.o(.text), UNUSED) - -

                    _memset$wrapper (Thumb, 18 bytes, Stack size 8 bytes, memseta.o(.text), UNUSED) -

                    [Calls]

                    • >>   __aeabi_memset +

                      __aeabi_memclr4 (Thumb, 0 bytes, Stack size 0 bytes, memseta.o(.text)) +

                      [Called By]

                      • >>   USAR_UART_IDLECallback +
                      • >>   MX_TIM1_Init +
                      • >>   SystemClock_Config +
                      • >>   radioCommandHandler +
                      • >>   mr16CommandHandler
                      -

                      strcpy (Thumb, 18 bytes, Stack size 0 bytes, strcpy.o(.text)) -

                      [Called By]

                      • >>   USAR_UART_IDLECallback +

                        __aeabi_memclr8 (Thumb, 0 bytes, Stack size 0 bytes, memseta.o(.text), UNUSED) + +

                        memset (Thumb, 18 bytes, Stack size 8 bytes, memseta.o(.text), UNUSED) +

                        [Calls]

                        • >>   __aeabi_memset
                        -

                        __aeabi_dmul (Thumb, 228 bytes, Stack size 48 bytes, dmul.o(.text)) +

                        strncpy (Thumb, 24 bytes, Stack size 8 bytes, strncpy.o(.text)) +

                        [Stack]

                        • Max Depth = 8
                        • Call Chain = strncpy +
                        +
                        [Called By]
                        • >>   radioCommandHandler +
                        • >>   mr16CommandHandler +
                        • >>   FreeRTOS_CLIProcessCommand +
                        • >>   prvHelpCommand +
                        + +

                        strlen (Thumb, 14 bytes, Stack size 0 bytes, strlen.o(.text)) +

                        [Called By]

                        • >>   FreeRTOS_CLIProcessCommand +
                        + +

                        strcmp (Thumb, 28 bytes, Stack size 8 bytes, strcmp.o(.text)) +

                        [Stack]

                        • Max Depth = 8
                        • Call Chain = strcmp +
                        +
                        [Called By]
                        • >>   radioCommandHandler +
                        + +

                        strcpy (Thumb, 18 bytes, Stack size 0 bytes, strcpy.o(.text)) +

                        [Called By]

                        • >>   USAR_UART_IDLECallback +
                        + +

                        strncmp (Thumb, 30 bytes, Stack size 12 bytes, strncmp.o(.text)) +

                        [Stack]

                        • Max Depth = 12
                        • Call Chain = strncmp +
                        +
                        [Called By]
                        • >>   FreeRTOS_CLIProcessCommand +
                        + +

                        strcasecmp (Thumb, 42 bytes, Stack size 24 bytes, strcasecmp.o(.text)) +

                        [Stack]

                        • Max Depth = 24
                        • Call Chain = strcasecmp +
                        +
                        [Calls]
                        • >>   tolower +
                        +
                        [Called By]
                        • >>   mr16CommandHandler +
                        + +

                        __0sscanf (Thumb, 48 bytes, Stack size 72 bytes, __0sscanf.o(.text)) +

                        [Stack]

                        • Max Depth = 216
                        • Call Chain = __0sscanf ⇒ __vfscanf_char ⇒ __vfscanf ⇒ _scanf_int +
                        +
                        [Calls]
                        • >>   __vfscanf_char +
                        +
                        [Called By]
                        • >>   mr16CommandHandler +
                        + +

                        _scanf_int (Thumb, 332 bytes, Stack size 56 bytes, _scanf_int.o(.text)) +

                        [Stack]

                        • Max Depth = 56
                        • Call Chain = _scanf_int +
                        +
                        [Calls]
                        • >>   _chval +
                        +
                        [Called By]
                        • >>   __vfscanf +
                        + +

                        __aeabi_dmul (Thumb, 228 bytes, Stack size 48 bytes, dmul.o(.text))

                        [Stack]

                        • Max Depth = 88
                        • Call Chain = __aeabi_dmul ⇒ _double_epilogue ⇒ _double_round
                        -
                        [Calls]
                        • >>   _double_epilogue +
                          [Calls]
                          • >>   _double_epilogue
                          -
                          [Called By]
                          • >>   SX1281GetFrequencyError -
                          • >>   _fp_digits +
                            [Called By]
                            • >>   SX1281GetFrequencyError +
                            • >>   _fp_digits
                            -

                            __aeabi_ddiv (Thumb, 222 bytes, Stack size 32 bytes, ddiv.o(.text)) +

                            __aeabi_ddiv (Thumb, 222 bytes, Stack size 32 bytes, ddiv.o(.text))

                            [Stack]

                            • Max Depth = 40
                            • Call Chain = __aeabi_ddiv ⇒ _double_round
                            -
                            [Calls]
                            • >>   _double_round +
                              [Calls]
                              • >>   _double_round
                              -
                              [Called By]
                              • >>   SX1281SetRfFrequency -
                              • >>   SX1281GetFrequencyError -
                              • >>   _fp_digits +
                                [Called By]
                                • >>   SX1281SetRfFrequency +
                                • >>   SX1281GetFrequencyError +
                                • >>   Task_radio +
                                • >>   _fp_digits
                                -

                                __aeabi_i2d (Thumb, 34 bytes, Stack size 16 bytes, dflti.o(.text)) +

                                __aeabi_i2d (Thumb, 34 bytes, Stack size 16 bytes, dflti.o(.text))

                                [Stack]

                                • Max Depth = 56
                                • Call Chain = __aeabi_i2d ⇒ _double_epilogue ⇒ _double_round
                                -
                                [Calls]
                                • >>   _double_epilogue +
                                  [Calls]
                                  • >>   _double_epilogue
                                  -
                                  [Called By]
                                  • >>   SX1281GetFrequencyError +
                                    [Called By]
                                    • >>   SX1281GetFrequencyError
                                    -

                                    __aeabi_ui2d (Thumb, 26 bytes, Stack size 16 bytes, dfltui.o(.text)) +

                                    __aeabi_ui2d (Thumb, 26 bytes, Stack size 16 bytes, dfltui.o(.text))

                                    [Stack]

                                    • Max Depth = 56
                                    • Call Chain = __aeabi_ui2d ⇒ _double_epilogue ⇒ _double_round
                                    -
                                    [Calls]
                                    • >>   _double_epilogue +
                                      [Calls]
                                      • >>   _double_epilogue
                                      -
                                      [Called By]
                                      • >>   SX1281SetRfFrequency +
                                        [Called By]
                                        • >>   SX1281SetRfFrequency +
                                        • >>   Task_radio
                                        -

                                        __aeabi_d2uiz (Thumb, 50 bytes, Stack size 8 bytes, dfixui.o(.text)) +

                                        __aeabi_d2uiz (Thumb, 50 bytes, Stack size 8 bytes, dfixui.o(.text))

                                        [Stack]

                                        • Max Depth = 8
                                        • Call Chain = __aeabi_d2uiz
                                        -
                                        [Calls]
                                        • >>   __aeabi_llsr +
                                          [Calls]
                                          • >>   __aeabi_llsr
                                          -
                                          [Called By]
                                          • >>   SX1281SetRfFrequency +
                                            [Called By]
                                            • >>   SX1281SetRfFrequency +
                                            • >>   Task_radio
                                            -

                                            __aeabi_uidiv (Thumb, 0 bytes, Stack size 12 bytes, uidiv.o(.text), UNUSED) +

                                            __aeabi_uidiv (Thumb, 0 bytes, Stack size 12 bytes, uidiv.o(.text), UNUSED) -

                                            __aeabi_uidivmod (Thumb, 44 bytes, Stack size 12 bytes, uidiv.o(.text), UNUSED) -

                                            [Called By]

                                            • >>   _printf_core +

                                              __aeabi_uidivmod (Thumb, 44 bytes, Stack size 12 bytes, uidiv.o(.text), UNUSED) +

                                              [Called By]

                                              • >>   _printf_core
                                              -

                                              __aeabi_uldivmod (Thumb, 98 bytes, Stack size 40 bytes, uldiv.o(.text), UNUSED) -

                                              [Calls]

                                              • >>   __aeabi_llsr -
                                              • >>   __aeabi_llsl +

                                                __aeabi_uldivmod (Thumb, 98 bytes, Stack size 40 bytes, uldiv.o(.text), UNUSED) +

                                                [Calls]

                                                • >>   __aeabi_llsr +
                                                • >>   __aeabi_llsl
                                                -
                                                [Called By]
                                                • >>   _printf_core -
                                                • >>   _fp_digits +
                                                  [Called By]
                                                  • >>   _printf_core +
                                                  • >>   _fp_digits
                                                  -

                                                  __I$use$fp (Thumb, 0 bytes, Stack size 8 bytes, iusefp.o(.text), UNUSED) +

                                                  tolower (Thumb, 12 bytes, Stack size 0 bytes, tolower.o(.text)) +

                                                  [Called By]

                                                  • >>   strcasecmp +
                                                  -

                                                  _double_round (Thumb, 30 bytes, Stack size 8 bytes, depilogue.o(.text)) +

                                                  _chval (Thumb, 28 bytes, Stack size 0 bytes, _chval.o(.text)) +

                                                  [Called By]

                                                  • >>   _scanf_int +
                                                  + +

                                                  __vfscanf_char (Thumb, 20 bytes, Stack size 0 bytes, scanf_char.o(.text)) +

                                                  [Stack]

                                                  • Max Depth = 144
                                                  • Call Chain = __vfscanf_char ⇒ __vfscanf ⇒ _scanf_int +
                                                  +
                                                  [Calls]
                                                  • >>   __vfscanf +
                                                  +
                                                  [Called By]
                                                  • >>   __0sscanf +
                                                  + +

                                                  _sgetc (Thumb, 30 bytes, Stack size 0 bytes, _sgetc.o(.text)) +
                                                  [Address Reference Count : 1]

                                                  • __0sscanf.o(.text) +
                                                  +

                                                  _sbackspace (Thumb, 34 bytes, Stack size 0 bytes, _sgetc.o(.text)) +
                                                  [Address Reference Count : 1]

                                                  • __0sscanf.o(.text) +
                                                  +

                                                  __I$use$fp (Thumb, 0 bytes, Stack size 8 bytes, iusefp.o(.text), UNUSED) + +

                                                  _double_round (Thumb, 30 bytes, Stack size 8 bytes, depilogue.o(.text))

                                                  [Stack]

                                                  • Max Depth = 8
                                                  • Call Chain = _double_round
                                                  -
                                                  [Called By]
                                                  • >>   __aeabi_ddiv -
                                                  • >>   _double_epilogue -
                                                  • >>   __aeabi_dadd +
                                                    [Called By]
                                                    • >>   __aeabi_ddiv +
                                                    • >>   _double_epilogue +
                                                    • >>   __aeabi_dadd
                                                    -

                                                    _double_epilogue (Thumb, 156 bytes, Stack size 32 bytes, depilogue.o(.text)) +

                                                    _double_epilogue (Thumb, 156 bytes, Stack size 32 bytes, depilogue.o(.text))

                                                    [Stack]

                                                    • Max Depth = 40
                                                    • Call Chain = _double_epilogue ⇒ _double_round
                                                    -
                                                    [Calls]
                                                    • >>   __aeabi_llsr -
                                                    • >>   __aeabi_llsl -
                                                    • >>   _double_round +
                                                      [Calls]
                                                      • >>   __aeabi_llsr +
                                                      • >>   __aeabi_llsl +
                                                      • >>   _double_round
                                                      -
                                                      [Called By]
                                                      • >>   __aeabi_ui2d -
                                                      • >>   __aeabi_i2d -
                                                      • >>   __aeabi_dmul -
                                                      • >>   __aeabi_dadd +
                                                        [Called By]
                                                        • >>   __aeabi_ui2d +
                                                        • >>   __aeabi_i2d +
                                                        • >>   __aeabi_dmul +
                                                        • >>   __aeabi_dadd
                                                        -

                                                        __aeabi_dadd (Thumb, 322 bytes, Stack size 48 bytes, dadd.o(.text), UNUSED) -

                                                        [Calls]

                                                        • >>   __aeabi_lasr -
                                                        • >>   __aeabi_llsl -
                                                        • >>   _double_round -
                                                        • >>   _double_epilogue +

                                                          __aeabi_dadd (Thumb, 322 bytes, Stack size 48 bytes, dadd.o(.text), UNUSED) +

                                                          [Calls]

                                                          • >>   __aeabi_lasr +
                                                          • >>   __aeabi_llsl +
                                                          • >>   _double_round +
                                                          • >>   _double_epilogue
                                                          -
                                                          [Called By]
                                                          • >>   __aeabi_drsub -
                                                          • >>   __aeabi_dsub -
                                                          • >>   _fp_digits +
                                                            [Called By]
                                                            • >>   __aeabi_drsub +
                                                            • >>   __aeabi_dsub +
                                                            • >>   _fp_digits
                                                            -

                                                            __aeabi_dsub (Thumb, 6 bytes, Stack size 0 bytes, dadd.o(.text), UNUSED) -

                                                            [Calls]

                                                            • >>   __aeabi_dadd +

                                                              __aeabi_dsub (Thumb, 6 bytes, Stack size 0 bytes, dadd.o(.text), UNUSED) +

                                                              [Calls]

                                                              • >>   __aeabi_dadd
                                                              -

                                                              __aeabi_drsub (Thumb, 6 bytes, Stack size 0 bytes, dadd.o(.text), UNUSED) -

                                                              [Calls]

                                                              • >>   __aeabi_dadd +

                                                                __aeabi_drsub (Thumb, 6 bytes, Stack size 0 bytes, dadd.o(.text), UNUSED) +

                                                                [Calls]

                                                                • >>   __aeabi_dadd
                                                                -

                                                                __aeabi_d2ulz (Thumb, 48 bytes, Stack size 0 bytes, dfixul.o(.text), UNUSED) -

                                                                [Calls]

                                                                • >>   __aeabi_llsr -
                                                                • >>   __aeabi_llsl +

                                                                  __aeabi_d2ulz (Thumb, 48 bytes, Stack size 0 bytes, dfixul.o(.text), UNUSED) +

                                                                  [Calls]

                                                                  • >>   __aeabi_llsr +
                                                                  • >>   __aeabi_llsl
                                                                  -
                                                                  [Called By]
                                                                  • >>   _fp_digits +
                                                                    [Called By]
                                                                    • >>   _fp_digits
                                                                    -

                                                                    __aeabi_cdrcmple (Thumb, 48 bytes, Stack size 0 bytes, cdrcmple.o(.text), UNUSED) -

                                                                    [Called By]

                                                                    • >>   _fp_digits +

                                                                      __aeabi_cdrcmple (Thumb, 48 bytes, Stack size 0 bytes, cdrcmple.o(.text), UNUSED) +

                                                                      [Called By]

                                                                      • >>   _fp_digits
                                                                      -

                                                                      __scatterload (Thumb, 28 bytes, Stack size 0 bytes, init.o(.text)) -

                                                                      [Calls]

                                                                      • >>   __main_after_scatterload +

                                                                        __scatterload (Thumb, 28 bytes, Stack size 0 bytes, init.o(.text)) +

                                                                        [Calls]

                                                                        • >>   __main_after_scatterload
                                                                        -
                                                                        [Called By]
                                                                        • >>   _main_scatterload +
                                                                          [Called By]
                                                                          • >>   _main_scatterload
                                                                          -

                                                                          __scatterload_rt2 (Thumb, 0 bytes, Stack size 0 bytes, init.o(.text), UNUSED) +

                                                                          __scatterload_rt2 (Thumb, 0 bytes, Stack size 0 bytes, init.o(.text), UNUSED) -

                                                                          __aeabi_llsl (Thumb, 30 bytes, Stack size 0 bytes, llshl.o(.text)) -

                                                                          [Called By]

                                                                          • >>   __aeabi_uldivmod -
                                                                          • >>   _double_epilogue -
                                                                          • >>   __aeabi_dadd -
                                                                          • >>   __aeabi_d2ulz +

                                                                            __aeabi_llsl (Thumb, 30 bytes, Stack size 0 bytes, llshl.o(.text)) +

                                                                            [Called By]

                                                                            • >>   __aeabi_uldivmod +
                                                                            • >>   _double_epilogue +
                                                                            • >>   __aeabi_dadd +
                                                                            • >>   __aeabi_d2ulz
                                                                            -

                                                                            _ll_shift_l (Thumb, 0 bytes, Stack size 0 bytes, llshl.o(.text), UNUSED) +

                                                                            _ll_shift_l (Thumb, 0 bytes, Stack size 0 bytes, llshl.o(.text), UNUSED) -

                                                                            __aeabi_lasr (Thumb, 36 bytes, Stack size 0 bytes, llsshr.o(.text), UNUSED) -

                                                                            [Called By]

                                                                            • >>   __aeabi_dadd +

                                                                              __aeabi_lasr (Thumb, 36 bytes, Stack size 0 bytes, llsshr.o(.text), UNUSED) +

                                                                              [Called By]

                                                                              • >>   __aeabi_dadd
                                                                              -

                                                                              _ll_sshift_r (Thumb, 0 bytes, Stack size 0 bytes, llsshr.o(.text), UNUSED) +

                                                                              _ll_sshift_r (Thumb, 0 bytes, Stack size 0 bytes, llsshr.o(.text), UNUSED) -

                                                                              BSP_SPI_GetHandle (Thumb, 18 bytes, Stack size 0 bytes, spi_1.o(i.BSP_SPI_GetHandle)) -

                                                                              [Called By]

                                                                              • >>   BSP_SPI_TransmitReceive -
                                                                              • >>   BSP_SPI_Transmit +

                                                                                isspace (Thumb, 10 bytes, Stack size 0 bytes, isspace_c.o(.text)) +

                                                                                [Calls]

                                                                                • >>   __ctype_lookup +
                                                                                +
                                                                                [Address Reference Count : 1]
                                                                                • scanf_char.o(.text) +
                                                                                +

                                                                                __vfscanf (Thumb, 810 bytes, Stack size 88 bytes, _scanf.o(.text)) +

                                                                                [Stack]

                                                                                • Max Depth = 144
                                                                                • Call Chain = __vfscanf ⇒ _scanf_int +
                                                                                +
                                                                                [Calls]
                                                                                • >>   _scanf_int +
                                                                                +
                                                                                [Called By]
                                                                                • >>   __vfscanf_char
                                                                                -

                                                                                BSP_SPI_RegisterCallback (Thumb, 22 bytes, Stack size 0 bytes, spi_1.o(i.BSP_SPI_RegisterCallback)) -

                                                                                [Called By]

                                                                                • >>   SpiInit +

                                                                                  __ctype_lookup (Thumb, 34 bytes, Stack size 0 bytes, ctype_c.o(.text)) +

                                                                                  [Called By]

                                                                                  • >>   isspace
                                                                                  -

                                                                                  BSP_SPI_Transmit (Thumb, 42 bytes, Stack size 8 bytes, spi_1.o(i.BSP_SPI_Transmit)) +

                                                                                  BSP_SPI_GetHandle (Thumb, 18 bytes, Stack size 0 bytes, spi_1.o(i.BSP_SPI_GetHandle)) +

                                                                                  [Called By]

                                                                                  • >>   BSP_SPI_TransmitReceive +
                                                                                  • >>   BSP_SPI_Transmit +
                                                                                  • >>   BSP_SPI_GetState +
                                                                                  + +

                                                                                  BSP_SPI_GetState (Thumb, 24 bytes, Stack size 8 bytes, spi_1.o(i.BSP_SPI_GetState)) +

                                                                                  [Stack]

                                                                                  • Max Depth = 8
                                                                                  • Call Chain = BSP_SPI_GetState +
                                                                                  +
                                                                                  [Calls]
                                                                                  • >>   HAL_SPI_GetState +
                                                                                  • >>   BSP_SPI_GetHandle +
                                                                                  +
                                                                                  [Called By]
                                                                                  • >>   LCD_WriteDataBuffer_DMA +
                                                                                  + +

                                                                                  BSP_SPI_RegisterCallback (Thumb, 22 bytes, Stack size 0 bytes, spi_1.o(i.BSP_SPI_RegisterCallback)) +

                                                                                  [Called By]

                                                                                  • >>   SpiInit +
                                                                                  + +

                                                                                  BSP_SPI_Transmit (Thumb, 42 bytes, Stack size 8 bytes, spi_1.o(i.BSP_SPI_Transmit))

                                                                                  [Stack]

                                                                                  • Max Depth = 104
                                                                                  • Call Chain = BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                  -
                                                                                  [Calls]
                                                                                  • >>   HAL_SPI_Transmit_DMA -
                                                                                  • >>   HAL_SPI_Transmit -
                                                                                  • >>   BSP_SPI_GetHandle +
                                                                                    [Calls]
                                                                                    • >>   HAL_SPI_Transmit_DMA +
                                                                                    • >>   HAL_SPI_Transmit +
                                                                                    • >>   BSP_SPI_GetHandle
                                                                                    -
                                                                                    [Called By]
                                                                                    • >>   SpiIn +
                                                                                      [Called By]
                                                                                      • >>   LCD_WriteDataBuffer_DMA +
                                                                                      • >>   LCD_WriteDataBuffer +
                                                                                      • >>   LCD_WriteData +
                                                                                      • >>   LCD_WriteCommand +
                                                                                      • >>   SpiIn
                                                                                      -

                                                                                      BSP_SPI_TransmitReceive (Thumb, 46 bytes, Stack size 16 bytes, spi_1.o(i.BSP_SPI_TransmitReceive)) +

                                                                                      BSP_SPI_TransmitReceive (Thumb, 46 bytes, Stack size 16 bytes, spi_1.o(i.BSP_SPI_TransmitReceive))

                                                                                      [Stack]

                                                                                      • Max Depth = 128
                                                                                      • Call Chain = BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                      -
                                                                                      [Calls]
                                                                                      • >>   HAL_SPI_TransmitReceive_DMA -
                                                                                      • >>   HAL_SPI_TransmitReceive -
                                                                                      • >>   BSP_SPI_GetHandle +
                                                                                        [Calls]
                                                                                        • >>   HAL_SPI_TransmitReceive_DMA +
                                                                                        • >>   HAL_SPI_TransmitReceive +
                                                                                        • >>   BSP_SPI_GetHandle
                                                                                        -
                                                                                        [Called By]
                                                                                        • >>   SpiInOut +
                                                                                          [Called By]
                                                                                          • >>   SpiInOut
                                                                                          -

                                                                                          BSP_UART_GetHandle (Thumb, 10 bytes, Stack size 0 bytes, uart.o(i.BSP_UART_GetHandle)) -

                                                                                          [Called By]

                                                                                          • >>   fputc +

                                                                                            BSP_UART_GetHandle (Thumb, 18 bytes, Stack size 0 bytes, uart.o(i.BSP_UART_GetHandle)) +

                                                                                            [Called By]

                                                                                            • >>   fputc

                                                                                            BusFault_Handler (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.BusFault_Handler)) @@ -527,35 +672,35 @@ Global Symbols

                                                                                            DMA1_Channel2_IRQHandler (Thumb, 6 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.DMA1_Channel2_IRQHandler))

                                                                                            [Stack]

                                                                                            • Max Depth = 40
                                                                                            • Call Chain = DMA1_Channel2_IRQHandler ⇒ HAL_DMA_IRQHandler
                                                                                            -
                                                                                            [Calls]
                                                                                            • >>   HAL_DMA_IRQHandler +
                                                                                              [Calls]
                                                                                              • >>   HAL_DMA_IRQHandler

                                                                                              [Address Reference Count : 1]
                                                                                              • startup_stm32f103xb.o(RESET)

                                                                                              DMA1_Channel3_IRQHandler (Thumb, 6 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.DMA1_Channel3_IRQHandler))

                                                                                              [Stack]

                                                                                              • Max Depth = 40
                                                                                              • Call Chain = DMA1_Channel3_IRQHandler ⇒ HAL_DMA_IRQHandler
                                                                                              -
                                                                                              [Calls]
                                                                                              • >>   HAL_DMA_IRQHandler +
                                                                                                [Calls]
                                                                                                • >>   HAL_DMA_IRQHandler

                                                                                                [Address Reference Count : 1]
                                                                                                • startup_stm32f103xb.o(RESET)

                                                                                                DMA1_Channel5_IRQHandler (Thumb, 6 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.DMA1_Channel5_IRQHandler))

                                                                                                [Stack]

                                                                                                • Max Depth = 40
                                                                                                • Call Chain = DMA1_Channel5_IRQHandler ⇒ HAL_DMA_IRQHandler
                                                                                                -
                                                                                                [Calls]
                                                                                                • >>   HAL_DMA_IRQHandler +
                                                                                                  [Calls]
                                                                                                  • >>   HAL_DMA_IRQHandler

                                                                                                  [Address Reference Count : 1]
                                                                                                  • startup_stm32f103xb.o(RESET)

                                                                                                  DMA1_Channel6_IRQHandler (Thumb, 6 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.DMA1_Channel6_IRQHandler))

                                                                                                  [Stack]

                                                                                                  • Max Depth = 40
                                                                                                  • Call Chain = DMA1_Channel6_IRQHandler ⇒ HAL_DMA_IRQHandler
                                                                                                  -
                                                                                                  [Calls]
                                                                                                  • >>   HAL_DMA_IRQHandler +
                                                                                                    [Calls]
                                                                                                    • >>   HAL_DMA_IRQHandler

                                                                                                    [Address Reference Count : 1]
                                                                                                    • startup_stm32f103xb.o(RESET)

                                                                                                    DMA1_Channel7_IRQHandler (Thumb, 6 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.DMA1_Channel7_IRQHandler))

                                                                                                    [Stack]

                                                                                                    • Max Depth = 40
                                                                                                    • Call Chain = DMA1_Channel7_IRQHandler ⇒ HAL_DMA_IRQHandler
                                                                                                    -
                                                                                                    [Calls]
                                                                                                    • >>   HAL_DMA_IRQHandler +
                                                                                                      [Calls]
                                                                                                      • >>   HAL_DMA_IRQHandler

                                                                                                      [Address Reference Count : 1]
                                                                                                      • startup_stm32f103xb.o(RESET)
                                                                                                      @@ -565,79 +710,106 @@ Global Symbols

                                                                                                      EXTI15_10_IRQHandler (Thumb, 8 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.EXTI15_10_IRQHandler))

                                                                                                      [Stack]

                                                                                                      • Max Depth = 32
                                                                                                      • Call Chain = EXTI15_10_IRQHandler ⇒ HAL_GPIO_EXTI_IRQHandler ⇒ HAL_GPIO_EXTI_Callback
                                                                                                      -
                                                                                                      [Calls]
                                                                                                      • >>   HAL_GPIO_EXTI_IRQHandler +
                                                                                                        [Calls]
                                                                                                        • >>   HAL_GPIO_EXTI_IRQHandler

                                                                                                        [Address Reference Count : 1]
                                                                                                        • startup_stm32f103xb.o(RESET)

                                                                                                        EXTI9_5_IRQHandler (Thumb, 24 bytes, Stack size 8 bytes, stm32f1xx_it.o(i.EXTI9_5_IRQHandler))

                                                                                                        [Stack]

                                                                                                        • Max Depth = 40
                                                                                                        • Call Chain = EXTI9_5_IRQHandler ⇒ HAL_GPIO_EXTI_IRQHandler ⇒ HAL_GPIO_EXTI_Callback
                                                                                                        -
                                                                                                        [Calls]
                                                                                                        • >>   HAL_GPIO_EXTI_IRQHandler +
                                                                                                          [Calls]
                                                                                                          • >>   HAL_GPIO_EXTI_IRQHandler

                                                                                                          [Address Reference Count : 1]
                                                                                                          • startup_stm32f103xb.o(RESET)
                                                                                                          -

                                                                                                          Error_Handler (Thumb, 4 bytes, Stack size 0 bytes, main.o(i.Error_Handler)) -

                                                                                                          [Called By]

                                                                                                          • >>   HAL_UART_MspInit -
                                                                                                          • >>   HAL_SPI_MspInit -
                                                                                                          • >>   MX_USART2_UART_Init -
                                                                                                          • >>   MX_USART1_UART_Init -
                                                                                                          • >>   MX_TIM1_Init -
                                                                                                          • >>   MX_SPI2_Init -
                                                                                                          • >>   MX_SPI1_Init +

                                                                                                            Error_Handler (Thumb, 4 bytes, Stack size 0 bytes, main.o(i.Error_Handler)) +

                                                                                                            [Called By]

                                                                                                            • >>   HAL_UART_MspInit +
                                                                                                            • >>   HAL_SPI_MspInit +
                                                                                                            • >>   MX_USART2_UART_Init +
                                                                                                            • >>   MX_USART1_UART_Init +
                                                                                                            • >>   MX_TIM1_Init +
                                                                                                            • >>   MX_SPI2_Init +
                                                                                                            • >>   MX_SPI1_Init
                                                                                                            -

                                                                                                            GpioGetBitPos (Thumb, 48 bytes, Stack size 0 bytes, sx1281_driver_gpio.o(i.GpioGetBitPos)) -

                                                                                                            [Called By]

                                                                                                            • >>   MSP_GetIRQn -
                                                                                                            • >>   GpioSetIrq +

                                                                                                              FreeRTOS_CLIGetParameter (Thumb, 70 bytes, Stack size 12 bytes, freertos_cli.o(i.FreeRTOS_CLIGetParameter)) +

                                                                                                              [Stack]

                                                                                                              • Max Depth = 12
                                                                                                              • Call Chain = FreeRTOS_CLIGetParameter +
                                                                                                              +
                                                                                                              [Called By]
                                                                                                              • >>   radioCommandHandler +
                                                                                                              • >>   mr16CommandHandler
                                                                                                              -

                                                                                                              GpioInit (Thumb, 2 bytes, Stack size 0 bytes, sx1281_driver_gpio.o(i.GpioInit)) -

                                                                                                              [Called By]

                                                                                                              • >>   SX1281_BSPInit +

                                                                                                                FreeRTOS_CLIProcessCommand (Thumb, 194 bytes, Stack size 32 bytes, freertos_cli.o(i.FreeRTOS_CLIProcessCommand)) +

                                                                                                                [Stack]

                                                                                                                • Max Depth = 44
                                                                                                                • Call Chain = FreeRTOS_CLIProcessCommand ⇒ strncmp +
                                                                                                                +
                                                                                                                [Calls]
                                                                                                                • >>   strncmp +
                                                                                                                • >>   strlen +
                                                                                                                • >>   strncpy +
                                                                                                                +
                                                                                                                [Called By]
                                                                                                                • >>   MR16_Main
                                                                                                                -

                                                                                                                GpioRead (Thumb, 4 bytes, Stack size 0 bytes, sx1281_driver_gpio.o(i.GpioRead)) -

                                                                                                                [Calls]

                                                                                                                • >>   HAL_GPIO_ReadPin +

                                                                                                                  FreeRTOS_CLIRegisterCommand (Thumb, 74 bytes, Stack size 16 bytes, freertos_cli.o(i.FreeRTOS_CLIRegisterCommand)) +

                                                                                                                  [Stack]

                                                                                                                  • Max Depth = 96
                                                                                                                  • Call Chain = FreeRTOS_CLIRegisterCommand ⇒ pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick
                                                                                                                  -
                                                                                                                  [Called By]
                                                                                                                  • >>   SX1281HalGetDioStatus +
                                                                                                                    [Calls]
                                                                                                                    • >>   vPortExitCritical +
                                                                                                                    • >>   vPortEnterCritical +
                                                                                                                    • >>   pvPortMalloc +
                                                                                                                    +
                                                                                                                    [Called By]
                                                                                                                    • >>   MR16_CLI_Init
                                                                                                                    -

                                                                                                                    GpioSetIrq (Thumb, 50 bytes, Stack size 16 bytes, sx1281_driver_gpio.o(i.GpioSetIrq)) +

                                                                                                                    GpioGetBitPos (Thumb, 48 bytes, Stack size 0 bytes, sx1281_driver_gpio.o(i.GpioGetBitPos)) +

                                                                                                                    [Called By]

                                                                                                                    • >>   MSP_GetIRQn +
                                                                                                                    • >>   GpioSetIrq +
                                                                                                                    + +

                                                                                                                    GpioInit (Thumb, 2 bytes, Stack size 0 bytes, sx1281_driver_gpio.o(i.GpioInit)) +

                                                                                                                    [Called By]

                                                                                                                    • >>   SX1281_BSPInit +
                                                                                                                    + +

                                                                                                                    GpioRead (Thumb, 4 bytes, Stack size 0 bytes, sx1281_driver_gpio.o(i.GpioRead)) +

                                                                                                                    [Calls]

                                                                                                                    • >>   HAL_GPIO_ReadPin +
                                                                                                                    +
                                                                                                                    [Called By]
                                                                                                                    • >>   SX1281HalGetDioStatus +
                                                                                                                    + +

                                                                                                                    GpioSetIrq (Thumb, 50 bytes, Stack size 16 bytes, sx1281_driver_gpio.o(i.GpioSetIrq))

                                                                                                                    [Stack]

                                                                                                                    • Max Depth = 32
                                                                                                                    • Call Chain = GpioSetIrq ⇒ HAL_NVIC_SetPriority
                                                                                                                    -
                                                                                                                    [Calls]
                                                                                                                    • >>   HAL_NVIC_SetPriority -
                                                                                                                    • >>   HAL_NVIC_EnableIRQ -
                                                                                                                    • >>   MSP_GetIRQn -
                                                                                                                    • >>   GpioGetBitPos +
                                                                                                                      [Calls]
                                                                                                                      • >>   HAL_NVIC_SetPriority +
                                                                                                                      • >>   HAL_NVIC_EnableIRQ +
                                                                                                                      • >>   MSP_GetIRQn +
                                                                                                                      • >>   GpioGetBitPos
                                                                                                                      -
                                                                                                                      [Called By]
                                                                                                                      • >>   SX1281HalIoIrqInit +
                                                                                                                        [Called By]
                                                                                                                        • >>   SX1281HalIoIrqInit
                                                                                                                        -

                                                                                                                        GpioWrite (Thumb, 6 bytes, Stack size 0 bytes, sx1281_driver_gpio.o(i.GpioWrite)) -

                                                                                                                        [Calls]

                                                                                                                        • >>   HAL_GPIO_WritePin +

                                                                                                                          GpioWrite (Thumb, 6 bytes, Stack size 0 bytes, sx1281_driver_gpio.o(i.GpioWrite)) +

                                                                                                                          [Calls]

                                                                                                                          • >>   HAL_GPIO_WritePin
                                                                                                                          -
                                                                                                                          [Called By]
                                                                                                                          • >>   SX1281HalReset -
                                                                                                                          • >>   SX1281HalReadRegisters -
                                                                                                                          • >>   SX1281HalWriteRegisters -
                                                                                                                          • >>   SX1281HalWriteCommand -
                                                                                                                          • >>   SX1281HalWriteBuffer -
                                                                                                                          • >>   SX1281HalReadCommand -
                                                                                                                          • >>   SX1281HalReadBuffer +
                                                                                                                            [Called By]
                                                                                                                            • >>   SX1281HalReset +
                                                                                                                            • >>   SX1281HalReadRegisters +
                                                                                                                            • >>   SX1281HalWriteRegisters +
                                                                                                                            • >>   SX1281HalWriteCommand +
                                                                                                                            • >>   SX1281HalWriteBuffer +
                                                                                                                            • >>   SX1281HalReadCommand +
                                                                                                                            • >>   SX1281HalReadBuffer
                                                                                                                            -

                                                                                                                            HAL_DMA_Abort (Thumb, 70 bytes, Stack size 8 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_Abort)) +

                                                                                                                            HAL_DMA_Abort (Thumb, 70 bytes, Stack size 8 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_Abort))

                                                                                                                            [Stack]

                                                                                                                            • Max Depth = 8
                                                                                                                            • Call Chain = HAL_DMA_Abort
                                                                                                                            -
                                                                                                                            [Called By]
                                                                                                                            • >>   HAL_UART_IRQHandler -
                                                                                                                            • >>   HAL_UART_DMAStop +
                                                                                                                              [Called By]
                                                                                                                              • >>   HAL_UART_IRQHandler +
                                                                                                                              • >>   HAL_UART_DMAStop
                                                                                                                              -

                                                                                                                              HAL_DMA_Abort_IT (Thumb, 148 bytes, Stack size 8 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_Abort_IT)) +

                                                                                                                              HAL_DMA_Abort_IT (Thumb, 148 bytes, Stack size 8 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_Abort_IT))

                                                                                                                              [Stack]

                                                                                                                              • Max Depth = 8
                                                                                                                              • Call Chain = HAL_DMA_Abort_IT
                                                                                                                              -
                                                                                                                              [Called By]
                                                                                                                              • >>   HAL_UART_IRQHandler +
                                                                                                                                [Called By]
                                                                                                                                • >>   HAL_UART_IRQHandler
                                                                                                                                -

                                                                                                                                HAL_DMA_IRQHandler (Thumb, 316 bytes, Stack size 40 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_IRQHandler)) +

                                                                                                                                HAL_DMA_IRQHandler (Thumb, 316 bytes, Stack size 40 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_IRQHandler))

                                                                                                                                [Stack]

                                                                                                                                • Max Depth = 40
                                                                                                                                • Call Chain = HAL_DMA_IRQHandler

                                                                                                                                [Called By]
                                                                                                                                • >>   DMA1_Channel7_IRQHandler @@ -647,467 +819,479 @@ Global Symbols
                                                                                                                                • >>   DMA1_Channel2_IRQHandler
                                                                                                                                -

                                                                                                                                HAL_DMA_Init (Thumb, 84 bytes, Stack size 12 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_Init)) +

                                                                                                                                HAL_DMA_Init (Thumb, 84 bytes, Stack size 12 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_Init))

                                                                                                                                [Stack]

                                                                                                                                • Max Depth = 12
                                                                                                                                • Call Chain = HAL_DMA_Init
                                                                                                                                -
                                                                                                                                [Called By]
                                                                                                                                • >>   HAL_UART_MspInit -
                                                                                                                                • >>   HAL_SPI_MspInit +
                                                                                                                                  [Called By]
                                                                                                                                  • >>   HAL_UART_MspInit +
                                                                                                                                  • >>   HAL_SPI_MspInit
                                                                                                                                  -

                                                                                                                                  HAL_DMA_Start_IT (Thumb, 112 bytes, Stack size 16 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_Start_IT)) +

                                                                                                                                  HAL_DMA_Start_IT (Thumb, 112 bytes, Stack size 16 bytes, stm32f1xx_hal_dma.o(i.HAL_DMA_Start_IT))

                                                                                                                                  [Stack]

                                                                                                                                  • Max Depth = 28
                                                                                                                                  • Call Chain = HAL_DMA_Start_IT ⇒ DMA_SetConfig
                                                                                                                                  -
                                                                                                                                  [Calls]
                                                                                                                                  • >>   DMA_SetConfig +
                                                                                                                                    [Calls]
                                                                                                                                    • >>   DMA_SetConfig
                                                                                                                                    -
                                                                                                                                    [Called By]
                                                                                                                                    • >>   HAL_SPI_Transmit_DMA -
                                                                                                                                    • >>   HAL_SPI_TransmitReceive_DMA -
                                                                                                                                    • >>   UART_Start_Receive_DMA +
                                                                                                                                      [Called By]
                                                                                                                                      • >>   HAL_SPI_Transmit_DMA +
                                                                                                                                      • >>   HAL_SPI_TransmitReceive_DMA +
                                                                                                                                      • >>   UART_Start_Receive_DMA
                                                                                                                                      -

                                                                                                                                      HAL_Delay (Thumb, 32 bytes, Stack size 16 bytes, stm32f1xx_hal.o(i.HAL_Delay)) +

                                                                                                                                      HAL_Delay (Thumb, 32 bytes, Stack size 16 bytes, stm32f1xx_hal.o(i.HAL_Delay))

                                                                                                                                      [Stack]

                                                                                                                                      • Max Depth = 16
                                                                                                                                      • Call Chain = HAL_Delay
                                                                                                                                      -
                                                                                                                                      [Calls]
                                                                                                                                      • >>   HAL_GetTick +
                                                                                                                                        [Calls]
                                                                                                                                        • >>   HAL_GetTick
                                                                                                                                        -
                                                                                                                                        [Called By]
                                                                                                                                        • >>   SX1281_Running -
                                                                                                                                        • >>   SX1281_Init -
                                                                                                                                        • >>   SX1281HalReset +
                                                                                                                                          [Called By]
                                                                                                                                          • >>   LCD_Init +
                                                                                                                                          • >>   SX1281HalReset +
                                                                                                                                          • >>   SX1281_Init
                                                                                                                                          -

                                                                                                                                          HAL_GPIO_EXTI_Callback (Thumb, 40 bytes, Stack size 24 bytes, gpio_1.o(i.HAL_GPIO_EXTI_Callback)) +

                                                                                                                                          HAL_GPIO_EXTI_Callback (Thumb, 40 bytes, Stack size 24 bytes, gpio_1.o(i.HAL_GPIO_EXTI_Callback))

                                                                                                                                          [Stack]

                                                                                                                                          • Max Depth = 24
                                                                                                                                          • Call Chain = HAL_GPIO_EXTI_Callback
                                                                                                                                          -
                                                                                                                                          [Called By]
                                                                                                                                          • >>   HAL_GPIO_EXTI_IRQHandler +
                                                                                                                                            [Called By]
                                                                                                                                            • >>   HAL_GPIO_EXTI_IRQHandler
                                                                                                                                            -

                                                                                                                                            HAL_GPIO_EXTI_IRQHandler (Thumb, 18 bytes, Stack size 8 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler)) +

                                                                                                                                            HAL_GPIO_EXTI_IRQHandler (Thumb, 18 bytes, Stack size 8 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler))

                                                                                                                                            [Stack]

                                                                                                                                            • Max Depth = 32
                                                                                                                                            • Call Chain = HAL_GPIO_EXTI_IRQHandler ⇒ HAL_GPIO_EXTI_Callback
                                                                                                                                            -
                                                                                                                                            [Calls]
                                                                                                                                            • >>   HAL_GPIO_EXTI_Callback +
                                                                                                                                              [Calls]
                                                                                                                                              • >>   HAL_GPIO_EXTI_Callback

                                                                                                                                              [Called By]
                                                                                                                                              • >>   EXTI9_5_IRQHandler
                                                                                                                                              • >>   EXTI15_10_IRQHandler
                                                                                                                                              -

                                                                                                                                              HAL_GPIO_Init (Thumb, 446 bytes, Stack size 40 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_Init)) +

                                                                                                                                              HAL_GPIO_Init (Thumb, 446 bytes, Stack size 40 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_Init))

                                                                                                                                              [Stack]

                                                                                                                                              • Max Depth = 40
                                                                                                                                              • Call Chain = HAL_GPIO_Init
                                                                                                                                              -
                                                                                                                                              [Called By]
                                                                                                                                              • >>   HAL_UART_MspInit -
                                                                                                                                              • >>   HAL_TIM_MspPostInit -
                                                                                                                                              • >>   HAL_SPI_MspInit -
                                                                                                                                              • >>   MX_GPIO_Init +
                                                                                                                                                [Called By]
                                                                                                                                                • >>   HAL_UART_MspInit +
                                                                                                                                                • >>   HAL_TIM_MspPostInit +
                                                                                                                                                • >>   HAL_SPI_MspInit +
                                                                                                                                                • >>   MX_GPIO_Init
                                                                                                                                                -

                                                                                                                                                HAL_GPIO_ReadPin (Thumb, 10 bytes, Stack size 0 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_ReadPin)) -

                                                                                                                                                [Called By]

                                                                                                                                                • >>   SX1281HalWaitOnBusy -
                                                                                                                                                • >>   GpioRead +

                                                                                                                                                  HAL_GPIO_ReadPin (Thumb, 10 bytes, Stack size 0 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_ReadPin)) +

                                                                                                                                                  [Called By]

                                                                                                                                                  • >>   SX1281HalWaitOnBusy +
                                                                                                                                                  • >>   GpioRead
                                                                                                                                                  -

                                                                                                                                                  HAL_GPIO_WritePin (Thumb, 10 bytes, Stack size 0 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_WritePin)) -

                                                                                                                                                  [Called By]

                                                                                                                                                  • >>   MX_GPIO_Init -
                                                                                                                                                  • >>   GpioWrite +

                                                                                                                                                    HAL_GPIO_WritePin (Thumb, 10 bytes, Stack size 0 bytes, stm32f1xx_hal_gpio.o(i.HAL_GPIO_WritePin)) +

                                                                                                                                                    [Called By]

                                                                                                                                                    • >>   MX_GPIO_Init +
                                                                                                                                                    • >>   LCD_Init +
                                                                                                                                                    • >>   LCD_WriteDataBuffer_DMA +
                                                                                                                                                    • >>   LCD_WriteDataBuffer +
                                                                                                                                                    • >>   LCD_WriteData +
                                                                                                                                                    • >>   LCD_WriteCommand +
                                                                                                                                                    • >>   GpioWrite
                                                                                                                                                    -

                                                                                                                                                    HAL_GetTick (Thumb, 6 bytes, Stack size 0 bytes, stm32f1xx_hal.o(i.HAL_GetTick)) -

                                                                                                                                                    [Called By]

                                                                                                                                                    • >>   SPI_WaitFlagStateUntilTimeout -
                                                                                                                                                    • >>   SPI_DMATransmitReceiveCplt -
                                                                                                                                                    • >>   SPI_DMATransmitCplt -
                                                                                                                                                    • >>   SPI_DMAReceiveCplt -
                                                                                                                                                    • >>   HAL_UART_Transmit -
                                                                                                                                                    • >>   HAL_RCC_OscConfig -
                                                                                                                                                    • >>   HAL_RCC_ClockConfig -
                                                                                                                                                    • >>   HAL_Delay -
                                                                                                                                                    • >>   HAL_SPI_TransmitReceive -
                                                                                                                                                    • >>   HAL_SPI_Transmit -
                                                                                                                                                    • >>   UART_WaitOnFlagUntilTimeout +

                                                                                                                                                      HAL_GetTick (Thumb, 6 bytes, Stack size 0 bytes, stm32f1xx_hal.o(i.HAL_GetTick)) +

                                                                                                                                                      [Called By]

                                                                                                                                                      • >>   HAL_UART_Transmit +
                                                                                                                                                      • >>   HAL_RCC_OscConfig +
                                                                                                                                                      • >>   HAL_RCC_ClockConfig +
                                                                                                                                                      • >>   HAL_Delay +
                                                                                                                                                      • >>   HAL_SPI_TransmitReceive +
                                                                                                                                                      • >>   HAL_SPI_Transmit +
                                                                                                                                                      • >>   SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                      • >>   SPI_DMATransmitReceiveCplt +
                                                                                                                                                      • >>   SPI_DMATransmitCplt +
                                                                                                                                                      • >>   SPI_DMAReceiveCplt +
                                                                                                                                                      • >>   UART_WaitOnFlagUntilTimeout
                                                                                                                                                      -

                                                                                                                                                      HAL_HalfDuplex_Init (Thumb, 110 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.HAL_HalfDuplex_Init)) +

                                                                                                                                                      HAL_HalfDuplex_Init (Thumb, 110 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.HAL_HalfDuplex_Init))

                                                                                                                                                      [Stack]

                                                                                                                                                      • Max Depth = 96
                                                                                                                                                      • Call Chain = HAL_HalfDuplex_Init ⇒ HAL_UART_MspInit ⇒ HAL_GPIO_Init
                                                                                                                                                      -
                                                                                                                                                      [Calls]
                                                                                                                                                      • >>   HAL_UART_MspInit -
                                                                                                                                                      • >>   UART_SetConfig +
                                                                                                                                                        [Calls]
                                                                                                                                                        • >>   HAL_UART_MspInit +
                                                                                                                                                        • >>   UART_SetConfig
                                                                                                                                                        -
                                                                                                                                                        [Called By]
                                                                                                                                                        • >>   MX_USART1_UART_Init +
                                                                                                                                                          [Called By]
                                                                                                                                                          • >>   MX_USART1_UART_Init
                                                                                                                                                          -

                                                                                                                                                          HAL_IncTick (Thumb, 12 bytes, Stack size 0 bytes, stm32f1xx_hal.o(i.HAL_IncTick)) +

                                                                                                                                                          HAL_IncTick (Thumb, 12 bytes, Stack size 0 bytes, stm32f1xx_hal.o(i.HAL_IncTick))

                                                                                                                                                          [Called By]

                                                                                                                                                          • >>   SysTick_Handler
                                                                                                                                                          -

                                                                                                                                                          HAL_Init (Thumb, 32 bytes, Stack size 8 bytes, stm32f1xx_hal.o(i.HAL_Init)) +

                                                                                                                                                          HAL_Init (Thumb, 32 bytes, Stack size 8 bytes, stm32f1xx_hal.o(i.HAL_Init))

                                                                                                                                                          [Stack]

                                                                                                                                                          • Max Depth = 40
                                                                                                                                                          • Call Chain = HAL_Init ⇒ HAL_InitTick ⇒ HAL_NVIC_SetPriority
                                                                                                                                                          -
                                                                                                                                                          [Calls]
                                                                                                                                                          • >>   HAL_MspInit -
                                                                                                                                                          • >>   HAL_InitTick -
                                                                                                                                                          • >>   HAL_NVIC_SetPriorityGrouping +
                                                                                                                                                            [Calls]
                                                                                                                                                            • >>   HAL_MspInit +
                                                                                                                                                            • >>   HAL_InitTick +
                                                                                                                                                            • >>   HAL_NVIC_SetPriorityGrouping

                                                                                                                                                            [Called By]
                                                                                                                                                            • >>   main
                                                                                                                                                            -

                                                                                                                                                            HAL_InitTick (Thumb, 54 bytes, Stack size 16 bytes, stm32f1xx_hal.o(i.HAL_InitTick)) +

                                                                                                                                                            HAL_InitTick (Thumb, 54 bytes, Stack size 16 bytes, stm32f1xx_hal.o(i.HAL_InitTick))

                                                                                                                                                            [Stack]

                                                                                                                                                            • Max Depth = 32
                                                                                                                                                            • Call Chain = HAL_InitTick ⇒ HAL_NVIC_SetPriority
                                                                                                                                                            -
                                                                                                                                                            [Calls]
                                                                                                                                                            • >>   HAL_NVIC_SetPriority -
                                                                                                                                                            • >>   HAL_SYSTICK_Config +
                                                                                                                                                              [Calls]
                                                                                                                                                              • >>   HAL_NVIC_SetPriority +
                                                                                                                                                              • >>   HAL_SYSTICK_Config
                                                                                                                                                              -
                                                                                                                                                              [Called By]
                                                                                                                                                              • >>   HAL_RCC_ClockConfig -
                                                                                                                                                              • >>   HAL_Init +
                                                                                                                                                                [Called By]
                                                                                                                                                                • >>   HAL_RCC_ClockConfig +
                                                                                                                                                                • >>   HAL_Init
                                                                                                                                                                -

                                                                                                                                                                HAL_MspInit (Thumb, 52 bytes, Stack size 8 bytes, stm32f1xx_hal_msp.o(i.HAL_MspInit)) -

                                                                                                                                                                [Stack]

                                                                                                                                                                • Max Depth = 8
                                                                                                                                                                • Call Chain = HAL_MspInit +

                                                                                                                                                                  HAL_MspInit (Thumb, 62 bytes, Stack size 8 bytes, stm32f1xx_hal_msp.o(i.HAL_MspInit)) +

                                                                                                                                                                  [Stack]

                                                                                                                                                                  • Max Depth = 24
                                                                                                                                                                  • Call Chain = HAL_MspInit ⇒ HAL_NVIC_SetPriority
                                                                                                                                                                  -
                                                                                                                                                                  [Called By]
                                                                                                                                                                  • >>   HAL_Init +
                                                                                                                                                                    [Calls]
                                                                                                                                                                    • >>   HAL_NVIC_SetPriority +
                                                                                                                                                                    +
                                                                                                                                                                    [Called By]
                                                                                                                                                                    • >>   HAL_Init
                                                                                                                                                                    -

                                                                                                                                                                    HAL_NVIC_EnableIRQ (Thumb, 26 bytes, Stack size 0 bytes, stm32f1xx_hal_cortex.o(i.HAL_NVIC_EnableIRQ)) -

                                                                                                                                                                    [Called By]

                                                                                                                                                                    • >>   HAL_UART_MspInit -
                                                                                                                                                                    • >>   MX_GPIO_Init -
                                                                                                                                                                    • >>   MX_DMA_Init -
                                                                                                                                                                    • >>   GpioSetIrq +

                                                                                                                                                                      HAL_NVIC_EnableIRQ (Thumb, 26 bytes, Stack size 0 bytes, stm32f1xx_hal_cortex.o(i.HAL_NVIC_EnableIRQ)) +

                                                                                                                                                                      [Called By]

                                                                                                                                                                      • >>   HAL_UART_MspInit +
                                                                                                                                                                      • >>   MX_GPIO_Init +
                                                                                                                                                                      • >>   MX_DMA_Init +
                                                                                                                                                                      • >>   GpioSetIrq
                                                                                                                                                                      -

                                                                                                                                                                      HAL_NVIC_SetPriority (Thumb, 60 bytes, Stack size 16 bytes, stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority)) +

                                                                                                                                                                      HAL_NVIC_SetPriority (Thumb, 60 bytes, Stack size 16 bytes, stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority))

                                                                                                                                                                      [Stack]

                                                                                                                                                                      • Max Depth = 16
                                                                                                                                                                      • Call Chain = HAL_NVIC_SetPriority
                                                                                                                                                                      -
                                                                                                                                                                      [Calls]
                                                                                                                                                                      • >>   __NVIC_SetPriority +
                                                                                                                                                                        [Calls]
                                                                                                                                                                        • >>   __NVIC_SetPriority
                                                                                                                                                                        -
                                                                                                                                                                        [Called By]
                                                                                                                                                                        • >>   HAL_UART_MspInit -
                                                                                                                                                                        • >>   MX_GPIO_Init -
                                                                                                                                                                        • >>   MX_DMA_Init -
                                                                                                                                                                        • >>   HAL_InitTick -
                                                                                                                                                                        • >>   GpioSetIrq +
                                                                                                                                                                          [Called By]
                                                                                                                                                                          • >>   HAL_MspInit +
                                                                                                                                                                          • >>   HAL_UART_MspInit +
                                                                                                                                                                          • >>   MX_GPIO_Init +
                                                                                                                                                                          • >>   MX_DMA_Init +
                                                                                                                                                                          • >>   HAL_InitTick +
                                                                                                                                                                          • >>   GpioSetIrq
                                                                                                                                                                          -

                                                                                                                                                                          HAL_NVIC_SetPriorityGrouping (Thumb, 26 bytes, Stack size 0 bytes, stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriorityGrouping)) -

                                                                                                                                                                          [Called By]

                                                                                                                                                                          • >>   HAL_Init +

                                                                                                                                                                            HAL_NVIC_SetPriorityGrouping (Thumb, 26 bytes, Stack size 0 bytes, stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriorityGrouping)) +

                                                                                                                                                                            [Called By]

                                                                                                                                                                            • >>   HAL_Init
                                                                                                                                                                            -

                                                                                                                                                                            HAL_RCC_ClockConfig (Thumb, 280 bytes, Stack size 32 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig)) +

                                                                                                                                                                            HAL_RCC_ClockConfig (Thumb, 280 bytes, Stack size 32 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig))

                                                                                                                                                                            [Stack]

                                                                                                                                                                            • Max Depth = 64
                                                                                                                                                                            • Call Chain = HAL_RCC_ClockConfig ⇒ HAL_InitTick ⇒ HAL_NVIC_SetPriority
                                                                                                                                                                            -
                                                                                                                                                                            [Calls]
                                                                                                                                                                            • >>   HAL_RCC_GetSysClockFreq -
                                                                                                                                                                            • >>   HAL_InitTick -
                                                                                                                                                                            • >>   HAL_GetTick +
                                                                                                                                                                              [Calls]
                                                                                                                                                                              • >>   HAL_RCC_GetSysClockFreq +
                                                                                                                                                                              • >>   HAL_InitTick +
                                                                                                                                                                              • >>   HAL_GetTick
                                                                                                                                                                              -
                                                                                                                                                                              [Called By]
                                                                                                                                                                              • >>   SystemClock_Config +
                                                                                                                                                                                [Called By]
                                                                                                                                                                                • >>   SystemClock_Config
                                                                                                                                                                                -

                                                                                                                                                                                HAL_RCC_GetPCLK1Freq (Thumb, 20 bytes, Stack size 0 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq)) -

                                                                                                                                                                                [Called By]

                                                                                                                                                                                • >>   UART_SetConfig +

                                                                                                                                                                                  HAL_RCC_GetPCLK1Freq (Thumb, 20 bytes, Stack size 0 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq)) +

                                                                                                                                                                                  [Called By]

                                                                                                                                                                                  • >>   UART_SetConfig
                                                                                                                                                                                  -

                                                                                                                                                                                  HAL_RCC_GetPCLK2Freq (Thumb, 20 bytes, Stack size 0 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq)) -

                                                                                                                                                                                  [Called By]

                                                                                                                                                                                  • >>   UART_SetConfig +

                                                                                                                                                                                    HAL_RCC_GetPCLK2Freq (Thumb, 20 bytes, Stack size 0 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq)) +

                                                                                                                                                                                    [Called By]

                                                                                                                                                                                    • >>   UART_SetConfig
                                                                                                                                                                                    -

                                                                                                                                                                                    HAL_RCC_GetSysClockFreq (Thumb, 64 bytes, Stack size 0 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq)) -

                                                                                                                                                                                    [Called By]

                                                                                                                                                                                    • >>   HAL_RCC_ClockConfig +

                                                                                                                                                                                      HAL_RCC_GetSysClockFreq (Thumb, 64 bytes, Stack size 0 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq)) +

                                                                                                                                                                                      [Called By]

                                                                                                                                                                                      • >>   HAL_RCC_ClockConfig
                                                                                                                                                                                      -

                                                                                                                                                                                      HAL_RCC_OscConfig (Thumb, 778 bytes, Stack size 40 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig)) +

                                                                                                                                                                                      HAL_RCC_OscConfig (Thumb, 778 bytes, Stack size 40 bytes, stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig))

                                                                                                                                                                                      [Stack]

                                                                                                                                                                                      • Max Depth = 40
                                                                                                                                                                                      • Call Chain = HAL_RCC_OscConfig
                                                                                                                                                                                      -
                                                                                                                                                                                      [Calls]
                                                                                                                                                                                      • >>   HAL_GetTick +
                                                                                                                                                                                        [Calls]
                                                                                                                                                                                        • >>   HAL_GetTick
                                                                                                                                                                                        -
                                                                                                                                                                                        [Called By]
                                                                                                                                                                                        • >>   SystemClock_Config +
                                                                                                                                                                                          [Called By]
                                                                                                                                                                                          • >>   SystemClock_Config
                                                                                                                                                                                          -

                                                                                                                                                                                          HAL_SPI_ErrorCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_ErrorCallback)) +

                                                                                                                                                                                          HAL_SPI_ErrorCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_ErrorCallback))

                                                                                                                                                                                          [Stack]

                                                                                                                                                                                          • Max Depth = 16
                                                                                                                                                                                          • Call Chain = HAL_SPI_ErrorCallback
                                                                                                                                                                                          -
                                                                                                                                                                                          [Calls]
                                                                                                                                                                                          • >>   SPI_Get +
                                                                                                                                                                                            [Calls]
                                                                                                                                                                                            • >>   SPI_Get
                                                                                                                                                                                            -
                                                                                                                                                                                            [Called By]
                                                                                                                                                                                            • >>   SPI_DMATransmitReceiveCplt -
                                                                                                                                                                                            • >>   SPI_DMATransmitCplt -
                                                                                                                                                                                            • >>   SPI_DMAReceiveCplt -
                                                                                                                                                                                            • >>   SPI_DMAError +
                                                                                                                                                                                              [Called By]
                                                                                                                                                                                              • >>   SPI_DMATransmitReceiveCplt +
                                                                                                                                                                                              • >>   SPI_DMATransmitCplt +
                                                                                                                                                                                              • >>   SPI_DMAReceiveCplt +
                                                                                                                                                                                              • >>   SPI_DMAError
                                                                                                                                                                                              -

                                                                                                                                                                                              HAL_SPI_Init (Thumb, 178 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_Init)) +

                                                                                                                                                                                              HAL_SPI_GetState (Thumb, 6 bytes, Stack size 0 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_GetState)) +

                                                                                                                                                                                              [Called By]

                                                                                                                                                                                              • >>   BSP_SPI_GetState +
                                                                                                                                                                                              + +

                                                                                                                                                                                              HAL_SPI_Init (Thumb, 178 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_Init))

                                                                                                                                                                                              [Stack]

                                                                                                                                                                                              • Max Depth = 104
                                                                                                                                                                                              • Call Chain = HAL_SPI_Init ⇒ HAL_SPI_MspInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                              -
                                                                                                                                                                                              [Calls]
                                                                                                                                                                                              • >>   HAL_SPI_MspInit +
                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                • >>   HAL_SPI_MspInit
                                                                                                                                                                                                -
                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                • >>   MX_SPI2_Init -
                                                                                                                                                                                                • >>   MX_SPI1_Init +
                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                  • >>   MX_SPI2_Init +
                                                                                                                                                                                                  • >>   MX_SPI1_Init
                                                                                                                                                                                                  -

                                                                                                                                                                                                  HAL_SPI_MspInit (Thumb, 284 bytes, Stack size 48 bytes, spi.o(i.HAL_SPI_MspInit)) +

                                                                                                                                                                                                  HAL_SPI_MspInit (Thumb, 284 bytes, Stack size 48 bytes, spi.o(i.HAL_SPI_MspInit))

                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                  • Max Depth = 88
                                                                                                                                                                                                  • Call Chain = HAL_SPI_MspInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                                  -
                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                  • >>   HAL_DMA_Init -
                                                                                                                                                                                                  • >>   HAL_GPIO_Init -
                                                                                                                                                                                                  • >>   Error_Handler +
                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                    • >>   HAL_DMA_Init +
                                                                                                                                                                                                    • >>   HAL_GPIO_Init +
                                                                                                                                                                                                    • >>   Error_Handler
                                                                                                                                                                                                    -
                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                    • >>   HAL_SPI_Init +
                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                      • >>   HAL_SPI_Init
                                                                                                                                                                                                      -

                                                                                                                                                                                                      HAL_SPI_RxCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_RxCpltCallback)) +

                                                                                                                                                                                                      HAL_SPI_RxCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_RxCpltCallback))

                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                      • Max Depth = 16
                                                                                                                                                                                                      • Call Chain = HAL_SPI_RxCpltCallback
                                                                                                                                                                                                      -
                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                      • >>   SPI_Get +
                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                        • >>   SPI_Get
                                                                                                                                                                                                        -
                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                        • >>   SPI_DMAReceiveCplt +
                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                          • >>   SPI_DMAReceiveCplt
                                                                                                                                                                                                          -

                                                                                                                                                                                                          HAL_SPI_RxHalfCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_RxHalfCpltCallback)) +

                                                                                                                                                                                                          HAL_SPI_RxHalfCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_RxHalfCpltCallback))

                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                          • Max Depth = 16
                                                                                                                                                                                                          • Call Chain = HAL_SPI_RxHalfCpltCallback
                                                                                                                                                                                                          -
                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                          • >>   SPI_Get +
                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                            • >>   SPI_Get
                                                                                                                                                                                                            -
                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                            • >>   SPI_DMAHalfReceiveCplt +
                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                              • >>   SPI_DMAHalfReceiveCplt
                                                                                                                                                                                                              -

                                                                                                                                                                                                              HAL_SPI_Transmit (Thumb, 358 bytes, Stack size 40 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit)) +

                                                                                                                                                                                                              HAL_SPI_Transmit (Thumb, 358 bytes, Stack size 40 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit))

                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                              • Max Depth = 96
                                                                                                                                                                                                              • Call Chain = HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                              -
                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                              • >>   SPI_EndRxTxTransaction -
                                                                                                                                                                                                              • >>   HAL_GetTick +
                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                • >>   HAL_GetTick +
                                                                                                                                                                                                                • >>   SPI_EndRxTxTransaction
                                                                                                                                                                                                                -
                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                • >>   BSP_SPI_Transmit +
                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                  • >>   BSP_SPI_Transmit
                                                                                                                                                                                                                  -

                                                                                                                                                                                                                  HAL_SPI_TransmitReceive (Thumb, 496 bytes, Stack size 56 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive)) +

                                                                                                                                                                                                                  HAL_SPI_TransmitReceive (Thumb, 496 bytes, Stack size 56 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive))

                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                  • Max Depth = 112
                                                                                                                                                                                                                  • Call Chain = HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                  -
                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                  • >>   SPI_EndRxTxTransaction -
                                                                                                                                                                                                                  • >>   HAL_GetTick +
                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                    • >>   HAL_GetTick +
                                                                                                                                                                                                                    • >>   SPI_EndRxTxTransaction
                                                                                                                                                                                                                    -
                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                    • >>   BSP_SPI_TransmitReceive +
                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                      • >>   BSP_SPI_TransmitReceive
                                                                                                                                                                                                                      -

                                                                                                                                                                                                                      HAL_SPI_TransmitReceive_DMA (Thumb, 252 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA)) +

                                                                                                                                                                                                                      HAL_SPI_TransmitReceive_DMA (Thumb, 252 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA))

                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                      • Max Depth = 44
                                                                                                                                                                                                                      • Call Chain = HAL_SPI_TransmitReceive_DMA ⇒ HAL_DMA_Start_IT ⇒ DMA_SetConfig
                                                                                                                                                                                                                      -
                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                      • >>   HAL_DMA_Start_IT +
                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                        • >>   HAL_DMA_Start_IT
                                                                                                                                                                                                                        -
                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                        • >>   BSP_SPI_TransmitReceive +
                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                          • >>   BSP_SPI_TransmitReceive
                                                                                                                                                                                                                          -

                                                                                                                                                                                                                          HAL_SPI_Transmit_DMA (Thumb, 190 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA)) +

                                                                                                                                                                                                                          HAL_SPI_Transmit_DMA (Thumb, 190 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA))

                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                          • Max Depth = 44
                                                                                                                                                                                                                          • Call Chain = HAL_SPI_Transmit_DMA ⇒ HAL_DMA_Start_IT ⇒ DMA_SetConfig
                                                                                                                                                                                                                          -
                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                          • >>   HAL_DMA_Start_IT +
                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                            • >>   HAL_DMA_Start_IT
                                                                                                                                                                                                                            -
                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                            • >>   BSP_SPI_Transmit +
                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                              • >>   BSP_SPI_Transmit
                                                                                                                                                                                                                              -

                                                                                                                                                                                                                              HAL_SPI_TxCpltCallback (Thumb, 30 bytes, Stack size 8 bytes, spi_1.o(i.HAL_SPI_TxCpltCallback)) +

                                                                                                                                                                                                                              HAL_SPI_TxCpltCallback (Thumb, 30 bytes, Stack size 8 bytes, spi_1.o(i.HAL_SPI_TxCpltCallback))

                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                              • Max Depth = 8
                                                                                                                                                                                                                              • Call Chain = HAL_SPI_TxCpltCallback
                                                                                                                                                                                                                              -
                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                              • >>   SPI_Get +
                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                • >>   SPI_Get
                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                • >>   SPI_DMATransmitCplt +
                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                  • >>   SPI_DMATransmitCplt
                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                  HAL_SPI_TxHalfCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_TxHalfCpltCallback)) +

                                                                                                                                                                                                                                  HAL_SPI_TxHalfCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_TxHalfCpltCallback))

                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                  • Max Depth = 16
                                                                                                                                                                                                                                  • Call Chain = HAL_SPI_TxHalfCpltCallback
                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                  • >>   SPI_Get +
                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                    • >>   SPI_Get
                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                    • >>   SPI_DMAHalfTransmitCplt +
                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                      • >>   SPI_DMAHalfTransmitCplt
                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                      HAL_SPI_TxRxCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_TxRxCpltCallback)) +

                                                                                                                                                                                                                                      HAL_SPI_TxRxCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_TxRxCpltCallback))

                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                      • Max Depth = 16
                                                                                                                                                                                                                                      • Call Chain = HAL_SPI_TxRxCpltCallback
                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                      • >>   SPI_Get +
                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                        • >>   SPI_Get
                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                        • >>   SPI_DMATransmitReceiveCplt +
                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                          • >>   SPI_DMATransmitReceiveCplt
                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                          HAL_SPI_TxRxHalfCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_TxRxHalfCpltCallback)) +

                                                                                                                                                                                                                                          HAL_SPI_TxRxHalfCpltCallback (Thumb, 50 bytes, Stack size 16 bytes, spi_1.o(i.HAL_SPI_TxRxHalfCpltCallback))

                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                          • Max Depth = 16
                                                                                                                                                                                                                                          • Call Chain = HAL_SPI_TxRxHalfCpltCallback
                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                          • >>   SPI_Get +
                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                            • >>   SPI_Get
                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                            • >>   SPI_DMAHalfTransmitReceiveCplt +
                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                              • >>   SPI_DMAHalfTransmitReceiveCplt
                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                              HAL_SYSTICK_Config (Thumb, 40 bytes, Stack size 8 bytes, stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config)) +

                                                                                                                                                                                                                                              HAL_SYSTICK_Config (Thumb, 40 bytes, Stack size 8 bytes, stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config))

                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                              • Max Depth = 8
                                                                                                                                                                                                                                              • Call Chain = HAL_SYSTICK_Config
                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                              • >>   __NVIC_SetPriority +
                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                • >>   __NVIC_SetPriority
                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                • >>   HAL_InitTick +
                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                  • >>   HAL_InitTick
                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                  HAL_TIMEx_ConfigBreakDeadTime (Thumb, 84 bytes, Stack size 8 bytes, stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_ConfigBreakDeadTime)) +

                                                                                                                                                                                                                                                  HAL_TIMEx_ConfigBreakDeadTime (Thumb, 84 bytes, Stack size 8 bytes, stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_ConfigBreakDeadTime))

                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                  • Max Depth = 8
                                                                                                                                                                                                                                                  • Call Chain = HAL_TIMEx_ConfigBreakDeadTime
                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                  • >>   MX_TIM1_Init +
                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                    • >>   MX_TIM1_Init
                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                    HAL_TIMEx_MasterConfigSynchronization (Thumb, 92 bytes, Stack size 16 bytes, stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_MasterConfigSynchronization)) +

                                                                                                                                                                                                                                                    HAL_TIMEx_MasterConfigSynchronization (Thumb, 92 bytes, Stack size 16 bytes, stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_MasterConfigSynchronization))

                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                    • Max Depth = 16
                                                                                                                                                                                                                                                    • Call Chain = HAL_TIMEx_MasterConfigSynchronization
                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                    • >>   MX_TIM1_Init +
                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                      • >>   MX_TIM1_Init
                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                      HAL_TIM_Base_Init (Thumb, 90 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_Base_Init)) +

                                                                                                                                                                                                                                                      HAL_TIM_Base_Init (Thumb, 90 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_Base_Init))

                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                      • Max Depth = 28
                                                                                                                                                                                                                                                      • Call Chain = HAL_TIM_Base_Init ⇒ TIM_Base_SetConfig
                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                      • >>   HAL_TIM_Base_MspInit -
                                                                                                                                                                                                                                                      • >>   TIM_Base_SetConfig +
                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                        • >>   HAL_TIM_Base_MspInit +
                                                                                                                                                                                                                                                        • >>   TIM_Base_SetConfig
                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                        • >>   MX_TIM1_Init +
                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                          • >>   MX_TIM1_Init
                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                          HAL_TIM_Base_MspInit (Thumb, 30 bytes, Stack size 8 bytes, tim.o(i.HAL_TIM_Base_MspInit)) +

                                                                                                                                                                                                                                                          HAL_TIM_Base_MspInit (Thumb, 30 bytes, Stack size 8 bytes, tim.o(i.HAL_TIM_Base_MspInit))

                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                          • Max Depth = 8
                                                                                                                                                                                                                                                          • Call Chain = HAL_TIM_Base_MspInit
                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                          • >>   HAL_TIM_Base_Init +
                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                            • >>   HAL_TIM_Base_Init
                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                            HAL_TIM_ConfigClockSource (Thumb, 220 bytes, Stack size 16 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_ConfigClockSource)) +

                                                                                                                                                                                                                                                            HAL_TIM_ConfigClockSource (Thumb, 220 bytes, Stack size 16 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_ConfigClockSource))

                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                            • Max Depth = 24
                                                                                                                                                                                                                                                            • Call Chain = HAL_TIM_ConfigClockSource ⇒ TIM_TI2_ConfigInputStage
                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                            • >>   TIM_TI2_ConfigInputStage -
                                                                                                                                                                                                                                                            • >>   TIM_TI1_ConfigInputStage -
                                                                                                                                                                                                                                                            • >>   TIM_ITRx_SetConfig -
                                                                                                                                                                                                                                                            • >>   TIM_ETR_SetConfig +
                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                              • >>   TIM_TI2_ConfigInputStage +
                                                                                                                                                                                                                                                              • >>   TIM_TI1_ConfigInputStage +
                                                                                                                                                                                                                                                              • >>   TIM_ITRx_SetConfig +
                                                                                                                                                                                                                                                              • >>   TIM_ETR_SetConfig
                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                              • >>   MX_TIM1_Init +
                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                • >>   MX_TIM1_Init
                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                HAL_TIM_MspPostInit (Thumb, 64 bytes, Stack size 24 bytes, tim.o(i.HAL_TIM_MspPostInit)) +

                                                                                                                                                                                                                                                                HAL_TIM_MspPostInit (Thumb, 64 bytes, Stack size 24 bytes, tim.o(i.HAL_TIM_MspPostInit))

                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                • Max Depth = 64
                                                                                                                                                                                                                                                                • Call Chain = HAL_TIM_MspPostInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                • >>   HAL_GPIO_Init +
                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                  • >>   HAL_GPIO_Init
                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                  • >>   MX_TIM1_Init +
                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                    • >>   MX_TIM1_Init
                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                    HAL_TIM_PWM_ConfigChannel (Thumb, 204 bytes, Stack size 16 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_ConfigChannel)) +

                                                                                                                                                                                                                                                                    HAL_TIM_PWM_ConfigChannel (Thumb, 204 bytes, Stack size 16 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_ConfigChannel))

                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                    • Max Depth = 28
                                                                                                                                                                                                                                                                    • Call Chain = HAL_TIM_PWM_ConfigChannel ⇒ TIM_OC4_SetConfig
                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                    • >>   TIM_OC4_SetConfig -
                                                                                                                                                                                                                                                                    • >>   TIM_OC3_SetConfig -
                                                                                                                                                                                                                                                                    • >>   TIM_OC1_SetConfig -
                                                                                                                                                                                                                                                                    • >>   TIM_OC2_SetConfig +
                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                      • >>   TIM_OC4_SetConfig +
                                                                                                                                                                                                                                                                      • >>   TIM_OC3_SetConfig +
                                                                                                                                                                                                                                                                      • >>   TIM_OC1_SetConfig +
                                                                                                                                                                                                                                                                      • >>   TIM_OC2_SetConfig
                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                      • >>   MX_TIM1_Init +
                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                        • >>   MX_TIM1_Init
                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                        HAL_TIM_PWM_Init (Thumb, 90 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_Init)) +

                                                                                                                                                                                                                                                                        HAL_TIM_PWM_Init (Thumb, 90 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_Init))

                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                        • Max Depth = 28
                                                                                                                                                                                                                                                                        • Call Chain = HAL_TIM_PWM_Init ⇒ TIM_Base_SetConfig
                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                        • >>   HAL_TIM_PWM_MspInit -
                                                                                                                                                                                                                                                                        • >>   TIM_Base_SetConfig +
                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                          • >>   HAL_TIM_PWM_MspInit +
                                                                                                                                                                                                                                                                          • >>   TIM_Base_SetConfig
                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                          • >>   MX_TIM1_Init +
                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                            • >>   MX_TIM1_Init
                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                            HAL_TIM_PWM_MspInit (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_MspInit)) -

                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                            • >>   HAL_TIM_PWM_Init +

                                                                                                                                                                                                                                                                              HAL_TIM_PWM_MspInit (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_MspInit)) +

                                                                                                                                                                                                                                                                              [Called By]

                                                                                                                                                                                                                                                                              • >>   HAL_TIM_PWM_Init
                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                              HAL_UARTEx_RxEventCallback (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_hal_uart.o(i.HAL_UARTEx_RxEventCallback)) -

                                                                                                                                                                                                                                                                              [Called By]

                                                                                                                                                                                                                                                                              • >>   HAL_UART_IRQHandler -
                                                                                                                                                                                                                                                                              • >>   UART_Receive_IT -
                                                                                                                                                                                                                                                                              • >>   UART_DMARxHalfCplt -
                                                                                                                                                                                                                                                                              • >>   UART_DMAReceiveCplt +

                                                                                                                                                                                                                                                                                HAL_UARTEx_RxEventCallback (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_hal_uart.o(i.HAL_UARTEx_RxEventCallback)) +

                                                                                                                                                                                                                                                                                [Called By]

                                                                                                                                                                                                                                                                                • >>   HAL_UART_IRQHandler +
                                                                                                                                                                                                                                                                                • >>   UART_Receive_IT +
                                                                                                                                                                                                                                                                                • >>   UART_DMARxHalfCplt +
                                                                                                                                                                                                                                                                                • >>   UART_DMAReceiveCplt
                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                HAL_UART_DMAStop (Thumb, 112 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_DMAStop)) +

                                                                                                                                                                                                                                                                                HAL_UART_DMAStop (Thumb, 112 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_DMAStop))

                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                • Max Depth = 16
                                                                                                                                                                                                                                                                                • Call Chain = HAL_UART_DMAStop ⇒ HAL_DMA_Abort
                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                • >>   HAL_DMA_Abort -
                                                                                                                                                                                                                                                                                • >>   UART_EndTxTransfer -
                                                                                                                                                                                                                                                                                • >>   UART_EndRxTransfer +
                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                  • >>   HAL_DMA_Abort +
                                                                                                                                                                                                                                                                                  • >>   UART_EndTxTransfer +
                                                                                                                                                                                                                                                                                  • >>   UART_EndRxTransfer
                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                  • >>   USAR_UART_IDLECallback +
                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                    • >>   USAR_UART_IDLECallback
                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                    HAL_UART_ErrorCallback (Thumb, 34 bytes, Stack size 8 bytes, uart.o(i.HAL_UART_ErrorCallback)) +

                                                                                                                                                                                                                                                                                    HAL_UART_ErrorCallback (Thumb, 34 bytes, Stack size 8 bytes, uart.o(i.HAL_UART_ErrorCallback))

                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                    • Max Depth = 8
                                                                                                                                                                                                                                                                                    • Call Chain = HAL_UART_ErrorCallback
                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                    • >>   UART_Get +
                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                      • >>   UART_Get
                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                      • >>   HAL_UART_IRQHandler -
                                                                                                                                                                                                                                                                                      • >>   UART_DMAError -
                                                                                                                                                                                                                                                                                      • >>   UART_DMAAbortOnError +
                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                        • >>   HAL_UART_IRQHandler +
                                                                                                                                                                                                                                                                                        • >>   UART_DMAError +
                                                                                                                                                                                                                                                                                        • >>   UART_DMAAbortOnError
                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                        HAL_UART_IRQHandler (Thumb, 616 bytes, Stack size 24 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler)) +

                                                                                                                                                                                                                                                                                        HAL_UART_IRQHandler (Thumb, 616 bytes, Stack size 24 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler))

                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                        • Max Depth = 40
                                                                                                                                                                                                                                                                                        • Call Chain = HAL_UART_IRQHandler ⇒ UART_Receive_IT ⇒ HAL_UART_RxCpltCallback
                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                        • >>   HAL_DMA_Abort_IT -
                                                                                                                                                                                                                                                                                        • >>   HAL_DMA_Abort -
                                                                                                                                                                                                                                                                                        • >>   HAL_UART_TxCpltCallback -
                                                                                                                                                                                                                                                                                        • >>   HAL_UART_ErrorCallback -
                                                                                                                                                                                                                                                                                        • >>   HAL_UARTEx_RxEventCallback -
                                                                                                                                                                                                                                                                                        • >>   UART_Receive_IT -
                                                                                                                                                                                                                                                                                        • >>   UART_EndRxTransfer +
                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                          • >>   HAL_DMA_Abort_IT +
                                                                                                                                                                                                                                                                                          • >>   HAL_DMA_Abort +
                                                                                                                                                                                                                                                                                          • >>   HAL_UARTEx_RxEventCallback +
                                                                                                                                                                                                                                                                                          • >>   UART_Receive_IT +
                                                                                                                                                                                                                                                                                          • >>   UART_EndRxTransfer +
                                                                                                                                                                                                                                                                                          • >>   HAL_UART_TxCpltCallback +
                                                                                                                                                                                                                                                                                          • >>   HAL_UART_ErrorCallback

                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                          • >>   USART2_IRQHandler
                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                          HAL_UART_Init (Thumb, 100 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_Init)) +

                                                                                                                                                                                                                                                                                          HAL_UART_Init (Thumb, 100 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_Init))

                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                          • Max Depth = 96
                                                                                                                                                                                                                                                                                          • Call Chain = HAL_UART_Init ⇒ HAL_UART_MspInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                          • >>   HAL_UART_MspInit -
                                                                                                                                                                                                                                                                                          • >>   UART_SetConfig +
                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                            • >>   HAL_UART_MspInit +
                                                                                                                                                                                                                                                                                            • >>   UART_SetConfig
                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                            • >>   MX_USART2_UART_Init +
                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                              • >>   MX_USART2_UART_Init
                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                              HAL_UART_MspInit (Thumb, 254 bytes, Stack size 40 bytes, usart.o(i.HAL_UART_MspInit)) +

                                                                                                                                                                                                                                                                                              HAL_UART_MspInit (Thumb, 254 bytes, Stack size 40 bytes, usart.o(i.HAL_UART_MspInit))

                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                              • Max Depth = 80
                                                                                                                                                                                                                                                                                              • Call Chain = HAL_UART_MspInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                              • >>   HAL_DMA_Init -
                                                                                                                                                                                                                                                                                              • >>   HAL_NVIC_SetPriority -
                                                                                                                                                                                                                                                                                              • >>   HAL_NVIC_EnableIRQ -
                                                                                                                                                                                                                                                                                              • >>   HAL_GPIO_Init -
                                                                                                                                                                                                                                                                                              • >>   Error_Handler +
                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                • >>   HAL_DMA_Init +
                                                                                                                                                                                                                                                                                                • >>   HAL_NVIC_SetPriority +
                                                                                                                                                                                                                                                                                                • >>   HAL_NVIC_EnableIRQ +
                                                                                                                                                                                                                                                                                                • >>   HAL_GPIO_Init +
                                                                                                                                                                                                                                                                                                • >>   Error_Handler
                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                • >>   HAL_UART_Init -
                                                                                                                                                                                                                                                                                                • >>   HAL_HalfDuplex_Init +
                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_Init +
                                                                                                                                                                                                                                                                                                  • >>   HAL_HalfDuplex_Init
                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                  HAL_UART_Receive_DMA (Thumb, 28 bytes, Stack size 0 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_Receive_DMA)) +

                                                                                                                                                                                                                                                                                                  HAL_UART_Receive_DMA (Thumb, 28 bytes, Stack size 0 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_Receive_DMA))

                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                  • Max Depth = 44
                                                                                                                                                                                                                                                                                                  • Call Chain = HAL_UART_Receive_DMA ⇒ UART_Start_Receive_DMA ⇒ HAL_DMA_Start_IT ⇒ DMA_SetConfig
                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                  • >>   UART_Start_Receive_DMA +
                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                    • >>   UART_Start_Receive_DMA
                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                    • >>   USAR_UART_IDLECallback +
                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                      • >>   USAR_UART_IDLECallback
                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                      HAL_UART_RxCpltCallback (Thumb, 34 bytes, Stack size 8 bytes, uart.o(i.HAL_UART_RxCpltCallback)) +

                                                                                                                                                                                                                                                                                                      HAL_UART_RxCpltCallback (Thumb, 34 bytes, Stack size 8 bytes, uart.o(i.HAL_UART_RxCpltCallback))

                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                      • Max Depth = 8
                                                                                                                                                                                                                                                                                                      • Call Chain = HAL_UART_RxCpltCallback
                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                      • >>   UART_Get +
                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                        • >>   UART_Get
                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                        • >>   UART_Receive_IT -
                                                                                                                                                                                                                                                                                                        • >>   UART_DMAReceiveCplt +
                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                          • >>   UART_Receive_IT +
                                                                                                                                                                                                                                                                                                          • >>   UART_DMAReceiveCplt
                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                          HAL_UART_RxHalfCpltCallback (Thumb, 34 bytes, Stack size 8 bytes, uart.o(i.HAL_UART_RxHalfCpltCallback)) +

                                                                                                                                                                                                                                                                                                          HAL_UART_RxHalfCpltCallback (Thumb, 34 bytes, Stack size 8 bytes, uart.o(i.HAL_UART_RxHalfCpltCallback))

                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                          • Max Depth = 8
                                                                                                                                                                                                                                                                                                          • Call Chain = HAL_UART_RxHalfCpltCallback
                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                          • >>   UART_Get +
                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                            • >>   UART_Get
                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                            • >>   UART_DMARxHalfCplt +
                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                              • >>   UART_DMARxHalfCplt
                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                              HAL_UART_Transmit (Thumb, 160 bytes, Stack size 32 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_Transmit)) +

                                                                                                                                                                                                                                                                                                              HAL_UART_Transmit (Thumb, 160 bytes, Stack size 32 bytes, stm32f1xx_hal_uart.o(i.HAL_UART_Transmit))

                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                              • Max Depth = 64
                                                                                                                                                                                                                                                                                                              • Call Chain = HAL_UART_Transmit ⇒ UART_WaitOnFlagUntilTimeout
                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                              • >>   HAL_GetTick -
                                                                                                                                                                                                                                                                                                              • >>   UART_WaitOnFlagUntilTimeout +
                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                • >>   HAL_GetTick +
                                                                                                                                                                                                                                                                                                                • >>   UART_WaitOnFlagUntilTimeout
                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                • >>   USAR_UART_IDLECallback -
                                                                                                                                                                                                                                                                                                                • >>   fputc +
                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                  • >>   USAR_UART_IDLECallback +
                                                                                                                                                                                                                                                                                                                  • >>   fputc
                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                  HAL_UART_TxCpltCallback (Thumb, 34 bytes, Stack size 8 bytes, uart.o(i.HAL_UART_TxCpltCallback)) +

                                                                                                                                                                                                                                                                                                                  HAL_UART_TxCpltCallback (Thumb, 34 bytes, Stack size 8 bytes, uart.o(i.HAL_UART_TxCpltCallback))

                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                  • Max Depth = 8
                                                                                                                                                                                                                                                                                                                  • Call Chain = HAL_UART_TxCpltCallback
                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                  • >>   UART_Get +
                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                    • >>   UART_Get
                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                    • >>   HAL_UART_IRQHandler +
                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                      • >>   HAL_UART_IRQHandler

                                                                                                                                                                                                                                                                                                                      HardFault_Handler (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.HardFault_Handler)) @@ -1117,91 +1301,185 @@ Global Symbols


                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                    • startup_stm32f103xb.o(RESET)
                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                    MR16_Init (Thumb, 18 bytes, Stack size 8 bytes, mr16.o(i.MR16_Init)) -

                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                    • Max Depth = 80
                                                                                                                                                                                                                                                                                                                    • Call Chain = MR16_Init ⇒ SX1281_Init ⇒ __2printf +

                                                                                                                                                                                                                                                                                                                      LCD_Clear (Thumb, 82 bytes, Stack size 24 bytes, lcd.o(i.LCD_Clear)) +

                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                      • Max Depth = 208
                                                                                                                                                                                                                                                                                                                      • Call Chain = LCD_Clear ⇒ LCD_SetAddressWindow ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                      • >>   SX1281_SetRXSuccessive -
                                                                                                                                                                                                                                                                                                                      • >>   SX1281_Init +
                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                        • >>   LCD_WriteDataBuffer_DMA +
                                                                                                                                                                                                                                                                                                                        • >>   LCD_SetAddressWindow +
                                                                                                                                                                                                                                                                                                                        • >>   malloc +
                                                                                                                                                                                                                                                                                                                        • >>   free
                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                        • >>   main +
                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                          • >>   MR16_Init
                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                          MSP_GetIRQn (Thumb, 58 bytes, Stack size 4 bytes, sx1281_driver_gpio.o(i.MSP_GetIRQn)) +

                                                                                                                                                                                                                                                                                                                          LCD_DrawBitmap (Thumb, 128 bytes, Stack size 56 bytes, lcd.o(i.LCD_DrawBitmap)) +

                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                          • Max Depth = 256
                                                                                                                                                                                                                                                                                                                          • Call Chain = LCD_DrawBitmap ⇒ LCD_DrawPoint ⇒ LCD_SetAddressWindow ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                          • >>   LCD_DrawPoint +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                          • >>   MR16_Init +
                                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                                          LCD_DrawChar (Thumb, 342 bytes, Stack size 64 bytes, lcd.o(i.LCD_DrawChar)) +

                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                          • Max Depth = 264
                                                                                                                                                                                                                                                                                                                          • Call Chain = LCD_DrawChar ⇒ LCD_DrawPoint ⇒ LCD_SetAddressWindow ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                          • >>   LCD_DrawPoint +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                          • >>   LCD_DrawString +
                                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                                          LCD_DrawPoint (Thumb, 88 bytes, Stack size 16 bytes, lcd.o(i.LCD_DrawPoint)) +

                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                          • Max Depth = 200
                                                                                                                                                                                                                                                                                                                          • Call Chain = LCD_DrawPoint ⇒ LCD_SetAddressWindow ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                          • >>   LCD_WriteDataBuffer +
                                                                                                                                                                                                                                                                                                                          • >>   LCD_SetAddressWindow +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                          • >>   LCD_DrawChar +
                                                                                                                                                                                                                                                                                                                          • >>   LCD_DrawBitmap +
                                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                                          LCD_DrawString (Thumb, 110 bytes, Stack size 64 bytes, lcd.o(i.LCD_DrawString)) +

                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                          • Max Depth = 328
                                                                                                                                                                                                                                                                                                                          • Call Chain = LCD_DrawString ⇒ LCD_DrawChar ⇒ LCD_DrawPoint ⇒ LCD_SetAddressWindow ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                          • >>   LCD_DrawChar +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                          • >>   MR16_Init +
                                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                                          LCD_Init (Thumb, 304 bytes, Stack size 56 bytes, lcd.o(i.LCD_Init)) +

                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                          • Max Depth = 208
                                                                                                                                                                                                                                                                                                                          • Call Chain = LCD_Init ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                          • >>   HAL_GPIO_WritePin +
                                                                                                                                                                                                                                                                                                                          • >>   HAL_Delay +
                                                                                                                                                                                                                                                                                                                          • >>   LCD_WriteDataBuffer +
                                                                                                                                                                                                                                                                                                                          • >>   LCD_WriteData +
                                                                                                                                                                                                                                                                                                                          • >>   LCD_WriteCommand +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                          • >>   MR16_Init +
                                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                                          MR16_CLI_Init (Thumb, 20 bytes, Stack size 8 bytes, mr16.o(i.MR16_CLI_Init)) +

                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                          • Max Depth = 104
                                                                                                                                                                                                                                                                                                                          • Call Chain = MR16_CLI_Init ⇒ FreeRTOS_CLIRegisterCommand ⇒ pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                          • >>   FreeRTOS_CLIRegisterCommand +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                          • >>   MR16_Init +
                                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                                          MR16_Init (Thumb, 90 bytes, Stack size 24 bytes, mr16.o(i.MR16_Init)) +

                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                          • Max Depth = 352
                                                                                                                                                                                                                                                                                                                          • Call Chain = MR16_Init ⇒ LCD_DrawString ⇒ LCD_DrawChar ⇒ LCD_DrawPoint ⇒ LCD_SetAddressWindow ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                          • >>   LCD_Init +
                                                                                                                                                                                                                                                                                                                          • >>   LCD_DrawString +
                                                                                                                                                                                                                                                                                                                          • >>   LCD_DrawBitmap +
                                                                                                                                                                                                                                                                                                                          • >>   LCD_Clear +
                                                                                                                                                                                                                                                                                                                          • >>   SX1281_SetRXSuccessive +
                                                                                                                                                                                                                                                                                                                          • >>   SX1281_Init +
                                                                                                                                                                                                                                                                                                                          • >>   MR16_CLI_Init +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                          • >>   Task_radio +
                                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                                          MR16_Main (Thumb, 224 bytes, Stack size 56 bytes, mr16.o(i.MR16_Main)) +

                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                          • Max Depth = 256
                                                                                                                                                                                                                                                                                                                          • Call Chain = MR16_Main ⇒ SX1281_Running ⇒ SX1281ProcessIrqs ⇒ SX1281GetIrqStatus ⇒ SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                          • >>   SX1281_SetTX +
                                                                                                                                                                                                                                                                                                                          • >>   SX1281_Running +
                                                                                                                                                                                                                                                                                                                          • >>   __aeabi_memcpy +
                                                                                                                                                                                                                                                                                                                          • >>   FreeRTOS_CLIProcessCommand +
                                                                                                                                                                                                                                                                                                                          • >>   __2printf +
                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                          • >>   Task_radio +
                                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                                          MR16_NotifyUARTIdle (Thumb, 8 bytes, Stack size 0 bytes, mr16.o(i.MR16_NotifyUARTIdle)) +

                                                                                                                                                                                                                                                                                                                          [Called By]

                                                                                                                                                                                                                                                                                                                          • >>   USAR_UART_IDLECallback +
                                                                                                                                                                                                                                                                                                                          + +

                                                                                                                                                                                                                                                                                                                          MSP_GetIRQn (Thumb, 58 bytes, Stack size 4 bytes, sx1281_driver_gpio.o(i.MSP_GetIRQn))

                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                          • Max Depth = 4
                                                                                                                                                                                                                                                                                                                          • Call Chain = MSP_GetIRQn
                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                          • >>   GpioGetBitPos +
                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                            • >>   GpioGetBitPos
                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                            • >>   GpioSetIrq +
                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                              • >>   GpioSetIrq
                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                              MX_DMA_Init (Thumb, 104 bytes, Stack size 8 bytes, dma.o(i.MX_DMA_Init)) +

                                                                                                                                                                                                                                                                                                                              MX_DMA_Init (Thumb, 104 bytes, Stack size 8 bytes, dma.o(i.MX_DMA_Init))

                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                              • Max Depth = 24
                                                                                                                                                                                                                                                                                                                              • Call Chain = MX_DMA_Init ⇒ HAL_NVIC_SetPriority
                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                              • >>   HAL_NVIC_SetPriority -
                                                                                                                                                                                                                                                                                                                              • >>   HAL_NVIC_EnableIRQ +
                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                • >>   HAL_NVIC_SetPriority +
                                                                                                                                                                                                                                                                                                                                • >>   HAL_NVIC_EnableIRQ

                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                • >>   main
                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                MX_GPIO_Init (Thumb, 258 bytes, Stack size 48 bytes, gpio.o(i.MX_GPIO_Init)) +

                                                                                                                                                                                                                                                                                                                                MX_FREERTOS_Init (Thumb, 30 bytes, Stack size 8 bytes, freertos.o(i.MX_FREERTOS_Init)) +

                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                • Max Depth = 184
                                                                                                                                                                                                                                                                                                                                • Call Chain = MX_FREERTOS_Init ⇒ osThreadNew ⇒ xTaskCreate ⇒ pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                • >>   osThreadNew +
                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                • >>   main +
                                                                                                                                                                                                                                                                                                                                + +

                                                                                                                                                                                                                                                                                                                                MX_GPIO_Init (Thumb, 258 bytes, Stack size 48 bytes, gpio.o(i.MX_GPIO_Init))

                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                • Max Depth = 88
                                                                                                                                                                                                                                                                                                                                • Call Chain = MX_GPIO_Init ⇒ HAL_GPIO_Init
                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                • >>   HAL_NVIC_SetPriority -
                                                                                                                                                                                                                                                                                                                                • >>   HAL_NVIC_EnableIRQ -
                                                                                                                                                                                                                                                                                                                                • >>   HAL_GPIO_WritePin -
                                                                                                                                                                                                                                                                                                                                • >>   HAL_GPIO_Init +
                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                  • >>   HAL_NVIC_SetPriority +
                                                                                                                                                                                                                                                                                                                                  • >>   HAL_NVIC_EnableIRQ +
                                                                                                                                                                                                                                                                                                                                  • >>   HAL_GPIO_WritePin +
                                                                                                                                                                                                                                                                                                                                  • >>   HAL_GPIO_Init

                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                  • >>   main
                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                  MX_SPI1_Init (Thumb, 62 bytes, Stack size 8 bytes, spi.o(i.MX_SPI1_Init)) +

                                                                                                                                                                                                                                                                                                                                  MX_SPI1_Init (Thumb, 62 bytes, Stack size 8 bytes, spi.o(i.MX_SPI1_Init))

                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                  • Max Depth = 112
                                                                                                                                                                                                                                                                                                                                  • Call Chain = MX_SPI1_Init ⇒ HAL_SPI_Init ⇒ HAL_SPI_MspInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_Init -
                                                                                                                                                                                                                                                                                                                                  • >>   Error_Handler +
                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                    • >>   HAL_SPI_Init +
                                                                                                                                                                                                                                                                                                                                    • >>   Error_Handler

                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                    • >>   main
                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                    MX_SPI2_Init (Thumb, 62 bytes, Stack size 8 bytes, spi.o(i.MX_SPI2_Init)) +

                                                                                                                                                                                                                                                                                                                                    MX_SPI2_Init (Thumb, 62 bytes, Stack size 8 bytes, spi.o(i.MX_SPI2_Init))

                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                    • Max Depth = 112
                                                                                                                                                                                                                                                                                                                                    • Call Chain = MX_SPI2_Init ⇒ HAL_SPI_Init ⇒ HAL_SPI_MspInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                    • >>   HAL_SPI_Init -
                                                                                                                                                                                                                                                                                                                                    • >>   Error_Handler +
                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                      • >>   HAL_SPI_Init +
                                                                                                                                                                                                                                                                                                                                      • >>   Error_Handler

                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                      • >>   main
                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                      MX_TIM1_Init (Thumb, 188 bytes, Stack size 96 bytes, tim.o(i.MX_TIM1_Init)) +

                                                                                                                                                                                                                                                                                                                                      MX_TIM1_Init (Thumb, 188 bytes, Stack size 96 bytes, tim.o(i.MX_TIM1_Init))

                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                      • Max Depth = 160
                                                                                                                                                                                                                                                                                                                                      • Call Chain = MX_TIM1_Init ⇒ HAL_TIM_MspPostInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIM_PWM_Init -
                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIM_PWM_ConfigChannel -
                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIM_ConfigClockSource -
                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIM_Base_Init -
                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIMEx_MasterConfigSynchronization -
                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIMEx_ConfigBreakDeadTime -
                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIM_MspPostInit -
                                                                                                                                                                                                                                                                                                                                      • >>   Error_Handler -
                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_memclr4 +
                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_PWM_Init +
                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_PWM_ConfigChannel +
                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_ConfigClockSource +
                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_Base_Init +
                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIMEx_MasterConfigSynchronization +
                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIMEx_ConfigBreakDeadTime +
                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_MspPostInit +
                                                                                                                                                                                                                                                                                                                                        • >>   Error_Handler +
                                                                                                                                                                                                                                                                                                                                        • >>   __aeabi_memclr4

                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                        • >>   main
                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                        MX_USART1_UART_Init (Thumb, 48 bytes, Stack size 8 bytes, usart.o(i.MX_USART1_UART_Init)) +

                                                                                                                                                                                                                                                                                                                                        MX_USART1_UART_Init (Thumb, 48 bytes, Stack size 8 bytes, usart.o(i.MX_USART1_UART_Init))

                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                        • Max Depth = 104
                                                                                                                                                                                                                                                                                                                                        • Call Chain = MX_USART1_UART_Init ⇒ HAL_HalfDuplex_Init ⇒ HAL_UART_MspInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                        • >>   HAL_HalfDuplex_Init -
                                                                                                                                                                                                                                                                                                                                        • >>   Error_Handler +
                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                          • >>   HAL_HalfDuplex_Init +
                                                                                                                                                                                                                                                                                                                                          • >>   Error_Handler

                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                          • >>   main
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          MX_USART2_UART_Init (Thumb, 48 bytes, Stack size 8 bytes, usart.o(i.MX_USART2_UART_Init)) +

                                                                                                                                                                                                                                                                                                                                          MX_USART2_UART_Init (Thumb, 48 bytes, Stack size 8 bytes, usart.o(i.MX_USART2_UART_Init))

                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                          • Max Depth = 104
                                                                                                                                                                                                                                                                                                                                          • Call Chain = MX_USART2_UART_Init ⇒ HAL_UART_Init ⇒ HAL_UART_MspInit ⇒ HAL_GPIO_Init
                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                          • >>   HAL_UART_Init -
                                                                                                                                                                                                                                                                                                                                          • >>   Error_Handler +
                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                            • >>   HAL_UART_Init +
                                                                                                                                                                                                                                                                                                                                            • >>   Error_Handler

                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                            • >>   main
                                                                                                                                                                                                                                                                                                                                            @@ -1220,683 +1498,692 @@ Global Symbols

                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                          • startup_stm32f103xb.o(RESET)
                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                          OnRxDone (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnRxDone)) -

                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                          • Max Depth = 64
                                                                                                                                                                                                                                                                                                                                          • Call Chain = OnRxDone ⇒ SX1281_Callback ⇒ SX1281_SetTX +

                                                                                                                                                                                                                                                                                                                                            OnRxDone (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnRxDone)) +

                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                            • Max Depth = 56
                                                                                                                                                                                                                                                                                                                                            • Call Chain = OnRxDone ⇒ SX1281_Callback ⇒ SX1281_SetTX
                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                            • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                              • >>   SX1281_Callback

                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                              • sx1281.o(.data)
                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                              OnRxError (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnRxError)) -

                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                              • Max Depth = 64
                                                                                                                                                                                                                                                                                                                                              • Call Chain = OnRxError ⇒ SX1281_Callback ⇒ SX1281_SetTX +

                                                                                                                                                                                                                                                                                                                                                OnRxError (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnRxError)) +

                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                • Max Depth = 56
                                                                                                                                                                                                                                                                                                                                                • Call Chain = OnRxError ⇒ SX1281_Callback ⇒ SX1281_SetTX
                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281_Callback

                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                  • sx1281.o(.data)
                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                  OnRxTimeout (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnRxTimeout)) -

                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 64
                                                                                                                                                                                                                                                                                                                                                  • Call Chain = OnRxTimeout ⇒ SX1281_Callback ⇒ SX1281_SetTX +

                                                                                                                                                                                                                                                                                                                                                    OnRxTimeout (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnRxTimeout)) +

                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 56
                                                                                                                                                                                                                                                                                                                                                    • Call Chain = OnRxTimeout ⇒ SX1281_Callback ⇒ SX1281_SetTX
                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281_Callback

                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                      • sx1281.o(.data)
                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                      OnTxDone (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnTxDone)) -

                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 64
                                                                                                                                                                                                                                                                                                                                                      • Call Chain = OnTxDone ⇒ SX1281_Callback ⇒ SX1281_SetTX +

                                                                                                                                                                                                                                                                                                                                                        OnTxDone (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnTxDone)) +

                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 56
                                                                                                                                                                                                                                                                                                                                                        • Call Chain = OnTxDone ⇒ SX1281_Callback ⇒ SX1281_SetTX
                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281_Callback

                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                          • sx1281.o(.data)
                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                          OnTxTimeout (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnTxTimeout)) -

                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 64
                                                                                                                                                                                                                                                                                                                                                          • Call Chain = OnTxTimeout ⇒ SX1281_Callback ⇒ SX1281_SetTX +

                                                                                                                                                                                                                                                                                                                                                            OnTxTimeout (Thumb, 14 bytes, Stack size 8 bytes, sx1281.o(i.OnTxTimeout)) +

                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 56
                                                                                                                                                                                                                                                                                                                                                            • Call Chain = OnTxTimeout ⇒ SX1281_Callback ⇒ SX1281_SetTX
                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281_Callback

                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                              • sx1281.o(.data)
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              PendSV_Handler (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.PendSV_Handler)) -
                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                              • startup_stm32f103xb.o(RESET) -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              SVC_Handler (Thumb, 2 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.SVC_Handler)) -
                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                              • startup_stm32f103xb.o(RESET) -
                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                              SX1281Calibrate (Thumb, 62 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281Calibrate)) +

                                                                                                                                                                                                                                                                                                                                                              SX1281Calibrate (Thumb, 62 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281Calibrate))

                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                              • Call Chain = SX1281Calibrate ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                SX1281ClearIrqStatus (Thumb, 24 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281ClearIrqStatus)) +

                                                                                                                                                                                                                                                                                                                                                                SX1281ClearIrqStatus (Thumb, 24 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281ClearIrqStatus))

                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281ClearIrqStatus ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWriteCommand
                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281ProcessIrqs -
                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetTx -
                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetRx +
                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetTx +
                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetRx +
                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281ProcessIrqs

                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                    • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                    SX1281GetFirmwareVersion (Thumb, 26 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281GetFirmwareVersion)) +

                                                                                                                                                                                                                                                                                                                                                                    SX1281GetFirmwareVersion (Thumb, 26 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281GetFirmwareVersion))

                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 184
                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281GetFirmwareVersion ⇒ SX1281HalReadRegister ⇒ SX1281HalReadRegisters ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalReadRegister +
                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalReadRegister

                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                      • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                      SX1281GetFrequencyError (Thumb, 132 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281GetFrequencyError)) +

                                                                                                                                                                                                                                                                                                                                                                      SX1281GetFrequencyError (Thumb, 132 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281GetFrequencyError))

                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 192
                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = SX1281GetFrequencyError ⇒ SX1281HalReadRegister ⇒ SX1281HalReadRegisters ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_i2d -
                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_dmul -
                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_ddiv -
                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalReadRegister -
                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281GetLoRaBandwidth +
                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                        • >>   __aeabi_i2d +
                                                                                                                                                                                                                                                                                                                                                                        • >>   __aeabi_dmul +
                                                                                                                                                                                                                                                                                                                                                                        • >>   __aeabi_ddiv +
                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalReadRegister +
                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281GetLoRaBandwidth

                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                        SX1281GetIrqStatus (Thumb, 20 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281GetIrqStatus)) +

                                                                                                                                                                                                                                                                                                                                                                        SX1281GetIrqStatus (Thumb, 20 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281GetIrqStatus))

                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 176
                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281GetIrqStatus ⇒ SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalReadCommand +
                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalReadCommand
                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281ProcessIrqs +
                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281ProcessIrqs

                                                                                                                                                                                                                                                                                                                                                                            [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                            • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                            SX1281GetLoRaBandwidth (Thumb, 38 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281GetLoRaBandwidth)) -

                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281GetFrequencyError +

                                                                                                                                                                                                                                                                                                                                                                              SX1281GetLoRaBandwidth (Thumb, 38 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281GetLoRaBandwidth)) +

                                                                                                                                                                                                                                                                                                                                                                              [Called By]

                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281GetFrequencyError
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              SX1281GetOpMode (Thumb, 6 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281GetOpMode)) +

                                                                                                                                                                                                                                                                                                                                                                              SX1281GetOpMode (Thumb, 6 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281GetOpMode))
                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                              • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                              SX1281GetPacketStatus (Thumb, 526 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281GetPacketStatus)) +

                                                                                                                                                                                                                                                                                                                                                                              SX1281GetPacketStatus (Thumb, 526 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281GetPacketStatus))

                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 184
                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = SX1281GetPacketStatus ⇒ SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalReadCommand +
                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalReadCommand

                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                SX1281GetPacketType (Thumb, 6 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281GetPacketType)) +

                                                                                                                                                                                                                                                                                                                                                                                SX1281GetPacketType (Thumb, 6 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281GetPacketType))
                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                SX1281GetPayload (Thumb, 40 bytes, Stack size 24 bytes, sx1281_driver.o(i.SX1281GetPayload)) +

                                                                                                                                                                                                                                                                                                                                                                                SX1281GetPayload (Thumb, 40 bytes, Stack size 24 bytes, sx1281_driver.o(i.SX1281GetPayload))

                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 224
                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281GetPayload ⇒ SX1281GetRxBufferStatus ⇒ SX1281HalReadRegister ⇒ SX1281HalReadRegisters ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalReadBuffer -
                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281GetRxBufferStatus +
                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalReadBuffer +
                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281GetRxBufferStatus

                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                  • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                  SX1281GetRssiInst (Thumb, 34 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281GetRssiInst)) +

                                                                                                                                                                                                                                                                                                                                                                                  SX1281GetRssiInst (Thumb, 34 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281GetRssiInst))

                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 176
                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SX1281GetRssiInst ⇒ SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalReadCommand +
                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalReadCommand

                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                    • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                    SX1281GetRxBufferStatus (Thumb, 68 bytes, Stack size 24 bytes, sx1281_driver.o(i.SX1281GetRxBufferStatus)) +

                                                                                                                                                                                                                                                                                                                                                                                    SX1281GetRxBufferStatus (Thumb, 68 bytes, Stack size 24 bytes, sx1281_driver.o(i.SX1281GetRxBufferStatus))

                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 200
                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281GetRxBufferStatus ⇒ SX1281HalReadRegister ⇒ SX1281HalReadRegisters ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalReadRegister -
                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalReadCommand +
                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalReadRegister +
                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalReadCommand
                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281GetPayload +
                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281GetPayload

                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                        SX1281GetStatus (Thumb, 24 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281GetStatus)) +

                                                                                                                                                                                                                                                                                                                                                                                        SX1281GetStatus (Thumb, 24 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281GetStatus))

                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 176
                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281GetStatus ⇒ SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalReadCommand +
                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalReadCommand

                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                          • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                          SX1281HalGetDioStatus (Thumb, 32 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalGetDioStatus)) +

                                                                                                                                                                                                                                                                                                                                                                                          SX1281HalGetDioStatus (Thumb, 32 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalGetDioStatus))

                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = SX1281HalGetDioStatus
                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                          • >>   GpioRead +
                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                            • >>   GpioRead

                                                                                                                                                                                                                                                                                                                                                                                            [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                            • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                            SX1281HalInit (Thumb, 18 bytes, Stack size 8 bytes, sx1281_driver_hal.o(i.SX1281HalInit)) +

                                                                                                                                                                                                                                                                                                                                                                                            SX1281HalInit (Thumb, 18 bytes, Stack size 8 bytes, sx1281_driver_hal.o(i.SX1281HalInit))

                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 40
                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SX1281HalInit ⇒ SX1281HalIoIrqInit ⇒ GpioSetIrq ⇒ HAL_NVIC_SetPriority
                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalReset -
                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalIoIrqInit +
                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalReset +
                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalIoIrqInit
                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281Init +
                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281Init
                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                SX1281HalIoIrqInit (Thumb, 12 bytes, Stack size 0 bytes, sx1281_driver_hal.o(i.SX1281HalIoIrqInit)) +

                                                                                                                                                                                                                                                                                                                                                                                                SX1281HalIoIrqInit (Thumb, 12 bytes, Stack size 0 bytes, sx1281_driver_hal.o(i.SX1281HalIoIrqInit))

                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 32
                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281HalIoIrqInit ⇒ GpioSetIrq ⇒ HAL_NVIC_SetPriority
                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                • >>   GpioSetIrq +
                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                  • >>   GpioSetIrq
                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalInit +
                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalInit
                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                    SX1281HalReadBuffer (Thumb, 96 bytes, Stack size 24 bytes, sx1281_driver_hal.o(i.SX1281HalReadBuffer)) +

                                                                                                                                                                                                                                                                                                                                                                                                    SX1281HalReadBuffer (Thumb, 96 bytes, Stack size 24 bytes, sx1281_driver_hal.o(i.SX1281HalReadBuffer))

                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 168
                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281HalReadBuffer ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                    • >>   __aeabi_memcpy -
                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SpiInOut -
                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalWaitOnBusy -
                                                                                                                                                                                                                                                                                                                                                                                                    • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SpiInOut +
                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWaitOnBusy +
                                                                                                                                                                                                                                                                                                                                                                                                      • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_memcpy
                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281GetPayload +
                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281GetPayload

                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                        SX1281HalReadCommand (Thumb, 94 bytes, Stack size 24 bytes, sx1281_driver_hal.o(i.SX1281HalReadCommand)) +

                                                                                                                                                                                                                                                                                                                                                                                                        SX1281HalReadCommand (Thumb, 94 bytes, Stack size 24 bytes, sx1281_driver_hal.o(i.SX1281HalReadCommand))

                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 168
                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                        • >>   __aeabi_memcpy -
                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SpiInOut -
                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWaitOnBusy -
                                                                                                                                                                                                                                                                                                                                                                                                        • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SpiInOut +
                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWaitOnBusy +
                                                                                                                                                                                                                                                                                                                                                                                                          • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                          • >>   __aeabi_memcpy
                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281GetStatus -
                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281GetRxBufferStatus -
                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281GetRssiInst -
                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281GetPacketStatus -
                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281GetIrqStatus +
                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281GetStatus +
                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281GetRxBufferStatus +
                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281GetRssiInst +
                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281GetPacketStatus +
                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281GetIrqStatus

                                                                                                                                                                                                                                                                                                                                                                                                            [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                            • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                            SX1281HalReadRegister (Thumb, 16 bytes, Stack size 8 bytes, sx1281_driver_hal.o(i.SX1281HalReadRegister)) +

                                                                                                                                                                                                                                                                                                                                                                                                            SX1281HalReadRegister (Thumb, 16 bytes, Stack size 8 bytes, sx1281_driver_hal.o(i.SX1281HalReadRegister))

                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 176
                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SX1281HalReadRegister ⇒ SX1281HalReadRegisters ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalReadRegisters +
                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalReadRegisters
                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281SetSyncWordErrorTolerance -
                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281GetRxBufferStatus -
                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281GetFrequencyError -
                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281GetFirmwareVersion +
                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281SetSyncWordErrorTolerance +
                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281GetRxBufferStatus +
                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281GetFrequencyError +
                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281GetFirmwareVersion

                                                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                SX1281HalReadRegisters (Thumb, 100 bytes, Stack size 24 bytes, sx1281_driver_hal.o(i.SX1281HalReadRegisters)) +

                                                                                                                                                                                                                                                                                                                                                                                                                SX1281HalReadRegisters (Thumb, 100 bytes, Stack size 24 bytes, sx1281_driver_hal.o(i.SX1281HalReadRegisters))

                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 168
                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281HalReadRegisters ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                • >>   __aeabi_memcpy -
                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SpiInOut -
                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWaitOnBusy -
                                                                                                                                                                                                                                                                                                                                                                                                                • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SpiInOut +
                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWaitOnBusy +
                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_memcpy
                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalReadRegister +
                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalReadRegister

                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                    • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281HalReset (Thumb, 46 bytes, Stack size 8 bytes, sx1281_driver_hal.o(i.SX1281HalReset)) +

                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281HalReset (Thumb, 46 bytes, Stack size 8 bytes, sx1281_driver_hal.o(i.SX1281HalReset))

                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281HalReset ⇒ HAL_Delay
                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_Delay -
                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_Delay +
                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   GpioWrite
                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalInit +
                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalInit

                                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281HalWaitOnBusy (Thumb, 22 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalWaitOnBusy)) +

                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281HalWaitOnBusy (Thumb, 22 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalWaitOnBusy))

                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281HalWaitOnBusy
                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_GPIO_ReadPin +
                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_GPIO_ReadPin
                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalReadRegisters -
                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteRegisters -
                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteCommand -
                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteBuffer -
                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalReadCommand -
                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalReadBuffer +
                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalReadRegisters +
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteRegisters +
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteBuffer +
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalReadCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalReadBuffer
                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281HalWriteBuffer (Thumb, 64 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalWriteBuffer)) +

                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281HalWriteBuffer (Thumb, 64 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalWriteBuffer))

                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 120
                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SX1281HalWriteBuffer ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   __aeabi_memcpy -
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SpiIn -
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWaitOnBusy -
                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SpiIn +
                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalWaitOnBusy +
                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   __aeabi_memcpy
                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281SetPayload +
                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281SetPayload

                                                                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281HalWriteCommand (Thumb, 78 bytes, Stack size 24 bytes, sx1281_driver_hal.o(i.SX1281HalWriteCommand)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281HalWriteCommand (Thumb, 78 bytes, Stack size 24 bytes, sx1281_driver_hal.o(i.SX1281HalWriteCommand))

                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 128
                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   __aeabi_memcpy -
                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SpiIn -
                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWaitOnBusy -
                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SpiIn +
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWaitOnBusy +
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_memcpy
                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetTxParams -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetTxContinuousWave -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetTxContinuousPreamble -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetTx -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetStandby -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetSleep -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetSaveContext -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetRxDutyCycle -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetRx -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetRfFrequency -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetRegulatorMode -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetPacketType -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetPacketParams -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetModulationParams -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetLongPreamble -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetFs -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetDioIrqParams -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetCadParams -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetCad -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetBufferBaseAddresses -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetAutoTx -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetAutoFS -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281ClearIrqStatus -
                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281Calibrate +
                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetTxParams +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetTxContinuousWave +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetTxContinuousPreamble +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetTx +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetStandby +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetSleep +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetSaveContext +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetRxDutyCycle +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetRx +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetRfFrequency +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetRegulatorMode +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetPacketType +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetPacketParams +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetModulationParams +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetLongPreamble +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetFs +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetDioIrqParams +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetCadParams +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetCad +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetBufferBaseAddresses +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetAutoTx +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetAutoFS +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281ClearIrqStatus +
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281Calibrate

                                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                    • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281HalWriteRegister (Thumb, 12 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalWriteRegister)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281HalWriteRegister (Thumb, 12 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalWriteRegister))

                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281HalWriteRegister ⇒ SX1281HalWriteRegisters ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalWriteRegisters +
                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteRegisters
                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281SetWhiteningSeed -
                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281SetSyncWordErrorTolerance -
                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281SetRegistersDefault -
                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281SetBleAccessAddress +
                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281SetWhiteningSeed +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281SetSyncWordErrorTolerance +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281SetRegistersDefault +
                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281SetBleAccessAddress

                                                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281HalWriteRegisters (Thumb, 72 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalWriteRegisters)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281HalWriteRegisters (Thumb, 72 bytes, Stack size 16 bytes, sx1281_driver_hal.o(i.SX1281HalWriteRegisters))

                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 120
                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281HalWriteRegisters ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   __aeabi_memcpy -
                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SpiIn -
                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWaitOnBusy -
                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SpiIn +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWaitOnBusy +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   GpioWrite +
                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   __aeabi_memcpy
                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteRegister -
                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281SetSyncWord -
                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281SetCrcSeed -
                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281SetCrcPolynomial +
                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteRegister +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281SetSyncWord +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281SetCrcSeed +
                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281SetCrcPolynomial

                                                                                                                                                                                                                                                                                                                                                                                                                                            [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                            • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281Init (Thumb, 12 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281Init)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281Init (Thumb, 12 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281Init))

                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 40
                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SX1281Init ⇒ SX1281HalInit ⇒ SX1281HalIoIrqInit ⇒ GpioSetIrq ⇒ HAL_NVIC_SetPriority
                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalInit +
                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalInit

                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                              • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281OnDioIrq (Thumb, 16 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281OnDioIrq)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281OnDioIrq (Thumb, 16 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281OnDioIrq))

                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 192
                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = SX1281OnDioIrq ⇒ SX1281ProcessIrqs ⇒ SX1281GetIrqStatus ⇒ SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281ProcessIrqs +
                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281ProcessIrqs

                                                                                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver.o(.data)
                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281ProcessIrqs (Thumb, 328 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281ProcessIrqs)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281ProcessIrqs (Thumb, 328 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281ProcessIrqs))

                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 192
                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281ProcessIrqs ⇒ SX1281GetIrqStatus ⇒ SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281GetIrqStatus -
                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281ClearIrqStatus +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281GetIrqStatus +
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281ClearIrqStatus
                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281_Running -
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281OnDioIrq +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281OnDioIrq +
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281_Running
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SendPayload (Thumb, 18 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SendPayload)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SendPayload (Thumb, 18 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SendPayload))

                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 152
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281SendPayload ⇒ SX1281SetTx ⇒ SX1281ClearIrqStatus ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetTx -
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetPayload +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281SetTx +
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281SetPayload

                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                      SX1281SetAutoFS (Thumb, 14 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetAutoFS)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                      SX1281SetAutoFS (Thumb, 14 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetAutoFS))

                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = SX1281SetAutoFS ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetAutoTx (Thumb, 26 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetAutoTx)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetAutoTx (Thumb, 26 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetAutoTx))

                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281SetAutoTx ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                          SX1281SetBleAccessAddress (Thumb, 52 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetBleAccessAddress)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                          SX1281SetBleAccessAddress (Thumb, 52 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetBleAccessAddress))

                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 144
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = SX1281SetBleAccessAddress ⇒ SX1281HalWriteRegister ⇒ SX1281HalWriteRegisters ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteRegister +
                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteRegister
                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281SetBleAdvertizerAccessAddress +
                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281SetBleAdvertizerAccessAddress

                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetBleAdvertizerAccessAddress (Thumb, 6 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetBleAdvertizerAccessAddress)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetBleAdvertizerAccessAddress (Thumb, 6 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetBleAdvertizerAccessAddress))

                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 144
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = SX1281SetBleAdvertizerAccessAddress ⇒ SX1281SetBleAccessAddress ⇒ SX1281HalWriteRegister ⇒ SX1281HalWriteRegisters ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281SetBleAccessAddress +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281SetBleAccessAddress

                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281SetBufferBaseAddresses (Thumb, 22 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetBufferBaseAddresses)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281SetBufferBaseAddresses (Thumb, 22 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetBufferBaseAddresses))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281SetBufferBaseAddresses ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SX1281SetCad (Thumb, 20 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetCad)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SX1281SetCad (Thumb, 20 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetCad))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SX1281SetCad ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SetCadParams (Thumb, 20 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetCadParams)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SetCadParams (Thumb, 20 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetCadParams))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281SetCadParams ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SX1281SetCrcPolynomial (Thumb, 36 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetCrcPolynomial)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SX1281SetCrcPolynomial (Thumb, 36 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetCrcPolynomial))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 128
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = SX1281SetCrcPolynomial ⇒ SX1281HalWriteRegisters ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteRegisters +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteRegisters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetCrcSeed (Thumb, 36 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetCrcSeed)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetCrcSeed (Thumb, 36 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetCrcSeed))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 128
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281SetCrcSeed ⇒ SX1281HalWriteRegisters ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteRegisters +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteRegisters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SX1281SetDioIrqParams (Thumb, 54 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetDioIrqParams)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SX1281SetDioIrqParams (Thumb, 54 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetDioIrqParams))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 144
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = SX1281SetDioIrqParams ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281SetFs (Thumb, 20 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetFs)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281SetFs (Thumb, 20 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetFs))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SX1281SetFs ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetInterruptMode (Thumb, 8 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetInterruptMode)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetInterruptMode (Thumb, 8 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetInterruptMode))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetLongPreamble (Thumb, 14 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetLongPreamble)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetLongPreamble (Thumb, 14 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetLongPreamble))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = SX1281SetLongPreamble ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281SetModulationParams (Thumb, 142 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetModulationParams)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281SetModulationParams (Thumb, 142 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetModulationParams))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 152
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281SetModulationParams ⇒ SX1281SetPacketType ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWriteCommand -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281SetPacketType +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetPacketType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SX1281SetPacketParams (Thumb, 212 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetPacketParams)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SX1281SetPacketParams (Thumb, 212 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetPacketParams))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 152
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SX1281SetPacketParams ⇒ SX1281SetPacketType ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWriteCommand -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SetPacketType +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SetPacketType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SetPacketType (Thumb, 22 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetPacketType)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SetPacketType (Thumb, 22 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetPacketType))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281SetPacketType ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteCommand
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281SetPacketParams -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281SetModulationParams +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281SetPacketParams +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281SetModulationParams

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetPayload (Thumb, 10 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetPayload)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetPayload (Thumb, 10 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetPayload))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 120
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281SetPayload ⇒ SX1281HalWriteBuffer ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteBuffer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteBuffer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281SendPayload +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281SendPayload

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281SetPollingMode (Thumb, 8 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetPollingMode)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281SetPollingMode (Thumb, 8 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetPollingMode))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281SetRegistersDefault (Thumb, 32 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetRegistersDefault)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281SetRegistersDefault (Thumb, 32 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetRegistersDefault))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 152
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SX1281SetRegistersDefault ⇒ SX1281HalWriteRegister ⇒ SX1281HalWriteRegisters ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteRegister +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalWriteRegister

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetRegulatorMode (Thumb, 14 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetRegulatorMode)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetRegulatorMode (Thumb, 14 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetRegulatorMode))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = SX1281SetRegulatorMode ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281SetRfFrequency (Thumb, 46 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetRfFrequency)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281SetRfFrequency (Thumb, 46 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetRfFrequency))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281SetRfFrequency ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   __aeabi_ui2d -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   __aeabi_ddiv -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   __aeabi_d2uiz -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_ui2d +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_ddiv +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_d2uiz +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SX1281SetRx (Thumb, 44 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetRx)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SX1281SetRx (Thumb, 44 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetRx))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 144
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SX1281SetRx ⇒ SX1281ClearIrqStatus ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWriteCommand -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281ClearIrqStatus +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281ClearIrqStatus

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SetRxDutyCycle (Thumb, 44 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetRxDutyCycle)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SetRxDutyCycle (Thumb, 44 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetRxDutyCycle))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 144
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281SetRxDutyCycle ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SX1281SetSaveContext (Thumb, 10 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetSaveContext)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SX1281SetSaveContext (Thumb, 10 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetSaveContext))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 128
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = SX1281SetSaveContext ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetSleep (Thumb, 50 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetSleep)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetSleep (Thumb, 50 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetSleep))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281SetSleep ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SX1281SetStandby (Thumb, 30 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetStandby)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SX1281SetStandby (Thumb, 30 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetStandby))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = SX1281SetStandby ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281SetSyncWord (Thumb, 104 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetSyncWord)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281SetSyncWord (Thumb, 104 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetSyncWord))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 128
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SX1281SetSyncWord ⇒ SX1281HalWriteRegisters ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteRegisters +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalWriteRegisters

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetSyncWordErrorTolerance (Thumb, 34 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetSyncWordErrorTolerance)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SX1281SetSyncWordErrorTolerance (Thumb, 34 bytes, Stack size 16 bytes, sx1281_driver.o(i.SX1281SetSyncWordErrorTolerance))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 192
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = SX1281SetSyncWordErrorTolerance ⇒ SX1281HalReadRegister ⇒ SX1281HalReadRegisters ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalWriteRegister -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281HalReadRegister +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWriteRegister +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalReadRegister

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281SetTx (Thumb, 44 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetTx)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281SetTx (Thumb, 44 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetTx))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 144
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281SetTx ⇒ SX1281ClearIrqStatus ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281HalWriteCommand -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281ClearIrqStatus +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281ClearIrqStatus
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281SendPayload +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281SendPayload

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SetTxContinuousPreamble (Thumb, 10 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetTxContinuousPreamble)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SX1281SetTxContinuousPreamble (Thumb, 10 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetTxContinuousPreamble))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 128
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SX1281SetTxContinuousPreamble ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SX1281SetTxContinuousWave (Thumb, 10 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetTxContinuousWave)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SX1281SetTxContinuousWave (Thumb, 10 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetTxContinuousWave))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 128
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = SX1281SetTxContinuousWave ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetTxParams (Thumb, 24 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetTxParams)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281SetTxParams (Thumb, 24 bytes, Stack size 8 bytes, sx1281_driver.o(i.SX1281SetTxParams))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281SetTxParams ⇒ SX1281HalWriteCommand ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteCommand

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SX1281SetWhiteningSeed (Thumb, 26 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetWhiteningSeed)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SX1281SetWhiteningSeed (Thumb, 26 bytes, Stack size 0 bytes, sx1281_driver.o(i.SX1281SetWhiteningSeed))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = SX1281SetWhiteningSeed ⇒ SX1281HalWriteRegister ⇒ SX1281HalWriteRegisters ⇒ SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalWriteRegister +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalWriteRegister

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • sx1281_driver_hal.o(.constdata)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281_BSPInit (Thumb, 14 bytes, Stack size 8 bytes, sx1281_header.o(i.SX1281_BSPInit)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281_BSPInit (Thumb, 14 bytes, Stack size 8 bytes, sx1281_header.o(i.SX1281_BSPInit))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SX1281_BSPInit ⇒ SpiInit
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SpiInit -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   GpioInit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SpiInit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   GpioInit
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281_Init
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281_Callback (Thumb, 170 bytes, Stack size 32 bytes, mr16.o(i.SX1281_Callback)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 56
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281_Callback ⇒ SX1281_SetTX +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SX1281_Callback (Thumb, 166 bytes, Stack size 24 bytes, mr16.o(i.SX1281_Callback)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SX1281_Callback ⇒ SX1281_SetTX
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281_SetTX -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __2printf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281_SetTX +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281_SetRXSuccessive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   __2printf
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   OnTxTimeout -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   OnTxDone -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   OnRxTimeout -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   OnRxError -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   OnRxDone +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   OnTxTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   OnTxDone +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   OnRxTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   OnRxError +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   OnRxDone
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SX1281_GetState (Thumb, 20 bytes, Stack size 0 bytes, sx1281.o(i.SX1281_GetState)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281_Running +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281_GetState (Thumb, 20 bytes, Stack size 0 bytes, sx1281.o(i.SX1281_GetState)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281_Running
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281_Init (Thumb, 582 bytes, Stack size 48 bytes, sx1281.o(i.SX1281_Init)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SX1281_Init (Thumb, 590 bytes, Stack size 48 bytes, sx1281.o(i.SX1281_Init))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 72
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SX1281_Init ⇒ __2printf
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_Delay -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281_BSPInit -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   __2printf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_Delay +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281_BSPInit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   __2printf
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   MR16_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MR16_Init
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281_Running (Thumb, 24 bytes, Stack size 8 bytes, sx1281.o(i.SX1281_Running)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SX1281_Running (Thumb, 18 bytes, Stack size 8 bytes, sx1281.o(i.SX1281_Running))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 200
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SX1281_Running ⇒ SX1281ProcessIrqs ⇒ SX1281GetIrqStatus ⇒ SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_Delay -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281ProcessIrqs -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281_GetState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281ProcessIrqs +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281_GetState
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   main +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   MR16_Main
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281_SetRXSuccessive (Thumb, 30 bytes, Stack size 16 bytes, sx1281.o(i.SX1281_SetRXSuccessive)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SX1281_SetRXSuccessive (Thumb, 34 bytes, Stack size 16 bytes, sx1281.o(i.SX1281_SetRXSuccessive))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SX1281_SetRXSuccessive
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   MR16_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   MR16_Init
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SX1281_SetTX (Thumb, 42 bytes, Stack size 24 bytes, sx1281.o(i.SX1281_SetTX)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SX1281_SetTX (Thumb, 46 bytes, Stack size 24 bytes, sx1281.o(i.SX1281_SetTX))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SX1281_SetTX
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   MR16_Main +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   mr16CommandHandler
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SpiIn (Thumb, 18 bytes, Stack size 0 bytes, sx1281_driver_spi.o(i.SpiIn)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SpiIn (Thumb, 18 bytes, Stack size 0 bytes, sx1281_driver_spi.o(i.SpiIn))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 104
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SpiIn ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   BSP_SPI_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   BSP_SPI_Transmit
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteRegisters -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteCommand -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281HalWriteBuffer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteRegisters +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281HalWriteBuffer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SpiInOut (Thumb, 26 bytes, Stack size 16 bytes, sx1281_driver_spi.o(i.SpiInOut)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SpiInOut (Thumb, 26 bytes, Stack size 16 bytes, sx1281_driver_spi.o(i.SpiInOut))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 144
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   BSP_SPI_TransmitReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   BSP_SPI_TransmitReceive
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalReadRegisters -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalReadCommand -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SX1281HalReadBuffer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalReadRegisters +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalReadCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281HalReadBuffer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SpiInit (Thumb, 26 bytes, Stack size 8 bytes, sx1281_driver_spi.o(i.SpiInit)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SpiInit (Thumb, 26 bytes, Stack size 8 bytes, sx1281_driver_spi.o(i.SpiInit))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SpiInit
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   BSP_SPI_RegisterCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   BSP_SPI_RegisterCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SX1281_BSPInit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SX1281_BSPInit
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SysTick_Handler (Thumb, 4 bytes, Stack size 0 bytes, stm32f1xx_it.o(i.SysTick_Handler)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_IncTick +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  StartDefaultTask (Thumb, 14 bytes, Stack size 8 bytes, freertos.o(i.StartDefaultTask)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 120
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = StartDefaultTask ⇒ osThreadTerminate ⇒ vTaskDelete ⇒ prvDeleteTCB ⇒ vPortFree ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   osThreadTerminate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   osThreadGetId +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • freertos.o(i.MX_FREERTOS_Init) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SysTick_Handler (Thumb, 24 bytes, Stack size 8 bytes, stm32f1xx_it.o(i.SysTick_Handler)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 40
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SysTick_Handler ⇒ xPortSysTickHandler ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskGetSchedulerState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xPortSysTickHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_IncTick

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • startup_stm32f103xb.o(RESET)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SystemClock_Config (Thumb, 96 bytes, Stack size 72 bytes, main.o(i.SystemClock_Config)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SystemClock_Config (Thumb, 96 bytes, Stack size 72 bytes, main.o(i.SystemClock_Config))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SystemClock_Config ⇒ HAL_RCC_ClockConfig ⇒ HAL_InitTick ⇒ HAL_NVIC_SetPriority
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_RCC_OscConfig -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_RCC_ClockConfig -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_memclr4 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_RCC_OscConfig +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_RCC_ClockConfig +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   __aeabi_memclr4

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   main
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    @@ -1904,59 +2191,88 @@ Global Symbols

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SystemInit (Thumb, 2 bytes, Stack size 0 bytes, system_stm32f1xx.o(i.SystemInit))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • startup_stm32f103xb.o(.text)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    TIM_Base_SetConfig (Thumb, 108 bytes, Stack size 20 bytes, stm32f1xx_hal_tim.o(i.TIM_Base_SetConfig)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    TIM_Base_SetConfig (Thumb, 108 bytes, Stack size 20 bytes, stm32f1xx_hal_tim.o(i.TIM_Base_SetConfig))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 20
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = TIM_Base_SetConfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_TIM_PWM_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_TIM_Base_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIM_PWM_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIM_Base_Init
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      TIM_ETR_SetConfig (Thumb, 20 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.TIM_ETR_SetConfig)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      TIM_ETR_SetConfig (Thumb, 20 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.TIM_ETR_SetConfig))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = TIM_ETR_SetConfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_TIM_ConfigClockSource +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_ConfigClockSource
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TIM_OC2_SetConfig (Thumb, 84 bytes, Stack size 12 bytes, stm32f1xx_hal_tim.o(i.TIM_OC2_SetConfig)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TIM_OC2_SetConfig (Thumb, 84 bytes, Stack size 12 bytes, stm32f1xx_hal_tim.o(i.TIM_OC2_SetConfig))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = TIM_OC2_SetConfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_PWM_ConfigChannel +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_TIM_PWM_ConfigChannel
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UART_Start_Receive_DMA (Thumb, 130 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Task_Init (Thumb, 48 bytes, Stack size 8 bytes, init.o(i.Task_Init)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 184
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = Task_Init ⇒ osThreadNew ⇒ xTaskCreate ⇒ pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osThreadTerminate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osThreadNew +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osThreadGetId +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osMessageQueueNew +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osKernelUnlock +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osKernelLock +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • freertos.o(i.MX_FREERTOS_Init) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Task_radio (Thumb, 100 bytes, Stack size 152 bytes, radio.o(i.Task_radio)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 504
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = Task_radio ⇒ MR16_Init ⇒ LCD_DrawString ⇒ LCD_DrawChar ⇒ LCD_DrawPoint ⇒ LCD_SetAddressWindow ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osKernelGetTickFreq +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osKernelGetTickCount +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osDelayUntil +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   osDelay +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   __aeabi_ui2d +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   __aeabi_ddiv +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   __aeabi_d2uiz +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   __aeabi_memcpy4 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   MR16_Main +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   MR16_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • init.o(i.Task_Init) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UART_Start_Receive_DMA (Thumb, 130 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = UART_Start_Receive_DMA ⇒ HAL_DMA_Start_IT ⇒ DMA_SetConfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_DMA_Start_IT +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_DMA_Start_IT
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_UART_Receive_DMA +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_UART_Receive_DMA

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              USART2_IRQHandler (Thumb, 18 bytes, Stack size 8 bytes, stm32f1xx_it.o(i.USART2_IRQHandler))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 104
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = USART2_IRQHandler ⇒ USER_UART_IRQHandler ⇒ USAR_UART_IDLECallback ⇒ HAL_UART_Transmit ⇒ UART_WaitOnFlagUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_UART_IRQHandler -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   USER_UART_IRQHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_UART_IRQHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   USER_UART_IRQHandler

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • startup_stm32f103xb.o(RESET)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                USAR_UART_IDLECallback (Thumb, 104 bytes, Stack size 16 bytes, usart.o(i.USAR_UART_IDLECallback)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                USAR_UART_IDLECallback (Thumb, 104 bytes, Stack size 16 bytes, usart.o(i.USAR_UART_IDLECallback))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 80
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = USAR_UART_IDLECallback ⇒ HAL_UART_Transmit ⇒ UART_WaitOnFlagUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_UART_Transmit -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_UART_Receive_DMA -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_UART_DMAStop -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   strcpy -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   __aeabi_memclr4 -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   __2printf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_Receive_DMA +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_DMAStop +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   strcpy +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_memclr4 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   MR16_NotifyUARTIdle +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __2printf
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   USER_UART_IRQHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   USER_UART_IRQHandler
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    USER_UART_IRQHandler (Thumb, 46 bytes, Stack size 16 bytes, usart.o(i.USER_UART_IRQHandler)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    USER_UART_IRQHandler (Thumb, 46 bytes, Stack size 16 bytes, usart.o(i.USER_UART_IRQHandler))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 96
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = USER_UART_IRQHandler ⇒ USAR_UART_IDLECallback ⇒ HAL_UART_Transmit ⇒ UART_WaitOnFlagUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   USAR_UART_IDLECallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   __2printf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   USAR_UART_IDLECallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __2printf

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   USART2_IRQHandler
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      @@ -1968,321 +2284,1213 @@ Global Symbols

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • startup_stm32f103xb.o(RESET)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    __0printf (Thumb, 22 bytes, Stack size 24 bytes, printfa.o(i.__0printf), UNUSED) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   _printf_core +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      __0printf (Thumb, 22 bytes, Stack size 24 bytes, printfa.o(i.__0printf), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   _printf_core
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      __1printf (Thumb, 0 bytes, Stack size 24 bytes, printfa.o(i.__0printf), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      __1printf (Thumb, 0 bytes, Stack size 24 bytes, printfa.o(i.__0printf), UNUSED) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      __2printf (Thumb, 0 bytes, Stack size 24 bytes, printfa.o(i.__0printf)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      __2printf (Thumb, 0 bytes, Stack size 24 bytes, printfa.o(i.__0printf))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = __2printf
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   USER_UART_IRQHandler -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   USAR_UART_IDLECallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   USER_UART_IRQHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   USAR_UART_IDLECallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SX1281_Callback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   MR16_Main
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __c89printf (Thumb, 0 bytes, Stack size 24 bytes, printfa.o(i.__0printf), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __c89printf (Thumb, 0 bytes, Stack size 24 bytes, printfa.o(i.__0printf), UNUSED) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        printf (Thumb, 0 bytes, Stack size 24 bytes, printfa.o(i.__0printf), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        printf (Thumb, 0 bytes, Stack size 24 bytes, printfa.o(i.__0printf), UNUSED) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __scatterload_copy (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_copy), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __0snprintf (Thumb, 48 bytes, Stack size 40 bytes, printfa.o(i.__0snprintf), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   _printf_core +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __scatterload_null (Thumb, 2 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_null), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __1snprintf (Thumb, 0 bytes, Stack size 40 bytes, printfa.o(i.__0snprintf), UNUSED) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __scatterload_zeroinit (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_zeroinit), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __2snprintf (Thumb, 0 bytes, Stack size 40 bytes, printfa.o(i.__0snprintf)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 40
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = __2snprintf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   radioCommandHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   mr16CommandHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        fputc (Thumb, 24 bytes, Stack size 16 bytes, sx1281_header.o(i.fputc)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __c89snprintf (Thumb, 0 bytes, Stack size 40 bytes, printfa.o(i.__0snprintf), UNUSED) + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        snprintf (Thumb, 0 bytes, Stack size 40 bytes, printfa.o(i.__0snprintf), UNUSED) + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __scatterload_copy (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_copy), UNUSED) + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __scatterload_null (Thumb, 2 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_null), UNUSED) + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __scatterload_zeroinit (Thumb, 14 bytes, Stack size unknown bytes, handlers.o(i.__scatterload_zeroinit), UNUSED) + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        eTaskGetState (Thumb, 106 bytes, Stack size 24 bytes, tasks.o(i.eTaskGetState)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = eTaskGetState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   osThreadTerminate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        fputc (Thumb, 24 bytes, Stack size 16 bytes, sx1281_header.o(i.fputc))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 80
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = fputc ⇒ HAL_UART_Transmit ⇒ UART_WaitOnFlagUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_UART_Transmit -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   BSP_UART_GetHandle +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_UART_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   BSP_UART_GetHandle

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • printfa.o(i.__0printf)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          main (Thumb, 60 bytes, Stack size 0 bytes, main.o(i.main)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 200
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = main ⇒ SX1281_Running ⇒ SX1281ProcessIrqs ⇒ SX1281GetIrqStatus ⇒ SX1281HalReadCommand ⇒ SpiInOut ⇒ BSP_SPI_TransmitReceive ⇒ HAL_SPI_TransmitReceive ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            free (Thumb, 76 bytes, Stack size 8 bytes, malloc.o(i.free)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = free
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SX1281_Running -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MX_USART2_UART_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MX_USART1_UART_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MX_TIM1_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MX_SPI2_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MX_SPI1_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MX_GPIO_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MX_DMA_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MR16_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SystemClock_Config +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   LCD_Clear +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              main (Thumb, 50 bytes, Stack size 0 bytes, main.o(i.main)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 184
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = main ⇒ MX_FREERTOS_Init ⇒ osThreadNew ⇒ xTaskCreate ⇒ pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   osKernelStart +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   osKernelInitialize +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   MX_USART2_UART_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   MX_USART1_UART_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   MX_TIM1_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   MX_SPI2_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   MX_SPI1_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   MX_GPIO_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   MX_FREERTOS_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   MX_DMA_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SystemClock_Config

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • entry9a.o(.ARM.Collect$$$$0000000B) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            malloc (Thumb, 92 bytes, Stack size 20 bytes, malloc.o(i.malloc)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 20
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = malloc +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   LCD_Clear +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osDelay (Thumb, 26 bytes, Stack size 8 bytes, cmsis_os2.o(i.osDelay)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 72
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = osDelay ⇒ vTaskDelay ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelay +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_radio +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osDelayUntil (Thumb, 46 bytes, Stack size 16 bytes, cmsis_os2.o(i.osDelayUntil)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = osDelayUntil ⇒ vTaskDelayUntil ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetTickCount +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelayUntil +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_radio +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osKernelGetTickCount (Thumb, 14 bytes, Stack size 0 bytes, cmsis_os2.o(i.osKernelGetTickCount)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = osKernelGetTickCount ⇒ xTaskGetTickCountFromISR ⇒ vPortValidateInterruptPriority +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetTickCountFromISR +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetTickCount +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_radio +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osKernelGetTickFreq (Thumb, 6 bytes, Stack size 0 bytes, cmsis_os2.o(i.osKernelGetTickFreq)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_radio +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osKernelInitialize (Thumb, 32 bytes, Stack size 0 bytes, cmsis_os2.o(i.osKernelInitialize)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   main +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osKernelLock (Thumb, 42 bytes, Stack size 8 bytes, cmsis_os2.o(i.osKernelLock)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = osKernelLock +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetSchedulerState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskSuspendAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osKernelStart (Thumb, 48 bytes, Stack size 8 bytes, cmsis_os2.o(i.osKernelStart)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 168
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = osKernelStart ⇒ vTaskStartScheduler ⇒ xTimerCreateTimerTask ⇒ xTaskCreateStatic ⇒ prvInitialiseNewTask ⇒ pxPortInitialiseStack +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskStartScheduler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   main +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osKernelUnlock (Thumb, 58 bytes, Stack size 16 bytes, cmsis_os2.o(i.osKernelUnlock)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 72
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = osKernelUnlock ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetSchedulerState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osMessageQueueNew (Thumb, 88 bytes, Stack size 24 bytes, cmsis_os2.o(i.osMessageQueueNew)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 128
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = osMessageQueueNew ⇒ xQueueGenericCreate ⇒ pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericCreateStatic +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericCreate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vQueueAddToRegistry +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osThreadGetId (Thumb, 4 bytes, Stack size 0 bytes, cmsis_os2.o(i.osThreadGetId)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetCurrentTaskHandle +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   StartDefaultTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osThreadNew (Thumb, 138 bytes, Stack size 40 bytes, cmsis_os2.o(i.osThreadNew)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 176
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = osThreadNew ⇒ xTaskCreate ⇒ pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCreateStatic +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCreate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   MX_FREERTOS_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            osThreadTerminate (Thumb, 52 bytes, Stack size 16 bytes, cmsis_os2.o(i.osThreadTerminate)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 112
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = osThreadTerminate ⇒ vTaskDelete ⇒ prvDeleteTCB ⇒ vPortFree ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelete +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   eTaskGetState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   Task_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   StartDefaultTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            pvPortMalloc (Thumb, 216 bytes, Stack size 24 bytes, heap_4.o(i.pvPortMalloc)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 80
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskSuspendAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInsertBlockIntoFreeList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvHeapInit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericCreate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCreate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   FreeRTOS_CLIRegisterCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            pxPortInitialiseStack (Thumb, 32 bytes, Stack size 8 bytes, port.o(i.pxPortInitialiseStack)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = pxPortInitialiseStack +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInitialiseNewTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            uxListRemove (Thumb, 38 bytes, Stack size 0 bytes, list.o(i.uxListRemove)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskPriorityDisinherit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvSwitchTimerLists +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvProcessTimerOrBlockTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvProcessReceivedCommands +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelete +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvIdleTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddCurrentTaskToDelayedList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vApplicationGetIdleTaskMemory (Thumb, 16 bytes, Stack size 0 bytes, cmsis_os2.o(i.vApplicationGetIdleTaskMemory)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskStartScheduler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vApplicationGetTimerTaskMemory (Thumb, 18 bytes, Stack size 0 bytes, cmsis_os2.o(i.vApplicationGetTimerTaskMemory)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTimerCreateTimerTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vListInitialise (Thumb, 22 bytes, Stack size 0 bytes, list.o(i.vListInitialise)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericReset +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCheckForValidListAndQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddNewTaskToReadyList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vListInitialiseItem (Thumb, 6 bytes, Stack size 0 bytes, list.o(i.vListInitialiseItem)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInitialiseNewTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vListInsert (Thumb, 48 bytes, Stack size 12 bytes, list.o(i.vListInsert)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskPlaceOnEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvSwitchTimerLists +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInsertTimerInActiveList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddCurrentTaskToDelayedList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vListInsertEnd (Thumb, 24 bytes, Stack size 0 bytes, list.o(i.vListInsertEnd)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskPriorityDisinherit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskPlaceOnEventListRestricted +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelete +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddNewTaskToReadyList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddCurrentTaskToDelayedList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vPortEnterCritical (Thumb, 54 bytes, Stack size 0 bytes, port.o(i.vPortEnterCritical)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCheckForTimeOut +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericReset +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vQueueWaitForMessageRestricted +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvUnlockQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvIsQueueEmpty +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCheckForValidListAndQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelete +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   eTaskGetState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvIdleTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddNewTaskToReadyList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   FreeRTOS_CLIRegisterCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vPortExitCritical (Thumb, 34 bytes, Stack size 0 bytes, port.o(i.vPortExitCritical)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCheckForTimeOut +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericReset +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vQueueWaitForMessageRestricted +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvUnlockQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvIsQueueEmpty +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCheckForValidListAndQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelete +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   eTaskGetState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvIdleTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddNewTaskToReadyList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   FreeRTOS_CLIRegisterCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vPortFree (Thumb, 94 bytes, Stack size 16 bytes, heap_4.o(i.vPortFree)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 72
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vPortFree ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskSuspendAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInsertBlockIntoFreeList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvProcessReceivedCommands +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCreate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvDeleteTCB +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vPortSetupTimerInterrupt (Thumb, 32 bytes, Stack size 0 bytes, port.o(i.vPortSetupTimerInterrupt)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xPortStartScheduler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vPortValidateInterruptPriority (Thumb, 74 bytes, Stack size 8 bytes, port.o(i.vPortValidateInterruptPriority)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vPortValidateInterruptPriority +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortGetIPSR +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSendFromISR +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetTickCountFromISR +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vQueueAddToRegistry (Thumb, 34 bytes, Stack size 8 bytes, queue.o(i.vQueueAddToRegistry)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vQueueAddToRegistry +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osMessageQueueNew +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCheckForValidListAndQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vQueueWaitForMessageRestricted (Thumb, 68 bytes, Stack size 16 bytes, queue.o(i.vQueueWaitForMessageRestricted)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 68
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vQueueWaitForMessageRestricted ⇒ vTaskPlaceOnEventListRestricted ⇒ prvAddCurrentTaskToDelayedList ⇒ vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskPlaceOnEventListRestricted +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvUnlockQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvProcessTimerOrBlockTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskDelay (Thumb, 66 bytes, Stack size 8 bytes, tasks.o(i.vTaskDelay)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vTaskDelay ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskSuspendAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddCurrentTaskToDelayedList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osDelay +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskDelayUntil (Thumb, 132 bytes, Stack size 16 bytes, tasks.o(i.vTaskDelayUntil)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 72
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vTaskDelayUntil ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskSuspendAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddCurrentTaskToDelayedList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osDelayUntil +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskDelete (Thumb, 130 bytes, Stack size 16 bytes, tasks.o(i.vTaskDelete)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 96
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vTaskDelete ⇒ prvDeleteTCB ⇒ vPortFree ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vListInsertEnd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvResetNextTaskUnblockTime +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvDeleteTCB +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osThreadTerminate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskInternalSetTimeOutState (Thumb, 12 bytes, Stack size 0 bytes, tasks.o(i.vTaskInternalSetTimeOutState)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCheckForTimeOut +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskMissedYield (Thumb, 8 bytes, Stack size 0 bytes, tasks.o(i.vTaskMissedYield)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvUnlockQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskPlaceOnEventList (Thumb, 44 bytes, Stack size 8 bytes, tasks.o(i.vTaskPlaceOnEventList)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 44
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vTaskPlaceOnEventList ⇒ prvAddCurrentTaskToDelayedList ⇒ vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddCurrentTaskToDelayedList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskPlaceOnEventListRestricted (Thumb, 52 bytes, Stack size 16 bytes, tasks.o(i.vTaskPlaceOnEventListRestricted)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 52
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vTaskPlaceOnEventListRestricted ⇒ prvAddCurrentTaskToDelayedList ⇒ vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vListInsertEnd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddCurrentTaskToDelayedList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vQueueWaitForMessageRestricted +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskStartScheduler (Thumb, 118 bytes, Stack size 40 bytes, tasks.o(i.vTaskStartScheduler)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 160
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vTaskStartScheduler ⇒ xTimerCreateTimerTask ⇒ xTaskCreateStatic ⇒ prvInitialiseNewTask ⇒ pxPortInitialiseStack +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTimerCreateTimerTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xPortStartScheduler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vApplicationGetIdleTaskMemory +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCreateStatic +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osKernelStart +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskSuspendAll (Thumb, 10 bytes, Stack size 0 bytes, tasks.o(i.vTaskSuspendAll)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortFree +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   pvPortMalloc +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osKernelLock +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvProcessTimerOrBlockTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelayUntil +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelay +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            vTaskSwitchContext (Thumb, 90 bytes, Stack size 8 bytes, tasks.o(i.vTaskSwitchContext)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = vTaskSwitchContext +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   PendSV_Handler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xPortStartScheduler (Thumb, 154 bytes, Stack size 16 bytes, port.o(i.xPortStartScheduler)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xPortStartScheduler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortSetupTimerInterrupt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   __asm___6_port_c_39a90d8d__prvStartFirstTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskStartScheduler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xPortSysTickHandler (Thumb, 38 bytes, Stack size 8 bytes, port.o(i.xPortSysTickHandler)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 32
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xPortSysTickHandler ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SysTick_Handler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xQueueGenericCreate (Thumb, 66 bytes, Stack size 24 bytes, queue.o(i.xQueueGenericCreate)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 104
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xQueueGenericCreate ⇒ pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInitialiseNewQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   pvPortMalloc +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osMessageQueueNew +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xQueueGenericCreateStatic (Thumb, 102 bytes, Stack size 16 bytes, queue.o(i.xQueueGenericCreateStatic)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xQueueGenericCreateStatic ⇒ prvInitialiseNewQueue ⇒ xQueueGenericReset ⇒ xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInitialiseNewQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osMessageQueueNew +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCheckForValidListAndQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xQueueGenericReset (Thumb, 132 bytes, Stack size 16 bytes, queue.o(i.xQueueGenericReset)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 32
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xQueueGenericReset ⇒ xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vListInitialise +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInitialiseNewQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xQueueGenericSend (Thumb, 346 bytes, Stack size 56 bytes, queue.o(i.xQueueGenericSend)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 112
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xQueueGenericSend ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetSchedulerState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCheckForTimeOut +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskPlaceOnEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskInternalSetTimeOutState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvUnlockQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCopyDataToQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskSuspendAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTimerGenericCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xQueueGenericSendFromISR (Thumb, 190 bytes, Stack size 32 bytes, queue.o(i.xQueueGenericSendFromISR)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 72
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xQueueGenericSendFromISR ⇒ prvCopyDataToQueue ⇒ xTaskPriorityDisinherit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortValidateInterruptPriority +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCopyDataToQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTimerGenericCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xQueueReceive (Thumb, 308 bytes, Stack size 56 bytes, queue.o(i.xQueueReceive)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 112
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xQueueReceive ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetSchedulerState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCheckForTimeOut +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskPlaceOnEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskInternalSetTimeOutState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvUnlockQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvIsQueueEmpty +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCopyDataFromQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskSuspendAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvProcessReceivedCommands +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskCheckForTimeOut (Thumb, 112 bytes, Stack size 24 bytes, tasks.o(i.xTaskCheckForTimeOut)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTaskCheckForTimeOut +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskInternalSetTimeOutState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskCreate (Thumb, 90 bytes, Stack size 56 bytes, tasks.o(i.xTaskCreate)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 136
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTaskCreate ⇒ pvPortMalloc ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortFree +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   pvPortMalloc +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInitialiseNewTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddNewTaskToReadyList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osThreadNew +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskCreateStatic (Thumb, 86 bytes, Stack size 40 bytes, tasks.o(i.xTaskCreateStatic)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 88
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTaskCreateStatic ⇒ prvInitialiseNewTask ⇒ pxPortInitialiseStack +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvInitialiseNewTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvAddNewTaskToReadyList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osThreadNew +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTimerCreateTimerTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskStartScheduler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskGetCurrentTaskHandle (Thumb, 6 bytes, Stack size 0 bytes, tasks.o(i.xTaskGetCurrentTaskHandle)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osThreadGetId +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskGetSchedulerState (Thumb, 22 bytes, Stack size 0 bytes, tasks.o(i.xTaskGetSchedulerState)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SysTick_Handler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osKernelUnlock +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osKernelLock +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTimerGenericCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskGetTickCount (Thumb, 6 bytes, Stack size 0 bytes, tasks.o(i.xTaskGetTickCount)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osKernelGetTickCount +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osDelayUntil +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvSampleTimeNow +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskGetTickCountFromISR (Thumb, 12 bytes, Stack size 8 bytes, tasks.o(i.xTaskGetTickCountFromISR)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTaskGetTickCountFromISR ⇒ vPortValidateInterruptPriority +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortValidateInterruptPriority +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osKernelGetTickCount +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskIncrementTick (Thumb, 192 bytes, Stack size 24 bytes, tasks.o(i.xTaskIncrementTick)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vListInsertEnd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvResetNextTaskUnblockTime +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xPortSysTickHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskPriorityDisinherit (Thumb, 118 bytes, Stack size 16 bytes, tasks.o(i.xTaskPriorityDisinherit)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTaskPriorityDisinherit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vListInsertEnd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCopyDataToQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskRemoveFromEventList (Thumb, 98 bytes, Stack size 16 bytes, tasks.o(i.xTaskRemoveFromEventList)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vListInsertEnd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSendFromISR +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericReset +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvUnlockQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTaskResumeAll (Thumb, 182 bytes, Stack size 32 bytes, tasks.o(i.xTaskResumeAll)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 56
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vListInsertEnd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvResetNextTaskUnblockTime +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vPortFree +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   pvPortMalloc +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   osKernelUnlock +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvProcessTimerOrBlockTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelayUntil +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskDelay +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTimerCreateTimerTask (Thumb, 78 bytes, Stack size 32 bytes, timers.o(i.xTimerCreateTimerTask)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 120
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTimerCreateTimerTask ⇒ xTaskCreateStatic ⇒ prvInitialiseNewTask ⇒ pxPortInitialiseStack +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vApplicationGetTimerTaskMemory +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvCheckForValidListAndQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskCreateStatic +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   vTaskStartScheduler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            xTimerGenericCommand (Thumb, 98 bytes, Stack size 40 bytes, timers.o(i.xTimerGenericCommand)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 152
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = xTimerGenericCommand ⇒ xQueueGenericSend ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xTaskGetSchedulerState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSendFromISR +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvSwitchTimerLists +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvProcessTimerOrBlockTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   prvProcessReceivedCommands +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Local Symbols

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SPI_DMAError (Thumb, 34 bytes, Stack size 8 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAError)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            DMA_SetConfig (Thumb, 42 bytes, Stack size 12 bytes, stm32f1xx_hal_dma.o(i.DMA_SetConfig)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = DMA_SetConfig +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_DMA_Start_IT +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            __NVIC_SetPriority (Thumb, 32 bytes, Stack size 0 bytes, stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_NVIC_SetPriority +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_SYSTICK_Config +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SPI_DMAError (Thumb, 34 bytes, Stack size 8 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAError))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = SPI_DMAError ⇒ HAL_SPI_ErrorCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_SPI_ErrorCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_SPI_ErrorCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 2]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SPI_DMAHalfReceiveCplt (Thumb, 10 bytes, Stack size 8 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAHalfReceiveCplt)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SPI_DMAHalfReceiveCplt (Thumb, 10 bytes, Stack size 8 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAHalfReceiveCplt))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = SPI_DMAHalfReceiveCplt ⇒ HAL_SPI_RxHalfCpltCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_SPI_RxHalfCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_SPI_RxHalfCpltCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SPI_DMAHalfTransmitCplt (Thumb, 10 bytes, Stack size 8 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitCplt)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SPI_DMAHalfTransmitCplt (Thumb, 10 bytes, Stack size 8 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitCplt))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = SPI_DMAHalfTransmitCplt ⇒ HAL_SPI_TxHalfCpltCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_SPI_TxHalfCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_TxHalfCpltCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SPI_DMAHalfTransmitReceiveCplt (Thumb, 10 bytes, Stack size 8 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitReceiveCplt)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SPI_DMAHalfTransmitReceiveCplt (Thumb, 10 bytes, Stack size 8 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitReceiveCplt))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SPI_DMAHalfTransmitReceiveCplt ⇒ HAL_SPI_TxRxHalfCpltCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_TxRxHalfCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_SPI_TxRxHalfCpltCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SPI_DMAReceiveCplt (Thumb, 106 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAReceiveCplt)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SPI_DMAReceiveCplt (Thumb, 106 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.SPI_DMAReceiveCplt))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 72
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = SPI_DMAReceiveCplt ⇒ SPI_EndRxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SPI_EndRxTransaction -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_GetTick -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_SPI_RxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_SPI_ErrorCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_GetTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SPI_EndRxTransaction +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_SPI_RxCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_SPI_ErrorCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SPI_DMATransmitCplt (Thumb, 100 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.SPI_DMATransmitCplt)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SPI_DMATransmitCplt (Thumb, 100 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.SPI_DMATransmitCplt))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 72
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = SPI_DMATransmitCplt ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SPI_EndRxTxTransaction -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_GetTick -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_SPI_TxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_SPI_ErrorCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_GetTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SPI_EndRxTxTransaction +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_SPI_TxCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_SPI_ErrorCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SPI_DMATransmitReceiveCplt (Thumb, 90 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.SPI_DMATransmitReceiveCplt)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SPI_DMATransmitReceiveCplt (Thumb, 90 bytes, Stack size 16 bytes, stm32f1xx_hal_spi.o(i.SPI_DMATransmitReceiveCplt))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 72
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = SPI_DMATransmitReceiveCplt ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   SPI_EndRxTxTransaction -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_GetTick -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_SPI_TxRxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_SPI_ErrorCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_GetTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SPI_EndRxTxTransaction +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_SPI_TxRxCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_SPI_ErrorCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SPI_EndRxTransaction (Thumb, 92 bytes, Stack size 24 bytes, stm32f1xx_hal_spi.o(i.SPI_EndRxTransaction)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SPI_EndRxTransaction (Thumb, 92 bytes, Stack size 24 bytes, stm32f1xx_hal_spi.o(i.SPI_EndRxTransaction))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 56
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = SPI_EndRxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   SPI_DMAReceiveCplt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SPI_DMAReceiveCplt
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SPI_EndRxTxTransaction (Thumb, 52 bytes, Stack size 24 bytes, stm32f1xx_hal_spi.o(i.SPI_EndRxTxTransaction)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SPI_EndRxTxTransaction (Thumb, 52 bytes, Stack size 24 bytes, stm32f1xx_hal_spi.o(i.SPI_EndRxTxTransaction))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 56
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SPI_DMATransmitReceiveCplt -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   SPI_DMATransmitCplt -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_SPI_TransmitReceive -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_SPI_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_TransmitReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SPI_DMATransmitReceiveCplt +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   SPI_DMATransmitCplt
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SPI_WaitFlagStateUntilTimeout (Thumb, 180 bytes, Stack size 32 bytes, stm32f1xx_hal_spi.o(i.SPI_WaitFlagStateUntilTimeout)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SPI_WaitFlagStateUntilTimeout (Thumb, 180 bytes, Stack size 32 bytes, stm32f1xx_hal_spi.o(i.SPI_WaitFlagStateUntilTimeout))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 32
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = SPI_WaitFlagStateUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_GetTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_GetTick
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SPI_EndRxTxTransaction -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   SPI_EndRxTransaction +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SPI_EndRxTxTransaction +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SPI_EndRxTransaction
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      DMA_SetConfig (Thumb, 42 bytes, Stack size 12 bytes, stm32f1xx_hal_dma.o(i.DMA_SetConfig)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = DMA_SetConfig -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_DMA_Start_IT +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TIM_ITRx_SetConfig (Thumb, 16 bytes, Stack size 0 bytes, stm32f1xx_hal_tim.o(i.TIM_ITRx_SetConfig)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_ConfigClockSource
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        __NVIC_SetPriority (Thumb, 32 bytes, Stack size 0 bytes, stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_NVIC_SetPriority -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_SYSTICK_Config -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TIM_ITRx_SetConfig (Thumb, 16 bytes, Stack size 0 bytes, stm32f1xx_hal_tim.o(i.TIM_ITRx_SetConfig)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_ConfigClockSource -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        - -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TIM_OC1_SetConfig (Thumb, 74 bytes, Stack size 12 bytes, stm32f1xx_hal_tim.o(i.TIM_OC1_SetConfig)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        TIM_OC1_SetConfig (Thumb, 74 bytes, Stack size 12 bytes, stm32f1xx_hal_tim.o(i.TIM_OC1_SetConfig))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = TIM_OC1_SetConfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_TIM_PWM_ConfigChannel +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_TIM_PWM_ConfigChannel
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          TIM_OC3_SetConfig (Thumb, 82 bytes, Stack size 12 bytes, stm32f1xx_hal_tim.o(i.TIM_OC3_SetConfig)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          TIM_OC3_SetConfig (Thumb, 82 bytes, Stack size 12 bytes, stm32f1xx_hal_tim.o(i.TIM_OC3_SetConfig))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = TIM_OC3_SetConfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_TIM_PWM_ConfigChannel +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_TIM_PWM_ConfigChannel
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TIM_OC4_SetConfig (Thumb, 64 bytes, Stack size 12 bytes, stm32f1xx_hal_tim.o(i.TIM_OC4_SetConfig)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TIM_OC4_SetConfig (Thumb, 64 bytes, Stack size 12 bytes, stm32f1xx_hal_tim.o(i.TIM_OC4_SetConfig))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Max Depth = 12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • Call Chain = TIM_OC4_SetConfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_TIM_PWM_ConfigChannel +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_TIM_PWM_ConfigChannel
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TIM_TI1_ConfigInputStage (Thumb, 34 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.TIM_TI1_ConfigInputStage)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              TIM_TI1_ConfigInputStage (Thumb, 34 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.TIM_TI1_ConfigInputStage))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • Call Chain = TIM_TI1_ConfigInputStage
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_TIM_ConfigClockSource +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_TIM_ConfigClockSource
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                TIM_TI2_ConfigInputStage (Thumb, 36 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.TIM_TI2_ConfigInputStage)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                TIM_TI2_ConfigInputStage (Thumb, 36 bytes, Stack size 8 bytes, stm32f1xx_hal_tim.o(i.TIM_TI2_ConfigInputStage))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = TIM_TI2_ConfigInputStage
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_TIM_ConfigClockSource +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_TIM_ConfigClockSource
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  UART_DMAAbortOnError (Thumb, 16 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.UART_DMAAbortOnError)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  UART_DMAAbortOnError (Thumb, 16 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.UART_DMAAbortOnError))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = UART_DMAAbortOnError ⇒ HAL_UART_ErrorCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_ErrorCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_UART_ErrorCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    UART_DMAError (Thumb, 74 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.UART_DMAError)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    UART_DMAError (Thumb, 74 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.UART_DMAError))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = UART_DMAError ⇒ HAL_UART_ErrorCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_UART_ErrorCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   UART_EndTxTransfer -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   UART_EndRxTransfer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   UART_EndTxTransfer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   UART_EndRxTransfer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_UART_ErrorCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      UART_DMAReceiveCplt (Thumb, 134 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.UART_DMAReceiveCplt)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      UART_DMAReceiveCplt (Thumb, 134 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.UART_DMAReceiveCplt))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = UART_DMAReceiveCplt ⇒ HAL_UART_RxCpltCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_UART_RxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_UARTEx_RxEventCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_UARTEx_RxEventCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_UART_RxCpltCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        UART_DMARxHalfCplt (Thumb, 30 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.UART_DMARxHalfCplt)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        UART_DMARxHalfCplt (Thumb, 30 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.UART_DMARxHalfCplt))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • Call Chain = UART_DMARxHalfCplt ⇒ HAL_UART_RxHalfCpltCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_UART_RxHalfCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_UARTEx_RxEventCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_UARTEx_RxEventCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_UART_RxHalfCpltCallback

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UART_EndRxTransfer (Thumb, 78 bytes, Stack size 0 bytes, stm32f1xx_hal_uart.o(i.UART_EndRxTransfer)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   UART_EndRxTransfer +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            UART_EndRxTransfer (Thumb, 78 bytes, Stack size 0 bytes, stm32f1xx_hal_uart.o(i.UART_EndRxTransfer)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   UART_EndRxTransfer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_UART_IRQHandler -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_UART_DMAStop -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   UART_WaitOnFlagUntilTimeout -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   UART_EndRxTransfer -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   UART_DMAError +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_UART_IRQHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_UART_DMAStop +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   UART_WaitOnFlagUntilTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   UART_EndRxTransfer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   UART_DMAError
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              UART_EndTxTransfer (Thumb, 28 bytes, Stack size 0 bytes, stm32f1xx_hal_uart.o(i.UART_EndTxTransfer)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   UART_EndTxTransfer +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                UART_EndTxTransfer (Thumb, 28 bytes, Stack size 0 bytes, stm32f1xx_hal_uart.o(i.UART_EndTxTransfer)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   UART_EndTxTransfer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_UART_DMAStop -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   UART_EndTxTransfer -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   UART_DMAError +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_DMAStop +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   UART_EndTxTransfer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   UART_DMAError
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  UART_Receive_IT (Thumb, 194 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.UART_Receive_IT)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  UART_Receive_IT (Thumb, 194 bytes, Stack size 8 bytes, stm32f1xx_hal_uart.o(i.UART_Receive_IT))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = UART_Receive_IT ⇒ HAL_UART_RxCpltCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_RxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UARTEx_RxEventCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_UARTEx_RxEventCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_UART_RxCpltCallback
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   HAL_UART_IRQHandler +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_UART_IRQHandler
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      UART_SetConfig (Thumb, 178 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.UART_SetConfig)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      UART_SetConfig (Thumb, 178 bytes, Stack size 16 bytes, stm32f1xx_hal_uart.o(i.UART_SetConfig))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = UART_SetConfig
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_RCC_GetPCLK2Freq -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   HAL_RCC_GetPCLK1Freq +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_RCC_GetPCLK2Freq +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_RCC_GetPCLK1Freq
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_UART_Init -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   HAL_HalfDuplex_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_UART_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_HalfDuplex_Init
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UART_WaitOnFlagUntilTimeout (Thumb, 114 bytes, Stack size 32 bytes, stm32f1xx_hal_uart.o(i.UART_WaitOnFlagUntilTimeout)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UART_WaitOnFlagUntilTimeout (Thumb, 114 bytes, Stack size 32 bytes, stm32f1xx_hal_uart.o(i.UART_WaitOnFlagUntilTimeout))

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Max Depth = 32
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • Call Chain = UART_WaitOnFlagUntilTimeout
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   HAL_GetTick -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   UART_EndRxTransfer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_GetTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   UART_EndRxTransfer
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   HAL_UART_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_UART_Transmit
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SPI_Get (Thumb, 26 bytes, Stack size 0 bytes, spi_1.o(i.SPI_Get)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_SPI_TxRxHalfCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_SPI_TxRxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_SPI_TxHalfCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_SPI_TxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_SPI_RxHalfCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_SPI_RxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   HAL_SPI_ErrorCallback +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                prvCopyDataFromQueue (Thumb, 38 bytes, Stack size 8 bytes, queue.o(i.prvCopyDataFromQueue)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • Call Chain = prvCopyDataFromQueue +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   __aeabi_memcpy +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   xQueueReceive
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                UART_Get (Thumb, 16 bytes, Stack size 0 bytes, uart.o(i.UART_Get)) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_UART_TxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_UART_RxHalfCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_UART_RxCpltCallback -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                • >>   HAL_UART_ErrorCallback +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvCopyDataToQueue (Thumb, 108 bytes, Stack size 24 bytes, queue.o(i.prvCopyDataToQueue)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 40
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvCopyDataToQueue ⇒ xTaskPriorityDisinherit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskPriorityDisinherit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_memcpy +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueGenericSendFromISR +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueGenericSend
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  tx_cplt_cb (Thumb, 8 bytes, Stack size 0 bytes, sx1281_driver_spi.o(i.tx_cplt_cb)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvInitialiseNewQueue (Thumb, 34 bytes, Stack size 16 bytes, queue.o(i.prvInitialiseNewQueue)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvInitialiseNewQueue ⇒ xQueueGenericReset ⇒ xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueGenericReset +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueGenericCreateStatic +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueGenericCreate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvIsQueueEmpty (Thumb, 28 bytes, Stack size 8 bytes, queue.o(i.prvIsQueueEmpty)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 8
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvIsQueueEmpty +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvUnlockQueue (Thumb, 106 bytes, Stack size 24 bytes, queue.o(i.prvUnlockQueue)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 40
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvUnlockQueue ⇒ xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vTaskMissedYield +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueGenericSend +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vQueueWaitForMessageRestricted +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvAddCurrentTaskToDelayedList (Thumb, 84 bytes, Stack size 24 bytes, tasks.o(i.prvAddCurrentTaskToDelayedList)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 36
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvAddCurrentTaskToDelayedList ⇒ vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vListInsertEnd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vTaskPlaceOnEventListRestricted +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vTaskPlaceOnEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vTaskDelayUntil +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vTaskDelay +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvAddNewTaskToReadyList (Thumb, 190 bytes, Stack size 24 bytes, tasks.o(i.prvAddNewTaskToReadyList)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 24
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvAddNewTaskToReadyList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vListInsertEnd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vListInitialise +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskCreateStatic +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskCreate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvDeleteTCB (Thumb, 52 bytes, Stack size 8 bytes, tasks.o(i.prvDeleteTCB)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 80
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvDeleteTCB ⇒ vPortFree ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortFree +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vTaskDelete +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvIdleTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvIdleTask (Thumb, 82 bytes, Stack size 0 bytes, tasks.o(i.prvIdleTask)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 80
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvIdleTask ⇒ prvDeleteTCB ⇒ vPortFree ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvDeleteTCB +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • tasks.o(i.vTaskStartScheduler) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvInitialiseNewTask (Thumb, 176 bytes, Stack size 40 bytes, tasks.o(i.prvInitialiseNewTask)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 48
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvInitialiseNewTask ⇒ pxPortInitialiseStack +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vListInitialiseItem +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   pxPortInitialiseStack +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_memset +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskCreateStatic +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskCreate +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvResetNextTaskUnblockTime (Thumb, 26 bytes, Stack size 0 bytes, tasks.o(i.prvResetNextTaskUnblockTime)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vTaskDelete +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvCheckForValidListAndQueue (Thumb, 72 bytes, Stack size 16 bytes, timers.o(i.prvCheckForValidListAndQueue)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 80
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvCheckForValidListAndQueue ⇒ xQueueGenericCreateStatic ⇒ prvInitialiseNewQueue ⇒ xQueueGenericReset ⇒ xTaskRemoveFromEventList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueGenericCreateStatic +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vQueueAddToRegistry +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortExitCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortEnterCritical +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vListInitialise +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTimerCreateTimerTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvInsertTimerInActiveList (Thumb, 52 bytes, Stack size 16 bytes, timers.o(i.prvInsertTimerInActiveList)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 28
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvInsertTimerInActiveList ⇒ vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvProcessTimerOrBlockTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvProcessReceivedCommands +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvProcessReceivedCommands (Thumb, 248 bytes, Stack size 48 bytes, timers.o(i.prvProcessReceivedCommands)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 240
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvProcessReceivedCommands ⇒ prvSampleTimeNow ⇒ prvSwitchTimerLists ⇒ xTimerGenericCommand ⇒ xQueueGenericSend ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xQueueReceive +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortFree +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTimerGenericCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvSampleTimeNow +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvInsertTimerInActiveList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvTimerTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvProcessTimerOrBlockTask (Thumb, 182 bytes, Stack size 32 bytes, timers.o(i.prvProcessTimerOrBlockTask)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 224
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvProcessTimerOrBlockTask ⇒ prvSampleTimeNow ⇒ prvSwitchTimerLists ⇒ xTimerGenericCommand ⇒ xQueueGenericSend ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vQueueWaitForMessageRestricted +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskResumeAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vTaskSuspendAll +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTimerGenericCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvSampleTimeNow +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvInsertTimerInActiveList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvTimerTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvSampleTimeNow (Thumb, 36 bytes, Stack size 16 bytes, timers.o(i.prvSampleTimeNow)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 192
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvSampleTimeNow ⇒ prvSwitchTimerLists ⇒ xTimerGenericCommand ⇒ xQueueGenericSend ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvSwitchTimerLists +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTaskGetTickCount +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvProcessTimerOrBlockTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvProcessReceivedCommands +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvSwitchTimerLists (Thumb, 104 bytes, Stack size 24 bytes, timers.o(i.prvSwitchTimerLists)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 176
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvSwitchTimerLists ⇒ xTimerGenericCommand ⇒ xQueueGenericSend ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vListInsert +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   uxListRemove +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   xTimerGenericCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvSampleTimeNow +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvTimerTask (Thumb, 32 bytes, Stack size 0 bytes, timers.o(i.prvTimerTask)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 240
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvTimerTask ⇒ prvProcessReceivedCommands ⇒ prvSampleTimeNow ⇒ prvSwitchTimerLists ⇒ xTimerGenericCommand ⇒ xQueueGenericSend ⇒ xTaskResumeAll ⇒ xTaskIncrementTick +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvProcessTimerOrBlockTask +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   prvProcessReceivedCommands +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • timers.o(i.xTimerCreateTimerTask) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvHeapInit (Thumb, 66 bytes, Stack size 0 bytes, heap_4.o(i.prvHeapInit)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   pvPortMalloc +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvInsertBlockIntoFreeList (Thumb, 72 bytes, Stack size 12 bytes, heap_4.o(i.prvInsertBlockIntoFreeList)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 12
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = prvInsertBlockIntoFreeList +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   vPortFree +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   pvPortMalloc +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prvTaskExitError (Thumb, 36 bytes, Stack size 0 bytes, port.o(i.prvTaskExitError)) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • port.o(i.pxPortInitialiseStack) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  SPI_Get (Thumb, 26 bytes, Stack size 0 bytes, spi_1.o(i.SPI_Get)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_TxRxHalfCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_TxRxCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_TxHalfCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_TxCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_RxHalfCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_RxCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_SPI_ErrorCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  UART_Get (Thumb, 26 bytes, Stack size 0 bytes, uart.o(i.UART_Get)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_TxCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_RxHalfCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_RxCpltCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_UART_ErrorCallback +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  LCD_SetAddressWindow (Thumb, 100 bytes, Stack size 32 bytes, lcd.o(i.LCD_SetAddressWindow)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 184
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = LCD_SetAddressWindow ⇒ LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_WriteDataBuffer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_WriteCommand +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_DrawPoint +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_Clear +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  LCD_WriteCommand (Thumb, 56 bytes, Stack size 16 bytes, lcd.o(i.LCD_WriteCommand)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 120
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = LCD_WriteCommand ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_GPIO_WritePin +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   BSP_SPI_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_SetAddressWindow +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  LCD_WriteData (Thumb, 54 bytes, Stack size 16 bytes, lcd.o(i.LCD_WriteData)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 120
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = LCD_WriteData ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_GPIO_WritePin +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   BSP_SPI_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  LCD_WriteDataBuffer (Thumb, 72 bytes, Stack size 24 bytes, lcd.o(i.LCD_WriteDataBuffer)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 152
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = LCD_WriteDataBuffer ⇒ LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_GPIO_WritePin +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_WriteDataBuffer_DMA +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   BSP_SPI_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_Init +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_DrawPoint +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_SetAddressWindow +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  LCD_WriteDataBuffer_DMA (Thumb, 72 bytes, Stack size 24 bytes, lcd.o(i.LCD_WriteDataBuffer_DMA)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Max Depth = 128
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • Call Chain = LCD_WriteDataBuffer_DMA ⇒ BSP_SPI_Transmit ⇒ HAL_SPI_Transmit ⇒ SPI_EndRxTxTransaction ⇒ SPI_WaitFlagStateUntilTimeout +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   HAL_GPIO_WritePin +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   BSP_SPI_Transmit +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   BSP_SPI_GetState +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_Clear +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   LCD_WriteDataBuffer +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  tx_cplt_cb (Thumb, 8 bytes, Stack size 0 bytes, sx1281_driver_spi.o(i.tx_cplt_cb))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • sx1281_driver_spi.o(i.SpiInit)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  txrx_cplt_cb (Thumb, 8 bytes, Stack size 0 bytes, sx1281_driver_spi.o(i.txrx_cplt_cb)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  txrx_cplt_cb (Thumb, 8 bytes, Stack size 0 bytes, sx1281_driver_spi.o(i.txrx_cplt_cb))
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • sx1281_driver_spi.o(i.SpiInit)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  _fp_digits (Thumb, 366 bytes, Stack size 64 bytes, printfa.o(i._fp_digits), UNUSED) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_dmul -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_ddiv -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_uldivmod -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_dadd -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_d2ulz -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • >>   __aeabi_cdrcmple +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    prvHelpCommand (Thumb, 40 bytes, Stack size 8 bytes, freertos_cli.o(i.prvHelpCommand)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Max Depth = 16
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • Call Chain = prvHelpCommand ⇒ strncpy
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • >>   _printf_core +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   strncpy +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • freertos_cli.o(.constdata) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      mr16CommandHandler (Thumb, 300 bytes, Stack size 112 bytes, mr16.o(i.mr16CommandHandler)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 328
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = mr16CommandHandler ⇒ __0sscanf ⇒ __vfscanf_char ⇒ __vfscanf ⇒ _scanf_int +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   SX1281_SetTX +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   strcasecmp +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   strncpy +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_memclr4 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   FreeRTOS_CLIGetParameter +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __0sscanf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __2snprintf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • mr16.o(.constdata) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      radioCommandHandler (Thumb, 152 bytes, Stack size 136 bytes, mr16.o(i.radioCommandHandler)) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Stack]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Max Depth = 176
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • Call Chain = radioCommandHandler ⇒ __2snprintf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   strcmp +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   strncpy +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_memclr4 +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   FreeRTOS_CLIGetParameter +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __2snprintf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Address Reference Count : 1]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • mr16.o(.constdata) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      _fp_digits (Thumb, 366 bytes, Stack size 64 bytes, printfa.o(i._fp_digits), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_dmul +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_ddiv +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_uldivmod +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_dadd +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_d2ulz +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_cdrcmple +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   _printf_core
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      _printf_core (Thumb, 1704 bytes, Stack size 136 bytes, printfa.o(i._printf_core), UNUSED) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_uldivmod -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   __aeabi_uidivmod -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   _printf_pre_padding -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   _printf_post_padding -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • >>   _fp_digits +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        _printf_core (Thumb, 1704 bytes, Stack size 136 bytes, printfa.o(i._printf_core), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Calls]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   __aeabi_uldivmod +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   __aeabi_uidivmod +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   _printf_pre_padding +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   _printf_post_padding +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   _fp_digits
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • >>   __0printf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   __0snprintf +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   __0printf
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          _printf_post_padding (Thumb, 36 bytes, Stack size 24 bytes, printfa.o(i._printf_post_padding), UNUSED) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          • >>   _printf_core +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            _printf_post_padding (Thumb, 36 bytes, Stack size 24 bytes, printfa.o(i._printf_post_padding), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   _printf_core
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            _printf_pre_padding (Thumb, 46 bytes, Stack size 24 bytes, printfa.o(i._printf_pre_padding), UNUSED) -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            • >>   _printf_core +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              _printf_pre_padding (Thumb, 46 bytes, Stack size 24 bytes, printfa.o(i._printf_pre_padding), UNUSED) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Called By]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • >>   _printf_core
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              -

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              + +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              _snputc (Thumb, 22 bytes, Stack size 0 bytes, printfa.o(i._snputc)) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • printfa.o(i.__0snprintf) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              _scanf_char_input (Thumb, 12 bytes, Stack size 0 bytes, scanf_char.o(.text)) +
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              [Address Reference Count : 1]

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              • scanf_char.o(.text) +

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Undefined Global Symbols


                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              diff --git a/MDK-ARM/MR16/MR16.lnp b/MDK-ARM/MR16/MR16.lnp index 8cf8384..ecc6d3f 100644 --- a/MDK-ARM/MR16/MR16.lnp +++ b/MDK-ARM/MR16/MR16.lnp @@ -2,6 +2,7 @@ "mr16\startup_stm32f103xb.o" "mr16\main.o" "mr16\gpio.o" +"mr16\freertos.o" "mr16\dma.o" "mr16\spi.o" "mr16\tim.o" @@ -9,7 +10,6 @@ "mr16\stm32f1xx_it.o" "mr16\stm32f1xx_hal_msp.o" "mr16\stm32f1xx_hal_gpio_ex.o" -"mr16\stm32f1xx_hal_spi.o" "mr16\stm32f1xx_hal.o" "mr16\stm32f1xx_hal_rcc.o" "mr16\stm32f1xx_hal_rcc_ex.o" @@ -20,13 +20,26 @@ "mr16\stm32f1xx_hal_flash.o" "mr16\stm32f1xx_hal_flash_ex.o" "mr16\stm32f1xx_hal_exti.o" +"mr16\stm32f1xx_hal_spi.o" "mr16\stm32f1xx_hal_tim.o" "mr16\stm32f1xx_hal_tim_ex.o" "mr16\stm32f1xx_hal_uart.o" "mr16\system_stm32f1xx.o" +"mr16\croutine.o" +"mr16\event_groups.o" +"mr16\list.o" +"mr16\queue.o" +"mr16\stream_buffer.o" +"mr16\tasks.o" +"mr16\timers.o" +"mr16\cmsis_os2.o" +"mr16\heap_4.o" +"mr16\port.o" "mr16\gpio_1.o" "mr16\spi_1.o" "mr16\uart.o" +"mr16\time.o" +"mr16\flash.o" "mr16\lcd.o" "mr16\sx1281.o" "mr16\sx1281_driver.o" @@ -38,7 +51,13 @@ "mr16\crc8.o" "mr16\crc16.o" "mr16\user_math.o" +"mr16\freertos_cli.o" +"mr16\keystatuscheck.o" +"mr16\ui.o" "mr16\mr16.o" +"mr16\init.o" +"mr16\user_task.o" +"mr16\radio.o" --library_type=microlib --strict --scatter "MR16\MR16.sct" --summary_stderr --info summarysizes --map --load_addr_map_info --xref --callgraph --symbols --info sizes --info totals --info unused --info veneers diff --git a/MDK-ARM/MR16/MR16.map b/MDK-ARM/MR16/MR16.map index c629b0b..0debf4d 100644 --- a/MDK-ARM/MR16/MR16.map +++ b/MDK-ARM/MR16/MR16.map @@ -11,9 +11,8 @@ Section Cross References startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.MemManage_Handler) for MemManage_Handler startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.BusFault_Handler) for BusFault_Handler startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.UsageFault_Handler) for UsageFault_Handler - startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.SVC_Handler) for SVC_Handler + startup_stm32f103xb.o(RESET) refers to port.o(.emb_text) for SVC_Handler startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.DebugMon_Handler) for DebugMon_Handler - startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.PendSV_Handler) for PendSV_Handler startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.SysTick_Handler) for SysTick_Handler startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.DMA1_Channel2_IRQHandler) for DMA1_Channel2_IRQHandler startup_stm32f103xb.o(RESET) refers to stm32f1xx_it.o(i.DMA1_Channel3_IRQHandler) for DMA1_Channel3_IRQHandler @@ -37,14 +36,22 @@ Section Cross References main.o(i.main) refers to tim.o(i.MX_TIM1_Init) for MX_TIM1_Init main.o(i.main) refers to usart.o(i.MX_USART1_UART_Init) for MX_USART1_UART_Init main.o(i.main) refers to usart.o(i.MX_USART2_UART_Init) for MX_USART2_UART_Init - main.o(i.main) refers to mr16.o(i.MR16_Init) for MR16_Init - main.o(i.main) refers to sx1281.o(i.SX1281_Running) for SX1281_Running - main.o(i.main) refers to usart.o(.bss) for huart2 - main.o(i.main) refers to mr16.o(.bss) for radio + main.o(i.main) refers to cmsis_os2.o(i.osKernelInitialize) for osKernelInitialize + main.o(i.main) refers to freertos.o(i.MX_FREERTOS_Init) for MX_FREERTOS_Init + main.o(i.main) refers to cmsis_os2.o(i.osKernelStart) for osKernelStart gpio.o(i.MX_GPIO_Init) refers to stm32f1xx_hal_gpio.o(i.HAL_GPIO_WritePin) for HAL_GPIO_WritePin gpio.o(i.MX_GPIO_Init) refers to stm32f1xx_hal_gpio.o(i.HAL_GPIO_Init) for HAL_GPIO_Init gpio.o(i.MX_GPIO_Init) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) for HAL_NVIC_SetPriority gpio.o(i.MX_GPIO_Init) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_EnableIRQ) for HAL_NVIC_EnableIRQ + freertos.o(i.MX_FREERTOS_Init) refers to cmsis_os2.o(i.osThreadNew) for osThreadNew + freertos.o(i.MX_FREERTOS_Init) refers to freertos.o(.constdata) for .constdata + freertos.o(i.MX_FREERTOS_Init) refers to freertos.o(i.StartDefaultTask) for StartDefaultTask + freertos.o(i.MX_FREERTOS_Init) refers to freertos.o(.data) for .data + freertos.o(i.MX_FREERTOS_Init) refers to user_task.o(.constdata) for attr_init + freertos.o(i.MX_FREERTOS_Init) refers to init.o(i.Task_Init) for Task_Init + freertos.o(i.StartDefaultTask) refers to cmsis_os2.o(i.osThreadGetId) for osThreadGetId + freertos.o(i.StartDefaultTask) refers to cmsis_os2.o(i.osThreadTerminate) for osThreadTerminate + freertos.o(.constdata) refers to freertos.o(.conststring) for .conststring dma.o(i.MX_DMA_Init) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) for HAL_NVIC_SetPriority dma.o(i.MX_DMA_Init) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_EnableIRQ) for HAL_NVIC_EnableIRQ spi.o(i.HAL_SPI_MspDeInit) refers to stm32f1xx_hal_gpio.o(i.HAL_GPIO_DeInit) for HAL_GPIO_DeInit @@ -91,6 +98,7 @@ Section Cross References usart.o(i.USAR_UART_IDLECallback) refers to strcpy.o(.text) for strcpy usart.o(i.USAR_UART_IDLECallback) refers to memseta.o(.text) for __aeabi_memclr4 usart.o(i.USAR_UART_IDLECallback) refers to stm32f1xx_hal_uart.o(i.HAL_UART_Receive_DMA) for HAL_UART_Receive_DMA + usart.o(i.USAR_UART_IDLECallback) refers to mr16.o(i.MR16_NotifyUARTIdle) for MR16_NotifyUARTIdle usart.o(i.USAR_UART_IDLECallback) refers to usart.o(.bss) for .bss usart.o(i.USAR_UART_IDLECallback) refers to usart.o(.data) for .data usart.o(i.USER_UART_IRQHandler) refers to printfa.o(i.__0printf) for __2printf @@ -108,9 +116,105 @@ Section Cross References stm32f1xx_it.o(i.EXTI15_10_IRQHandler) refers to stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler) for HAL_GPIO_EXTI_IRQHandler stm32f1xx_it.o(i.EXTI9_5_IRQHandler) refers to stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler) for HAL_GPIO_EXTI_IRQHandler stm32f1xx_it.o(i.SysTick_Handler) refers to stm32f1xx_hal.o(i.HAL_IncTick) for HAL_IncTick + stm32f1xx_it.o(i.SysTick_Handler) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + stm32f1xx_it.o(i.SysTick_Handler) refers to port.o(i.xPortSysTickHandler) for xPortSysTickHandler stm32f1xx_it.o(i.USART2_IRQHandler) refers to stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler) for HAL_UART_IRQHandler stm32f1xx_it.o(i.USART2_IRQHandler) refers to usart.o(i.USER_UART_IRQHandler) for USER_UART_IRQHandler stm32f1xx_it.o(i.USART2_IRQHandler) refers to usart.o(.bss) for huart2 + stm32f1xx_hal_msp.o(i.HAL_MspInit) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) for HAL_NVIC_SetPriority + stm32f1xx_hal.o(i.HAL_DeInit) refers to stm32f1xx_hal.o(i.HAL_MspDeInit) for HAL_MspDeInit + stm32f1xx_hal.o(i.HAL_Delay) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick + stm32f1xx_hal.o(i.HAL_Delay) refers to stm32f1xx_hal.o(.data) for .data + stm32f1xx_hal.o(i.HAL_GetTick) refers to stm32f1xx_hal.o(.data) for .data + stm32f1xx_hal.o(i.HAL_GetTickFreq) refers to stm32f1xx_hal.o(.data) for .data + stm32f1xx_hal.o(i.HAL_GetTickPrio) refers to stm32f1xx_hal.o(.data) for .data + stm32f1xx_hal.o(i.HAL_IncTick) refers to stm32f1xx_hal.o(.data) for .data + stm32f1xx_hal.o(i.HAL_Init) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriorityGrouping) for HAL_NVIC_SetPriorityGrouping + stm32f1xx_hal.o(i.HAL_Init) refers to stm32f1xx_hal.o(i.HAL_InitTick) for HAL_InitTick + stm32f1xx_hal.o(i.HAL_Init) refers to stm32f1xx_hal_msp.o(i.HAL_MspInit) for HAL_MspInit + stm32f1xx_hal.o(i.HAL_InitTick) refers to stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config) for HAL_SYSTICK_Config + stm32f1xx_hal.o(i.HAL_InitTick) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) for HAL_NVIC_SetPriority + stm32f1xx_hal.o(i.HAL_InitTick) refers to stm32f1xx_hal.o(.data) for .data + stm32f1xx_hal.o(i.HAL_InitTick) refers to system_stm32f1xx.o(.data) for SystemCoreClock + stm32f1xx_hal.o(i.HAL_SetTickFreq) refers to stm32f1xx_hal.o(i.HAL_InitTick) for HAL_InitTick + stm32f1xx_hal.o(i.HAL_SetTickFreq) refers to stm32f1xx_hal.o(.data) for .data + stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick + stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq) for HAL_RCC_GetSysClockFreq + stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to stm32f1xx_hal.o(i.HAL_InitTick) for HAL_InitTick + stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to system_stm32f1xx.o(.constdata) for AHBPrescTable + stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to system_stm32f1xx.o(.data) for SystemCoreClock + stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to stm32f1xx_hal.o(.data) for uwTickPrio + stm32f1xx_hal_rcc.o(i.HAL_RCC_DeInit) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick + stm32f1xx_hal_rcc.o(i.HAL_RCC_DeInit) refers to stm32f1xx_hal.o(i.HAL_InitTick) for HAL_InitTick + stm32f1xx_hal_rcc.o(i.HAL_RCC_DeInit) refers to system_stm32f1xx.o(.data) for SystemCoreClock + stm32f1xx_hal_rcc.o(i.HAL_RCC_DeInit) refers to stm32f1xx_hal.o(.data) for uwTickPrio + stm32f1xx_hal_rcc.o(i.HAL_RCC_GetHCLKFreq) refers to system_stm32f1xx.o(.data) for SystemCoreClock + stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq) refers to system_stm32f1xx.o(.data) for SystemCoreClock + stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq) refers to system_stm32f1xx.o(.constdata) for APBPrescTable + stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) refers to system_stm32f1xx.o(.data) for SystemCoreClock + stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) refers to system_stm32f1xx.o(.constdata) for APBPrescTable + stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq) refers to stm32f1xx_hal_rcc.o(.constdata) for .constdata + stm32f1xx_hal_rcc.o(i.HAL_RCC_MCOConfig) refers to stm32f1xx_hal_gpio.o(i.HAL_GPIO_Init) for HAL_GPIO_Init + stm32f1xx_hal_rcc.o(i.HAL_RCC_NMI_IRQHandler) refers to stm32f1xx_hal_rcc.o(i.HAL_RCC_CSSCallback) for HAL_RCC_CSSCallback + stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick + stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig) refers to system_stm32f1xx.o(.data) for SystemCoreClock + stm32f1xx_hal_rcc_ex.o(i.HAL_RCCEx_GetPeriphCLKFreq) refers to stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) for HAL_RCC_GetPCLK2Freq + stm32f1xx_hal_rcc_ex.o(i.HAL_RCCEx_GetPeriphCLKFreq) refers to stm32f1xx_hal_rcc_ex.o(.constdata) for .constdata + stm32f1xx_hal_rcc_ex.o(i.HAL_RCCEx_PeriphCLKConfig) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick + stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler) refers to gpio_1.o(i.HAL_GPIO_EXTI_Callback) for HAL_GPIO_EXTI_Callback + stm32f1xx_hal_dma.o(i.HAL_DMA_PollForTransfer) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick + stm32f1xx_hal_dma.o(i.HAL_DMA_Start) refers to stm32f1xx_hal_dma.o(i.DMA_SetConfig) for DMA_SetConfig + stm32f1xx_hal_dma.o(i.HAL_DMA_Start_IT) refers to stm32f1xx_hal_dma.o(i.DMA_SetConfig) for DMA_SetConfig + stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) refers to stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority) for __NVIC_SetPriority + stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config) refers to stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority) for __NVIC_SetPriority + stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_IRQHandler) refers to stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Callback) for HAL_SYSTICK_Callback + stm32f1xx_hal_pwr.o(i.HAL_PWR_EnterSTOPMode) refers to stm32f1xx_hal_pwr.o(i.PWR_OverloadWfe) for PWR_OverloadWfe + stm32f1xx_hal_pwr.o(i.HAL_PWR_PVD_IRQHandler) refers to stm32f1xx_hal_pwr.o(i.HAL_PWR_PVDCallback) for HAL_PWR_PVDCallback + stm32f1xx_hal_flash.o(i.FLASH_Program_HalfWord) refers to stm32f1xx_hal_flash.o(.bss) for .bss + stm32f1xx_hal_flash.o(i.FLASH_SetErrorCode) refers to stm32f1xx_hal_flash.o(.bss) for .bss + stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick + stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) refers to stm32f1xx_hal_flash.o(i.FLASH_SetErrorCode) for FLASH_SetErrorCode + stm32f1xx_hal_flash.o(i.HAL_FLASH_GetError) refers to stm32f1xx_hal_flash.o(.bss) for .bss + stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(i.FLASH_SetErrorCode) for FLASH_SetErrorCode + stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(i.HAL_FLASH_OperationErrorCallback) for HAL_FLASH_OperationErrorCallback + stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(i.FLASH_Program_HalfWord) for FLASH_Program_HalfWord + stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(i.HAL_FLASH_EndOfOperationCallback) for HAL_FLASH_EndOfOperationCallback + stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_PageErase) for FLASH_PageErase + stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(.bss) for .bss + stm32f1xx_hal_flash.o(i.HAL_FLASH_OB_Launch) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_SystemReset) for HAL_NVIC_SystemReset + stm32f1xx_hal_flash.o(i.HAL_FLASH_Program) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation + stm32f1xx_hal_flash.o(i.HAL_FLASH_Program) refers to llushr.o(.text) for __aeabi_llsr + stm32f1xx_hal_flash.o(i.HAL_FLASH_Program) refers to stm32f1xx_hal_flash.o(i.FLASH_Program_HalfWord) for FLASH_Program_HalfWord + stm32f1xx_hal_flash.o(i.HAL_FLASH_Program) refers to stm32f1xx_hal_flash.o(.bss) for .bss + stm32f1xx_hal_flash.o(i.HAL_FLASH_Program_IT) refers to stm32f1xx_hal_flash.o(i.FLASH_Program_HalfWord) for FLASH_Program_HalfWord + stm32f1xx_hal_flash.o(i.HAL_FLASH_Program_IT) refers to stm32f1xx_hal_flash.o(.bss) for .bss + stm32f1xx_hal_flash_ex.o(i.FLASH_MassErase) refers to stm32f1xx_hal_flash.o(.bss) for pFlash + stm32f1xx_hal_flash_ex.o(i.FLASH_OB_DisableWRP) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation + stm32f1xx_hal_flash_ex.o(i.FLASH_OB_DisableWRP) refers to stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) for HAL_FLASHEx_OBErase + stm32f1xx_hal_flash_ex.o(i.FLASH_OB_DisableWRP) refers to stm32f1xx_hal_flash.o(.bss) for pFlash + stm32f1xx_hal_flash_ex.o(i.FLASH_OB_EnableWRP) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation + stm32f1xx_hal_flash_ex.o(i.FLASH_OB_EnableWRP) refers to stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) for HAL_FLASHEx_OBErase + stm32f1xx_hal_flash_ex.o(i.FLASH_OB_EnableWRP) refers to stm32f1xx_hal_flash.o(.bss) for pFlash + stm32f1xx_hal_flash_ex.o(i.FLASH_OB_RDP_LevelConfig) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation + stm32f1xx_hal_flash_ex.o(i.FLASH_OB_RDP_LevelConfig) refers to stm32f1xx_hal_flash.o(.bss) for pFlash + stm32f1xx_hal_flash_ex.o(i.FLASH_PageErase) refers to stm32f1xx_hal_flash.o(.bss) for pFlash + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_MassErase) for FLASH_MassErase + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_PageErase) for FLASH_PageErase + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase) refers to stm32f1xx_hal_flash.o(.bss) for pFlash + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase_IT) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_PageErase) for FLASH_PageErase + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase_IT) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_MassErase) for FLASH_MassErase + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase_IT) refers to stm32f1xx_hal_flash.o(.bss) for pFlash + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_GetRDP) for FLASH_OB_GetRDP + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_RDP_LevelConfig) for FLASH_OB_RDP_LevelConfig + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) refers to stm32f1xx_hal_flash.o(.bss) for pFlash + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBGetConfig) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_GetRDP) for FLASH_OB_GetRDP + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_DisableWRP) for FLASH_OB_DisableWRP + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_EnableWRP) for FLASH_OB_EnableWRP + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_RDP_LevelConfig) for FLASH_OB_RDP_LevelConfig + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation + stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash.o(.bss) for pFlash stm32f1xx_hal_spi.o(i.HAL_SPI_Abort) refers to stm32f1xx_hal_dma.o(i.HAL_DMA_Abort) for HAL_DMA_Abort stm32f1xx_hal_spi.o(i.HAL_SPI_Abort) refers to system_stm32f1xx.o(.data) for SystemCoreClock stm32f1xx_hal_spi.o(i.HAL_SPI_Abort) refers to stm32f1xx_hal_spi.o(i.SPI_AbortTx_ISR) for SPI_AbortTx_ISR @@ -209,99 +313,6 @@ Section Cross References stm32f1xx_hal_spi.o(i.SPI_TxISR_8BIT) refers to stm32f1xx_hal_spi.o(i.SPI_CloseTx_ISR) for SPI_CloseTx_ISR stm32f1xx_hal_spi.o(i.SPI_WaitFlagStateUntilTimeout) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick stm32f1xx_hal_spi.o(i.SPI_WaitFlagStateUntilTimeout) refers to system_stm32f1xx.o(.data) for SystemCoreClock - stm32f1xx_hal.o(i.HAL_DeInit) refers to stm32f1xx_hal.o(i.HAL_MspDeInit) for HAL_MspDeInit - stm32f1xx_hal.o(i.HAL_Delay) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick - stm32f1xx_hal.o(i.HAL_Delay) refers to stm32f1xx_hal.o(.data) for .data - stm32f1xx_hal.o(i.HAL_GetTick) refers to stm32f1xx_hal.o(.data) for .data - stm32f1xx_hal.o(i.HAL_GetTickFreq) refers to stm32f1xx_hal.o(.data) for .data - stm32f1xx_hal.o(i.HAL_GetTickPrio) refers to stm32f1xx_hal.o(.data) for .data - stm32f1xx_hal.o(i.HAL_IncTick) refers to stm32f1xx_hal.o(.data) for .data - stm32f1xx_hal.o(i.HAL_Init) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriorityGrouping) for HAL_NVIC_SetPriorityGrouping - stm32f1xx_hal.o(i.HAL_Init) refers to stm32f1xx_hal.o(i.HAL_InitTick) for HAL_InitTick - stm32f1xx_hal.o(i.HAL_Init) refers to stm32f1xx_hal_msp.o(i.HAL_MspInit) for HAL_MspInit - stm32f1xx_hal.o(i.HAL_InitTick) refers to stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config) for HAL_SYSTICK_Config - stm32f1xx_hal.o(i.HAL_InitTick) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) for HAL_NVIC_SetPriority - stm32f1xx_hal.o(i.HAL_InitTick) refers to stm32f1xx_hal.o(.data) for .data - stm32f1xx_hal.o(i.HAL_InitTick) refers to system_stm32f1xx.o(.data) for SystemCoreClock - stm32f1xx_hal.o(i.HAL_SetTickFreq) refers to stm32f1xx_hal.o(i.HAL_InitTick) for HAL_InitTick - stm32f1xx_hal.o(i.HAL_SetTickFreq) refers to stm32f1xx_hal.o(.data) for .data - stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick - stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq) for HAL_RCC_GetSysClockFreq - stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to stm32f1xx_hal.o(i.HAL_InitTick) for HAL_InitTick - stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to system_stm32f1xx.o(.constdata) for AHBPrescTable - stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to system_stm32f1xx.o(.data) for SystemCoreClock - stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) refers to stm32f1xx_hal.o(.data) for uwTickPrio - stm32f1xx_hal_rcc.o(i.HAL_RCC_DeInit) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick - stm32f1xx_hal_rcc.o(i.HAL_RCC_DeInit) refers to stm32f1xx_hal.o(i.HAL_InitTick) for HAL_InitTick - stm32f1xx_hal_rcc.o(i.HAL_RCC_DeInit) refers to system_stm32f1xx.o(.data) for SystemCoreClock - stm32f1xx_hal_rcc.o(i.HAL_RCC_DeInit) refers to stm32f1xx_hal.o(.data) for uwTickPrio - stm32f1xx_hal_rcc.o(i.HAL_RCC_GetHCLKFreq) refers to system_stm32f1xx.o(.data) for SystemCoreClock - stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq) refers to system_stm32f1xx.o(.data) for SystemCoreClock - stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq) refers to system_stm32f1xx.o(.constdata) for APBPrescTable - stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) refers to system_stm32f1xx.o(.data) for SystemCoreClock - stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) refers to system_stm32f1xx.o(.constdata) for APBPrescTable - stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq) refers to stm32f1xx_hal_rcc.o(.constdata) for .constdata - stm32f1xx_hal_rcc.o(i.HAL_RCC_MCOConfig) refers to stm32f1xx_hal_gpio.o(i.HAL_GPIO_Init) for HAL_GPIO_Init - stm32f1xx_hal_rcc.o(i.HAL_RCC_NMI_IRQHandler) refers to stm32f1xx_hal_rcc.o(i.HAL_RCC_CSSCallback) for HAL_RCC_CSSCallback - stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick - stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig) refers to system_stm32f1xx.o(.data) for SystemCoreClock - stm32f1xx_hal_rcc_ex.o(i.HAL_RCCEx_GetPeriphCLKFreq) refers to stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) for HAL_RCC_GetPCLK2Freq - stm32f1xx_hal_rcc_ex.o(i.HAL_RCCEx_GetPeriphCLKFreq) refers to stm32f1xx_hal_rcc_ex.o(.constdata) for .constdata - stm32f1xx_hal_rcc_ex.o(i.HAL_RCCEx_PeriphCLKConfig) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick - stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler) refers to gpio_1.o(i.HAL_GPIO_EXTI_Callback) for HAL_GPIO_EXTI_Callback - stm32f1xx_hal_dma.o(i.HAL_DMA_PollForTransfer) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick - stm32f1xx_hal_dma.o(i.HAL_DMA_Start) refers to stm32f1xx_hal_dma.o(i.DMA_SetConfig) for DMA_SetConfig - stm32f1xx_hal_dma.o(i.HAL_DMA_Start_IT) refers to stm32f1xx_hal_dma.o(i.DMA_SetConfig) for DMA_SetConfig - stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) refers to stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority) for __NVIC_SetPriority - stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config) refers to stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority) for __NVIC_SetPriority - stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_IRQHandler) refers to stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Callback) for HAL_SYSTICK_Callback - stm32f1xx_hal_pwr.o(i.HAL_PWR_EnterSTOPMode) refers to stm32f1xx_hal_pwr.o(i.PWR_OverloadWfe) for PWR_OverloadWfe - stm32f1xx_hal_pwr.o(i.HAL_PWR_PVD_IRQHandler) refers to stm32f1xx_hal_pwr.o(i.HAL_PWR_PVDCallback) for HAL_PWR_PVDCallback - stm32f1xx_hal_flash.o(i.FLASH_Program_HalfWord) refers to stm32f1xx_hal_flash.o(.bss) for .bss - stm32f1xx_hal_flash.o(i.FLASH_SetErrorCode) refers to stm32f1xx_hal_flash.o(.bss) for .bss - stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) refers to stm32f1xx_hal.o(i.HAL_GetTick) for HAL_GetTick - stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) refers to stm32f1xx_hal_flash.o(i.FLASH_SetErrorCode) for FLASH_SetErrorCode - stm32f1xx_hal_flash.o(i.HAL_FLASH_GetError) refers to stm32f1xx_hal_flash.o(.bss) for .bss - stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(i.FLASH_SetErrorCode) for FLASH_SetErrorCode - stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(i.HAL_FLASH_OperationErrorCallback) for HAL_FLASH_OperationErrorCallback - stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(i.FLASH_Program_HalfWord) for FLASH_Program_HalfWord - stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(i.HAL_FLASH_EndOfOperationCallback) for HAL_FLASH_EndOfOperationCallback - stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_PageErase) for FLASH_PageErase - stm32f1xx_hal_flash.o(i.HAL_FLASH_IRQHandler) refers to stm32f1xx_hal_flash.o(.bss) for .bss - stm32f1xx_hal_flash.o(i.HAL_FLASH_OB_Launch) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_SystemReset) for HAL_NVIC_SystemReset - stm32f1xx_hal_flash.o(i.HAL_FLASH_Program) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation - stm32f1xx_hal_flash.o(i.HAL_FLASH_Program) refers to llushr.o(.text) for __aeabi_llsr - stm32f1xx_hal_flash.o(i.HAL_FLASH_Program) refers to stm32f1xx_hal_flash.o(i.FLASH_Program_HalfWord) for FLASH_Program_HalfWord - stm32f1xx_hal_flash.o(i.HAL_FLASH_Program) refers to stm32f1xx_hal_flash.o(.bss) for .bss - stm32f1xx_hal_flash.o(i.HAL_FLASH_Program_IT) refers to stm32f1xx_hal_flash.o(i.FLASH_Program_HalfWord) for FLASH_Program_HalfWord - stm32f1xx_hal_flash.o(i.HAL_FLASH_Program_IT) refers to stm32f1xx_hal_flash.o(.bss) for .bss - stm32f1xx_hal_flash_ex.o(i.FLASH_MassErase) refers to stm32f1xx_hal_flash.o(.bss) for pFlash - stm32f1xx_hal_flash_ex.o(i.FLASH_OB_DisableWRP) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation - stm32f1xx_hal_flash_ex.o(i.FLASH_OB_DisableWRP) refers to stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) for HAL_FLASHEx_OBErase - stm32f1xx_hal_flash_ex.o(i.FLASH_OB_DisableWRP) refers to stm32f1xx_hal_flash.o(.bss) for pFlash - stm32f1xx_hal_flash_ex.o(i.FLASH_OB_EnableWRP) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation - stm32f1xx_hal_flash_ex.o(i.FLASH_OB_EnableWRP) refers to stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) for HAL_FLASHEx_OBErase - stm32f1xx_hal_flash_ex.o(i.FLASH_OB_EnableWRP) refers to stm32f1xx_hal_flash.o(.bss) for pFlash - stm32f1xx_hal_flash_ex.o(i.FLASH_OB_RDP_LevelConfig) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation - stm32f1xx_hal_flash_ex.o(i.FLASH_OB_RDP_LevelConfig) refers to stm32f1xx_hal_flash.o(.bss) for pFlash - stm32f1xx_hal_flash_ex.o(i.FLASH_PageErase) refers to stm32f1xx_hal_flash.o(.bss) for pFlash - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_MassErase) for FLASH_MassErase - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_PageErase) for FLASH_PageErase - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase) refers to stm32f1xx_hal_flash.o(.bss) for pFlash - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase_IT) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_PageErase) for FLASH_PageErase - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase_IT) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_MassErase) for FLASH_MassErase - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase_IT) refers to stm32f1xx_hal_flash.o(.bss) for pFlash - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_GetRDP) for FLASH_OB_GetRDP - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_RDP_LevelConfig) for FLASH_OB_RDP_LevelConfig - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBErase) refers to stm32f1xx_hal_flash.o(.bss) for pFlash - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBGetConfig) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_GetRDP) for FLASH_OB_GetRDP - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_DisableWRP) for FLASH_OB_DisableWRP - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_EnableWRP) for FLASH_OB_EnableWRP - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash_ex.o(i.FLASH_OB_RDP_LevelConfig) for FLASH_OB_RDP_LevelConfig - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation - stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_OBProgram) refers to stm32f1xx_hal_flash.o(.bss) for pFlash stm32f1xx_hal_tim.o(i.HAL_TIM_Base_DeInit) refers to tim.o(i.HAL_TIM_Base_MspDeInit) for HAL_TIM_Base_MspDeInit stm32f1xx_hal_tim.o(i.HAL_TIM_Base_Init) refers to tim.o(i.HAL_TIM_Base_MspInit) for HAL_TIM_Base_MspInit stm32f1xx_hal_tim.o(i.HAL_TIM_Base_Init) refers to stm32f1xx_hal_tim.o(i.TIM_Base_SetConfig) for TIM_Base_SetConfig @@ -565,6 +576,622 @@ Section Cross References stm32f1xx_hal_uart.o(i.UART_WaitOnFlagUntilTimeout) refers to stm32f1xx_hal_uart.o(i.UART_EndRxTransfer) for UART_EndRxTransfer system_stm32f1xx.o(i.SystemCoreClockUpdate) refers to system_stm32f1xx.o(.data) for .data system_stm32f1xx.o(i.SystemCoreClockUpdate) refers to system_stm32f1xx.o(.constdata) for .constdata + event_groups.o(i.vEventGroupClearBitsCallback) refers to event_groups.o(i.xEventGroupClearBits) for xEventGroupClearBits + event_groups.o(i.vEventGroupDelete) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + event_groups.o(i.vEventGroupDelete) refers to tasks.o(i.vTaskRemoveFromUnorderedEventList) for vTaskRemoveFromUnorderedEventList + event_groups.o(i.vEventGroupDelete) refers to heap_4.o(i.vPortFree) for vPortFree + event_groups.o(i.vEventGroupDelete) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + event_groups.o(i.vEventGroupSetBitsCallback) refers to event_groups.o(i.xEventGroupSetBits) for xEventGroupSetBits + event_groups.o(i.xEventGroupClearBits) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + event_groups.o(i.xEventGroupClearBits) refers to port.o(i.vPortExitCritical) for vPortExitCritical + event_groups.o(i.xEventGroupClearBitsFromISR) refers to timers.o(i.xTimerPendFunctionCallFromISR) for xTimerPendFunctionCallFromISR + event_groups.o(i.xEventGroupClearBitsFromISR) refers to event_groups.o(i.vEventGroupClearBitsCallback) for vEventGroupClearBitsCallback + event_groups.o(i.xEventGroupCreate) refers to heap_4.o(i.pvPortMalloc) for pvPortMalloc + event_groups.o(i.xEventGroupCreate) refers to list.o(i.vListInitialise) for vListInitialise + event_groups.o(i.xEventGroupCreateStatic) refers to list.o(i.vListInitialise) for vListInitialise + event_groups.o(i.xEventGroupSetBits) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + event_groups.o(i.xEventGroupSetBits) refers to tasks.o(i.vTaskRemoveFromUnorderedEventList) for vTaskRemoveFromUnorderedEventList + event_groups.o(i.xEventGroupSetBits) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + event_groups.o(i.xEventGroupSetBitsFromISR) refers to timers.o(i.xTimerPendFunctionCallFromISR) for xTimerPendFunctionCallFromISR + event_groups.o(i.xEventGroupSetBitsFromISR) refers to event_groups.o(i.vEventGroupSetBitsCallback) for vEventGroupSetBitsCallback + event_groups.o(i.xEventGroupSync) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + event_groups.o(i.xEventGroupSync) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + event_groups.o(i.xEventGroupSync) refers to event_groups.o(i.xEventGroupSetBits) for xEventGroupSetBits + event_groups.o(i.xEventGroupSync) refers to tasks.o(i.vTaskPlaceOnUnorderedEventList) for vTaskPlaceOnUnorderedEventList + event_groups.o(i.xEventGroupSync) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + event_groups.o(i.xEventGroupSync) refers to tasks.o(i.uxTaskResetEventItemValue) for uxTaskResetEventItemValue + event_groups.o(i.xEventGroupSync) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + event_groups.o(i.xEventGroupSync) refers to port.o(i.vPortExitCritical) for vPortExitCritical + event_groups.o(i.xEventGroupWaitBits) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + event_groups.o(i.xEventGroupWaitBits) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + event_groups.o(i.xEventGroupWaitBits) refers to event_groups.o(i.prvTestWaitCondition) for prvTestWaitCondition + event_groups.o(i.xEventGroupWaitBits) refers to tasks.o(i.vTaskPlaceOnUnorderedEventList) for vTaskPlaceOnUnorderedEventList + event_groups.o(i.xEventGroupWaitBits) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + event_groups.o(i.xEventGroupWaitBits) refers to tasks.o(i.uxTaskResetEventItemValue) for uxTaskResetEventItemValue + event_groups.o(i.xEventGroupWaitBits) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + event_groups.o(i.xEventGroupWaitBits) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.pcQueueGetName) refers to queue.o(.bss) for .bss + queue.o(i.prvCopyDataFromQueue) refers to memcpya.o(.text) for __aeabi_memcpy + queue.o(i.prvCopyDataToQueue) refers to memcpya.o(.text) for __aeabi_memcpy + queue.o(i.prvCopyDataToQueue) refers to tasks.o(i.xTaskPriorityDisinherit) for xTaskPriorityDisinherit + queue.o(i.prvInitialiseMutex) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + queue.o(i.prvInitialiseNewQueue) refers to queue.o(i.xQueueGenericReset) for xQueueGenericReset + queue.o(i.prvIsQueueEmpty) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.prvIsQueueEmpty) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.prvUnlockQueue) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.prvUnlockQueue) refers to tasks.o(i.xTaskRemoveFromEventList) for xTaskRemoveFromEventList + queue.o(i.prvUnlockQueue) refers to tasks.o(i.vTaskMissedYield) for vTaskMissedYield + queue.o(i.prvUnlockQueue) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.uxQueueMessagesWaiting) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.uxQueueMessagesWaiting) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.uxQueueSpacesAvailable) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.uxQueueSpacesAvailable) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.vQueueAddToRegistry) refers to queue.o(.bss) for .bss + queue.o(i.vQueueDelete) refers to queue.o(i.vQueueUnregisterQueue) for vQueueUnregisterQueue + queue.o(i.vQueueDelete) refers to heap_4.o(i.vPortFree) for vPortFree + queue.o(i.vQueueUnregisterQueue) refers to queue.o(.bss) for .bss + queue.o(i.vQueueWaitForMessageRestricted) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.vQueueWaitForMessageRestricted) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.vQueueWaitForMessageRestricted) refers to tasks.o(i.vTaskPlaceOnEventListRestricted) for vTaskPlaceOnEventListRestricted + queue.o(i.vQueueWaitForMessageRestricted) refers to queue.o(i.prvUnlockQueue) for prvUnlockQueue + queue.o(i.xQueueCreateCountingSemaphore) refers to queue.o(i.xQueueGenericCreate) for xQueueGenericCreate + queue.o(i.xQueueCreateCountingSemaphoreStatic) refers to queue.o(i.xQueueGenericCreateStatic) for xQueueGenericCreateStatic + queue.o(i.xQueueCreateMutex) refers to queue.o(i.xQueueGenericCreate) for xQueueGenericCreate + queue.o(i.xQueueCreateMutex) refers to queue.o(i.prvInitialiseMutex) for prvInitialiseMutex + queue.o(i.xQueueCreateMutexStatic) refers to queue.o(i.xQueueGenericCreateStatic) for xQueueGenericCreateStatic + queue.o(i.xQueueCreateMutexStatic) refers to queue.o(i.prvInitialiseMutex) for prvInitialiseMutex + queue.o(i.xQueueGenericCreate) refers to heap_4.o(i.pvPortMalloc) for pvPortMalloc + queue.o(i.xQueueGenericCreate) refers to queue.o(i.prvInitialiseNewQueue) for prvInitialiseNewQueue + queue.o(i.xQueueGenericCreateStatic) refers to queue.o(i.prvInitialiseNewQueue) for prvInitialiseNewQueue + queue.o(i.xQueueGenericReset) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.xQueueGenericReset) refers to list.o(i.vListInitialise) for vListInitialise + queue.o(i.xQueueGenericReset) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.xQueueGenericReset) refers to tasks.o(i.xTaskRemoveFromEventList) for xTaskRemoveFromEventList + queue.o(i.xQueueGenericSend) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + queue.o(i.xQueueGenericSend) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.xQueueGenericSend) refers to queue.o(i.prvCopyDataToQueue) for prvCopyDataToQueue + queue.o(i.xQueueGenericSend) refers to tasks.o(i.xTaskRemoveFromEventList) for xTaskRemoveFromEventList + queue.o(i.xQueueGenericSend) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.xQueueGenericSend) refers to tasks.o(i.vTaskInternalSetTimeOutState) for vTaskInternalSetTimeOutState + queue.o(i.xQueueGenericSend) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + queue.o(i.xQueueGenericSend) refers to tasks.o(i.xTaskCheckForTimeOut) for xTaskCheckForTimeOut + queue.o(i.xQueueGenericSend) refers to queue.o(i.prvUnlockQueue) for prvUnlockQueue + queue.o(i.xQueueGenericSend) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + queue.o(i.xQueueGenericSend) refers to tasks.o(i.vTaskPlaceOnEventList) for vTaskPlaceOnEventList + queue.o(i.xQueueGenericSendFromISR) refers to port.o(i.vPortValidateInterruptPriority) for vPortValidateInterruptPriority + queue.o(i.xQueueGenericSendFromISR) refers to queue.o(i.prvCopyDataToQueue) for prvCopyDataToQueue + queue.o(i.xQueueGenericSendFromISR) refers to tasks.o(i.xTaskRemoveFromEventList) for xTaskRemoveFromEventList + queue.o(i.xQueueGetMutexHolder) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.xQueueGetMutexHolder) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.xQueueGiveFromISR) refers to port.o(i.vPortValidateInterruptPriority) for vPortValidateInterruptPriority + queue.o(i.xQueueGiveFromISR) refers to tasks.o(i.xTaskRemoveFromEventList) for xTaskRemoveFromEventList + queue.o(i.xQueueGiveMutexRecursive) refers to tasks.o(i.xTaskGetCurrentTaskHandle) for xTaskGetCurrentTaskHandle + queue.o(i.xQueueGiveMutexRecursive) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + queue.o(i.xQueuePeek) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + queue.o(i.xQueuePeek) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.xQueuePeek) refers to queue.o(i.prvCopyDataFromQueue) for prvCopyDataFromQueue + queue.o(i.xQueuePeek) refers to tasks.o(i.xTaskRemoveFromEventList) for xTaskRemoveFromEventList + queue.o(i.xQueuePeek) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.xQueuePeek) refers to tasks.o(i.vTaskInternalSetTimeOutState) for vTaskInternalSetTimeOutState + queue.o(i.xQueuePeek) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + queue.o(i.xQueuePeek) refers to tasks.o(i.xTaskCheckForTimeOut) for xTaskCheckForTimeOut + queue.o(i.xQueuePeek) refers to queue.o(i.prvUnlockQueue) for prvUnlockQueue + queue.o(i.xQueuePeek) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + queue.o(i.xQueuePeek) refers to queue.o(i.prvIsQueueEmpty) for prvIsQueueEmpty + queue.o(i.xQueuePeek) refers to tasks.o(i.vTaskPlaceOnEventList) for vTaskPlaceOnEventList + queue.o(i.xQueuePeekFromISR) refers to port.o(i.vPortValidateInterruptPriority) for vPortValidateInterruptPriority + queue.o(i.xQueuePeekFromISR) refers to queue.o(i.prvCopyDataFromQueue) for prvCopyDataFromQueue + queue.o(i.xQueueReceive) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + queue.o(i.xQueueReceive) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.xQueueReceive) refers to queue.o(i.prvCopyDataFromQueue) for prvCopyDataFromQueue + queue.o(i.xQueueReceive) refers to tasks.o(i.xTaskRemoveFromEventList) for xTaskRemoveFromEventList + queue.o(i.xQueueReceive) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.xQueueReceive) refers to tasks.o(i.vTaskInternalSetTimeOutState) for vTaskInternalSetTimeOutState + queue.o(i.xQueueReceive) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + queue.o(i.xQueueReceive) refers to tasks.o(i.xTaskCheckForTimeOut) for xTaskCheckForTimeOut + queue.o(i.xQueueReceive) refers to queue.o(i.prvUnlockQueue) for prvUnlockQueue + queue.o(i.xQueueReceive) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + queue.o(i.xQueueReceive) refers to queue.o(i.prvIsQueueEmpty) for prvIsQueueEmpty + queue.o(i.xQueueReceive) refers to tasks.o(i.vTaskPlaceOnEventList) for vTaskPlaceOnEventList + queue.o(i.xQueueReceiveFromISR) refers to port.o(i.vPortValidateInterruptPriority) for vPortValidateInterruptPriority + queue.o(i.xQueueReceiveFromISR) refers to queue.o(i.prvCopyDataFromQueue) for prvCopyDataFromQueue + queue.o(i.xQueueReceiveFromISR) refers to tasks.o(i.xTaskRemoveFromEventList) for xTaskRemoveFromEventList + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + queue.o(i.xQueueSemaphoreTake) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.pvTaskIncrementMutexHeldCount) for pvTaskIncrementMutexHeldCount + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.xTaskRemoveFromEventList) for xTaskRemoveFromEventList + queue.o(i.xQueueSemaphoreTake) refers to port.o(i.vPortExitCritical) for vPortExitCritical + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.vTaskInternalSetTimeOutState) for vTaskInternalSetTimeOutState + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.xTaskCheckForTimeOut) for xTaskCheckForTimeOut + queue.o(i.xQueueSemaphoreTake) refers to queue.o(i.prvUnlockQueue) for prvUnlockQueue + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + queue.o(i.xQueueSemaphoreTake) refers to queue.o(i.prvIsQueueEmpty) for prvIsQueueEmpty + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.xTaskPriorityInherit) for xTaskPriorityInherit + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.vTaskPlaceOnEventList) for vTaskPlaceOnEventList + queue.o(i.xQueueSemaphoreTake) refers to tasks.o(i.vTaskPriorityDisinheritAfterTimeout) for vTaskPriorityDisinheritAfterTimeout + queue.o(i.xQueueTakeMutexRecursive) refers to tasks.o(i.xTaskGetCurrentTaskHandle) for xTaskGetCurrentTaskHandle + queue.o(i.xQueueTakeMutexRecursive) refers to queue.o(i.xQueueSemaphoreTake) for xQueueSemaphoreTake + stream_buffer.o(i.prvInitialiseNewStreamBuffer) refers to memseta.o(.text) for memset + stream_buffer.o(i.prvReadBytesFromBuffer) refers to memcpya.o(.text) for __aeabi_memcpy + stream_buffer.o(i.prvReadMessageFromBuffer) refers to stream_buffer.o(i.prvReadBytesFromBuffer) for prvReadBytesFromBuffer + stream_buffer.o(i.prvWriteBytesToBuffer) refers to memcpya.o(.text) for __aeabi_memcpy + stream_buffer.o(i.prvWriteMessageToBuffer) refers to stream_buffer.o(i.prvWriteBytesToBuffer) for prvWriteBytesToBuffer + stream_buffer.o(i.vStreamBufferDelete) refers to heap_4.o(i.vPortFree) for vPortFree + stream_buffer.o(i.vStreamBufferDelete) refers to memseta.o(.text) for __aeabi_memclr4 + stream_buffer.o(i.xStreamBufferBytesAvailable) refers to stream_buffer.o(i.prvBytesInBuffer) for prvBytesInBuffer + stream_buffer.o(i.xStreamBufferGenericCreate) refers to heap_4.o(i.pvPortMalloc) for pvPortMalloc + stream_buffer.o(i.xStreamBufferGenericCreate) refers to stream_buffer.o(i.prvInitialiseNewStreamBuffer) for prvInitialiseNewStreamBuffer + stream_buffer.o(i.xStreamBufferGenericCreateStatic) refers to stream_buffer.o(i.prvInitialiseNewStreamBuffer) for prvInitialiseNewStreamBuffer + stream_buffer.o(i.xStreamBufferIsFull) refers to stream_buffer.o(i.xStreamBufferSpacesAvailable) for xStreamBufferSpacesAvailable + stream_buffer.o(i.xStreamBufferNextMessageLengthBytes) refers to stream_buffer.o(i.prvBytesInBuffer) for prvBytesInBuffer + stream_buffer.o(i.xStreamBufferNextMessageLengthBytes) refers to stream_buffer.o(i.prvReadBytesFromBuffer) for prvReadBytesFromBuffer + stream_buffer.o(i.xStreamBufferReceive) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + stream_buffer.o(i.xStreamBufferReceive) refers to stream_buffer.o(i.prvBytesInBuffer) for prvBytesInBuffer + stream_buffer.o(i.xStreamBufferReceive) refers to tasks.o(i.xTaskNotifyStateClear) for xTaskNotifyStateClear + stream_buffer.o(i.xStreamBufferReceive) refers to tasks.o(i.xTaskGetCurrentTaskHandle) for xTaskGetCurrentTaskHandle + stream_buffer.o(i.xStreamBufferReceive) refers to port.o(i.vPortExitCritical) for vPortExitCritical + stream_buffer.o(i.xStreamBufferReceive) refers to tasks.o(i.xTaskNotifyWait) for xTaskNotifyWait + stream_buffer.o(i.xStreamBufferReceive) refers to stream_buffer.o(i.prvReadMessageFromBuffer) for prvReadMessageFromBuffer + stream_buffer.o(i.xStreamBufferReceive) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + stream_buffer.o(i.xStreamBufferReceive) refers to tasks.o(i.xTaskGenericNotify) for xTaskGenericNotify + stream_buffer.o(i.xStreamBufferReceive) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + stream_buffer.o(i.xStreamBufferReceiveCompletedFromISR) refers to tasks.o(i.xTaskGenericNotifyFromISR) for xTaskGenericNotifyFromISR + stream_buffer.o(i.xStreamBufferReceiveFromISR) refers to stream_buffer.o(i.prvBytesInBuffer) for prvBytesInBuffer + stream_buffer.o(i.xStreamBufferReceiveFromISR) refers to stream_buffer.o(i.prvReadMessageFromBuffer) for prvReadMessageFromBuffer + stream_buffer.o(i.xStreamBufferReceiveFromISR) refers to tasks.o(i.xTaskGenericNotifyFromISR) for xTaskGenericNotifyFromISR + stream_buffer.o(i.xStreamBufferReset) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + stream_buffer.o(i.xStreamBufferReset) refers to stream_buffer.o(i.prvInitialiseNewStreamBuffer) for prvInitialiseNewStreamBuffer + stream_buffer.o(i.xStreamBufferReset) refers to port.o(i.vPortExitCritical) for vPortExitCritical + stream_buffer.o(i.xStreamBufferSend) refers to tasks.o(i.vTaskSetTimeOutState) for vTaskSetTimeOutState + stream_buffer.o(i.xStreamBufferSend) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + stream_buffer.o(i.xStreamBufferSend) refers to stream_buffer.o(i.xStreamBufferSpacesAvailable) for xStreamBufferSpacesAvailable + stream_buffer.o(i.xStreamBufferSend) refers to tasks.o(i.xTaskNotifyStateClear) for xTaskNotifyStateClear + stream_buffer.o(i.xStreamBufferSend) refers to tasks.o(i.xTaskGetCurrentTaskHandle) for xTaskGetCurrentTaskHandle + stream_buffer.o(i.xStreamBufferSend) refers to port.o(i.vPortExitCritical) for vPortExitCritical + stream_buffer.o(i.xStreamBufferSend) refers to tasks.o(i.xTaskNotifyWait) for xTaskNotifyWait + stream_buffer.o(i.xStreamBufferSend) refers to tasks.o(i.xTaskCheckForTimeOut) for xTaskCheckForTimeOut + stream_buffer.o(i.xStreamBufferSend) refers to stream_buffer.o(i.prvWriteMessageToBuffer) for prvWriteMessageToBuffer + stream_buffer.o(i.xStreamBufferSend) refers to stream_buffer.o(i.prvBytesInBuffer) for prvBytesInBuffer + stream_buffer.o(i.xStreamBufferSend) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + stream_buffer.o(i.xStreamBufferSend) refers to tasks.o(i.xTaskGenericNotify) for xTaskGenericNotify + stream_buffer.o(i.xStreamBufferSend) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + stream_buffer.o(i.xStreamBufferSendCompletedFromISR) refers to tasks.o(i.xTaskGenericNotifyFromISR) for xTaskGenericNotifyFromISR + stream_buffer.o(i.xStreamBufferSendFromISR) refers to stream_buffer.o(i.xStreamBufferSpacesAvailable) for xStreamBufferSpacesAvailable + stream_buffer.o(i.xStreamBufferSendFromISR) refers to stream_buffer.o(i.prvWriteMessageToBuffer) for prvWriteMessageToBuffer + stream_buffer.o(i.xStreamBufferSendFromISR) refers to stream_buffer.o(i.prvBytesInBuffer) for prvBytesInBuffer + stream_buffer.o(i.xStreamBufferSendFromISR) refers to tasks.o(i.xTaskGenericNotifyFromISR) for xTaskGenericNotifyFromISR + tasks.o(i.eTaskGetState) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.eTaskGetState) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.eTaskGetState) refers to tasks.o(.data) for .data + tasks.o(i.eTaskGetState) refers to tasks.o(.bss) for .bss + tasks.o(i.pcTaskGetName) refers to tasks.o(.data) for .data + tasks.o(i.prvAddCurrentTaskToDelayedList) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.prvAddCurrentTaskToDelayedList) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.prvAddCurrentTaskToDelayedList) refers to list.o(i.vListInsert) for vListInsert + tasks.o(i.prvAddCurrentTaskToDelayedList) refers to tasks.o(.data) for .data + tasks.o(i.prvAddCurrentTaskToDelayedList) refers to tasks.o(.bss) for .bss + tasks.o(i.prvAddNewTaskToReadyList) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.prvAddNewTaskToReadyList) refers to list.o(i.vListInitialise) for vListInitialise + tasks.o(i.prvAddNewTaskToReadyList) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.prvAddNewTaskToReadyList) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.prvAddNewTaskToReadyList) refers to tasks.o(.data) for .data + tasks.o(i.prvAddNewTaskToReadyList) refers to tasks.o(.bss) for .bss + tasks.o(i.prvDeleteTCB) refers to heap_4.o(i.vPortFree) for vPortFree + tasks.o(i.prvIdleTask) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.prvIdleTask) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.prvIdleTask) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.prvIdleTask) refers to tasks.o(i.prvDeleteTCB) for prvDeleteTCB + tasks.o(i.prvIdleTask) refers to tasks.o(.bss) for .bss + tasks.o(i.prvIdleTask) refers to tasks.o(.data) for .data + tasks.o(i.prvInitialiseNewTask) refers to memseta.o(.text) for __aeabi_memset + tasks.o(i.prvInitialiseNewTask) refers to list.o(i.vListInitialiseItem) for vListInitialiseItem + tasks.o(i.prvInitialiseNewTask) refers to port.o(i.pxPortInitialiseStack) for pxPortInitialiseStack + tasks.o(i.prvListTasksWithinSingleList) refers to tasks.o(i.vTaskGetInfo) for vTaskGetInfo + tasks.o(i.prvResetNextTaskUnblockTime) refers to tasks.o(.data) for .data + tasks.o(i.prvTaskIsTaskSuspended) refers to tasks.o(.bss) for .bss + tasks.o(i.pvTaskIncrementMutexHeldCount) refers to tasks.o(.data) for .data + tasks.o(i.ulTaskNotifyTake) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.ulTaskNotifyTake) refers to tasks.o(i.prvAddCurrentTaskToDelayedList) for prvAddCurrentTaskToDelayedList + tasks.o(i.ulTaskNotifyTake) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.ulTaskNotifyTake) refers to tasks.o(.data) for .data + tasks.o(i.ulTaskNotifyValueClear) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.ulTaskNotifyValueClear) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.ulTaskNotifyValueClear) refers to tasks.o(.data) for .data + tasks.o(i.uxTaskGetNumberOfTasks) refers to tasks.o(.data) for .data + tasks.o(i.uxTaskGetStackHighWaterMark) refers to tasks.o(i.prvTaskCheckFreeStackSpace) for prvTaskCheckFreeStackSpace + tasks.o(i.uxTaskGetStackHighWaterMark) refers to tasks.o(.data) for .data + tasks.o(i.uxTaskGetSystemState) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + tasks.o(i.uxTaskGetSystemState) refers to tasks.o(i.prvListTasksWithinSingleList) for prvListTasksWithinSingleList + tasks.o(i.uxTaskGetSystemState) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + tasks.o(i.uxTaskGetSystemState) refers to tasks.o(.data) for .data + tasks.o(i.uxTaskGetSystemState) refers to tasks.o(.bss) for .bss + tasks.o(i.uxTaskPriorityGet) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.uxTaskPriorityGet) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.uxTaskPriorityGet) refers to tasks.o(.data) for .data + tasks.o(i.uxTaskPriorityGetFromISR) refers to port.o(i.vPortValidateInterruptPriority) for vPortValidateInterruptPriority + tasks.o(i.uxTaskPriorityGetFromISR) refers to tasks.o(.data) for .data + tasks.o(i.uxTaskResetEventItemValue) refers to tasks.o(.data) for .data + tasks.o(i.vTaskDelay) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + tasks.o(i.vTaskDelay) refers to tasks.o(i.prvAddCurrentTaskToDelayedList) for prvAddCurrentTaskToDelayedList + tasks.o(i.vTaskDelay) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + tasks.o(i.vTaskDelay) refers to tasks.o(.data) for .data + tasks.o(i.vTaskDelayUntil) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + tasks.o(i.vTaskDelayUntil) refers to tasks.o(i.prvAddCurrentTaskToDelayedList) for prvAddCurrentTaskToDelayedList + tasks.o(i.vTaskDelayUntil) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + tasks.o(i.vTaskDelayUntil) refers to tasks.o(.data) for .data + tasks.o(i.vTaskDelete) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.vTaskDelete) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.vTaskDelete) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.vTaskDelete) refers to tasks.o(i.prvDeleteTCB) for prvDeleteTCB + tasks.o(i.vTaskDelete) refers to tasks.o(i.prvResetNextTaskUnblockTime) for prvResetNextTaskUnblockTime + tasks.o(i.vTaskDelete) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.vTaskDelete) refers to tasks.o(.data) for .data + tasks.o(i.vTaskDelete) refers to tasks.o(.bss) for .bss + tasks.o(i.vTaskEndScheduler) refers to port.o(i.vPortEndScheduler) for vPortEndScheduler + tasks.o(i.vTaskEndScheduler) refers to tasks.o(.data) for .data + tasks.o(i.vTaskGetInfo) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + tasks.o(i.vTaskGetInfo) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + tasks.o(i.vTaskGetInfo) refers to tasks.o(i.eTaskGetState) for eTaskGetState + tasks.o(i.vTaskGetInfo) refers to tasks.o(i.prvTaskCheckFreeStackSpace) for prvTaskCheckFreeStackSpace + tasks.o(i.vTaskGetInfo) refers to tasks.o(.data) for .data + tasks.o(i.vTaskInternalSetTimeOutState) refers to tasks.o(.data) for .data + tasks.o(i.vTaskMissedYield) refers to tasks.o(.data) for .data + tasks.o(i.vTaskNotifyGiveFromISR) refers to port.o(i.vPortValidateInterruptPriority) for vPortValidateInterruptPriority + tasks.o(i.vTaskNotifyGiveFromISR) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.vTaskNotifyGiveFromISR) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.vTaskNotifyGiveFromISR) refers to tasks.o(.data) for .data + tasks.o(i.vTaskNotifyGiveFromISR) refers to tasks.o(.bss) for .bss + tasks.o(i.vTaskPlaceOnEventList) refers to list.o(i.vListInsert) for vListInsert + tasks.o(i.vTaskPlaceOnEventList) refers to tasks.o(i.prvAddCurrentTaskToDelayedList) for prvAddCurrentTaskToDelayedList + tasks.o(i.vTaskPlaceOnEventList) refers to tasks.o(.data) for .data + tasks.o(i.vTaskPlaceOnEventListRestricted) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.vTaskPlaceOnEventListRestricted) refers to tasks.o(i.prvAddCurrentTaskToDelayedList) for prvAddCurrentTaskToDelayedList + tasks.o(i.vTaskPlaceOnEventListRestricted) refers to tasks.o(.data) for .data + tasks.o(i.vTaskPlaceOnUnorderedEventList) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.vTaskPlaceOnUnorderedEventList) refers to tasks.o(i.prvAddCurrentTaskToDelayedList) for prvAddCurrentTaskToDelayedList + tasks.o(i.vTaskPlaceOnUnorderedEventList) refers to tasks.o(.data) for .data + tasks.o(i.vTaskPriorityDisinheritAfterTimeout) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.vTaskPriorityDisinheritAfterTimeout) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.vTaskPriorityDisinheritAfterTimeout) refers to tasks.o(.data) for .data + tasks.o(i.vTaskPriorityDisinheritAfterTimeout) refers to tasks.o(.bss) for .bss + tasks.o(i.vTaskPrioritySet) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.vTaskPrioritySet) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.vTaskPrioritySet) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.vTaskPrioritySet) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.vTaskPrioritySet) refers to tasks.o(.data) for .data + tasks.o(i.vTaskPrioritySet) refers to tasks.o(.bss) for .bss + tasks.o(i.vTaskRemoveFromUnorderedEventList) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.vTaskRemoveFromUnorderedEventList) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.vTaskRemoveFromUnorderedEventList) refers to tasks.o(.data) for .data + tasks.o(i.vTaskRemoveFromUnorderedEventList) refers to tasks.o(.bss) for .bss + tasks.o(i.vTaskResume) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.vTaskResume) refers to tasks.o(i.prvTaskIsTaskSuspended) for prvTaskIsTaskSuspended + tasks.o(i.vTaskResume) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.vTaskResume) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.vTaskResume) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.vTaskResume) refers to tasks.o(.data) for .data + tasks.o(i.vTaskResume) refers to tasks.o(.bss) for .bss + tasks.o(i.vTaskSetTimeOutState) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.vTaskSetTimeOutState) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.vTaskSetTimeOutState) refers to tasks.o(.data) for .data + tasks.o(i.vTaskStartScheduler) refers to cmsis_os2.o(i.vApplicationGetIdleTaskMemory) for vApplicationGetIdleTaskMemory + tasks.o(i.vTaskStartScheduler) refers to tasks.o(i.xTaskCreateStatic) for xTaskCreateStatic + tasks.o(i.vTaskStartScheduler) refers to timers.o(i.xTimerCreateTimerTask) for xTimerCreateTimerTask + tasks.o(i.vTaskStartScheduler) refers to port.o(i.xPortStartScheduler) for xPortStartScheduler + tasks.o(i.vTaskStartScheduler) refers to tasks.o(i.prvIdleTask) for prvIdleTask + tasks.o(i.vTaskStartScheduler) refers to tasks.o(.data) for .data + tasks.o(i.vTaskSuspend) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.vTaskSuspend) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.vTaskSuspend) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.vTaskSuspend) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.vTaskSuspend) refers to tasks.o(i.prvResetNextTaskUnblockTime) for prvResetNextTaskUnblockTime + tasks.o(i.vTaskSuspend) refers to tasks.o(i.vTaskSwitchContext) for vTaskSwitchContext + tasks.o(i.vTaskSuspend) refers to tasks.o(.data) for .data + tasks.o(i.vTaskSuspend) refers to tasks.o(.bss) for .bss + tasks.o(i.vTaskSuspendAll) refers to tasks.o(.data) for .data + tasks.o(i.vTaskSwitchContext) refers to tasks.o(.data) for .data + tasks.o(i.vTaskSwitchContext) refers to tasks.o(.bss) for .bss + tasks.o(i.xTaskCatchUpTicks) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + tasks.o(i.xTaskCatchUpTicks) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + tasks.o(i.xTaskCatchUpTicks) refers to tasks.o(.data) for .data + tasks.o(i.xTaskCheckForTimeOut) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.xTaskCheckForTimeOut) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.xTaskCheckForTimeOut) refers to tasks.o(i.vTaskInternalSetTimeOutState) for vTaskInternalSetTimeOutState + tasks.o(i.xTaskCheckForTimeOut) refers to tasks.o(.data) for .data + tasks.o(i.xTaskCreate) refers to heap_4.o(i.pvPortMalloc) for pvPortMalloc + tasks.o(i.xTaskCreate) refers to tasks.o(i.prvInitialiseNewTask) for prvInitialiseNewTask + tasks.o(i.xTaskCreate) refers to tasks.o(i.prvAddNewTaskToReadyList) for prvAddNewTaskToReadyList + tasks.o(i.xTaskCreate) refers to heap_4.o(i.vPortFree) for vPortFree + tasks.o(i.xTaskCreateStatic) refers to tasks.o(i.prvInitialiseNewTask) for prvInitialiseNewTask + tasks.o(i.xTaskCreateStatic) refers to tasks.o(i.prvAddNewTaskToReadyList) for prvAddNewTaskToReadyList + tasks.o(i.xTaskGenericNotify) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.xTaskGenericNotify) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.xTaskGenericNotify) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.xTaskGenericNotify) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.xTaskGenericNotify) refers to tasks.o(.data) for .data + tasks.o(i.xTaskGenericNotify) refers to tasks.o(.bss) for .bss + tasks.o(i.xTaskGenericNotifyFromISR) refers to port.o(i.vPortValidateInterruptPriority) for vPortValidateInterruptPriority + tasks.o(i.xTaskGenericNotifyFromISR) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.xTaskGenericNotifyFromISR) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.xTaskGenericNotifyFromISR) refers to tasks.o(.data) for .data + tasks.o(i.xTaskGenericNotifyFromISR) refers to tasks.o(.bss) for .bss + tasks.o(i.xTaskGetCurrentTaskHandle) refers to tasks.o(.data) for .data + tasks.o(i.xTaskGetSchedulerState) refers to tasks.o(.data) for .data + tasks.o(i.xTaskGetTickCount) refers to tasks.o(.data) for .data + tasks.o(i.xTaskGetTickCountFromISR) refers to port.o(i.vPortValidateInterruptPriority) for vPortValidateInterruptPriority + tasks.o(i.xTaskGetTickCountFromISR) refers to tasks.o(.data) for .data + tasks.o(i.xTaskIncrementTick) refers to tasks.o(i.prvResetNextTaskUnblockTime) for prvResetNextTaskUnblockTime + tasks.o(i.xTaskIncrementTick) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.xTaskIncrementTick) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.xTaskIncrementTick) refers to tasks.o(.data) for .data + tasks.o(i.xTaskIncrementTick) refers to tasks.o(.bss) for .bss + tasks.o(i.xTaskNotifyStateClear) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.xTaskNotifyStateClear) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.xTaskNotifyStateClear) refers to tasks.o(.data) for .data + tasks.o(i.xTaskNotifyWait) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.xTaskNotifyWait) refers to tasks.o(i.prvAddCurrentTaskToDelayedList) for prvAddCurrentTaskToDelayedList + tasks.o(i.xTaskNotifyWait) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.xTaskNotifyWait) refers to tasks.o(.data) for .data + tasks.o(i.xTaskPriorityDisinherit) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.xTaskPriorityDisinherit) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.xTaskPriorityDisinherit) refers to tasks.o(.data) for .data + tasks.o(i.xTaskPriorityDisinherit) refers to tasks.o(.bss) for .bss + tasks.o(i.xTaskPriorityInherit) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.xTaskPriorityInherit) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.xTaskPriorityInherit) refers to tasks.o(.data) for .data + tasks.o(i.xTaskPriorityInherit) refers to tasks.o(.bss) for .bss + tasks.o(i.xTaskRemoveFromEventList) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.xTaskRemoveFromEventList) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.xTaskRemoveFromEventList) refers to tasks.o(.data) for .data + tasks.o(i.xTaskRemoveFromEventList) refers to tasks.o(.bss) for .bss + tasks.o(i.xTaskResumeAll) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + tasks.o(i.xTaskResumeAll) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.xTaskResumeAll) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.xTaskResumeAll) refers to tasks.o(i.prvResetNextTaskUnblockTime) for prvResetNextTaskUnblockTime + tasks.o(i.xTaskResumeAll) refers to tasks.o(i.xTaskIncrementTick) for xTaskIncrementTick + tasks.o(i.xTaskResumeAll) refers to port.o(i.vPortExitCritical) for vPortExitCritical + tasks.o(i.xTaskResumeAll) refers to tasks.o(.data) for .data + tasks.o(i.xTaskResumeAll) refers to tasks.o(.bss) for .bss + tasks.o(i.xTaskResumeFromISR) refers to port.o(i.vPortValidateInterruptPriority) for vPortValidateInterruptPriority + tasks.o(i.xTaskResumeFromISR) refers to tasks.o(i.prvTaskIsTaskSuspended) for prvTaskIsTaskSuspended + tasks.o(i.xTaskResumeFromISR) refers to list.o(i.uxListRemove) for uxListRemove + tasks.o(i.xTaskResumeFromISR) refers to list.o(i.vListInsertEnd) for vListInsertEnd + tasks.o(i.xTaskResumeFromISR) refers to tasks.o(.data) for .data + tasks.o(i.xTaskResumeFromISR) refers to tasks.o(.bss) for .bss + timers.o(i.prvCheckForValidListAndQueue) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + timers.o(i.prvCheckForValidListAndQueue) refers to list.o(i.vListInitialise) for vListInitialise + timers.o(i.prvCheckForValidListAndQueue) refers to queue.o(i.xQueueGenericCreateStatic) for xQueueGenericCreateStatic + timers.o(i.prvCheckForValidListAndQueue) refers to queue.o(i.vQueueAddToRegistry) for vQueueAddToRegistry + timers.o(i.prvCheckForValidListAndQueue) refers to port.o(i.vPortExitCritical) for vPortExitCritical + timers.o(i.prvCheckForValidListAndQueue) refers to timers.o(.data) for .data + timers.o(i.prvCheckForValidListAndQueue) refers to timers.o(.bss) for .bss + timers.o(i.prvInitialiseNewTimer) refers to timers.o(i.prvCheckForValidListAndQueue) for prvCheckForValidListAndQueue + timers.o(i.prvInitialiseNewTimer) refers to list.o(i.vListInitialiseItem) for vListInitialiseItem + timers.o(i.prvInsertTimerInActiveList) refers to list.o(i.vListInsert) for vListInsert + timers.o(i.prvInsertTimerInActiveList) refers to timers.o(.data) for .data + timers.o(i.prvProcessReceivedCommands) refers to list.o(i.uxListRemove) for uxListRemove + timers.o(i.prvProcessReceivedCommands) refers to timers.o(i.prvSampleTimeNow) for prvSampleTimeNow + timers.o(i.prvProcessReceivedCommands) refers to timers.o(i.prvInsertTimerInActiveList) for prvInsertTimerInActiveList + timers.o(i.prvProcessReceivedCommands) refers to timers.o(i.xTimerGenericCommand) for xTimerGenericCommand + timers.o(i.prvProcessReceivedCommands) refers to heap_4.o(i.vPortFree) for vPortFree + timers.o(i.prvProcessReceivedCommands) refers to queue.o(i.xQueueReceive) for xQueueReceive + timers.o(i.prvProcessReceivedCommands) refers to timers.o(.data) for .data + timers.o(i.prvProcessTimerOrBlockTask) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + timers.o(i.prvProcessTimerOrBlockTask) refers to timers.o(i.prvSampleTimeNow) for prvSampleTimeNow + timers.o(i.prvProcessTimerOrBlockTask) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + timers.o(i.prvProcessTimerOrBlockTask) refers to queue.o(i.vQueueWaitForMessageRestricted) for vQueueWaitForMessageRestricted + timers.o(i.prvProcessTimerOrBlockTask) refers to list.o(i.uxListRemove) for uxListRemove + timers.o(i.prvProcessTimerOrBlockTask) refers to timers.o(i.prvInsertTimerInActiveList) for prvInsertTimerInActiveList + timers.o(i.prvProcessTimerOrBlockTask) refers to timers.o(i.xTimerGenericCommand) for xTimerGenericCommand + timers.o(i.prvProcessTimerOrBlockTask) refers to timers.o(.data) for .data + timers.o(i.prvSampleTimeNow) refers to tasks.o(i.xTaskGetTickCount) for xTaskGetTickCount + timers.o(i.prvSampleTimeNow) refers to timers.o(i.prvSwitchTimerLists) for prvSwitchTimerLists + timers.o(i.prvSampleTimeNow) refers to timers.o(.data) for .data + timers.o(i.prvSwitchTimerLists) refers to list.o(i.uxListRemove) for uxListRemove + timers.o(i.prvSwitchTimerLists) refers to list.o(i.vListInsert) for vListInsert + timers.o(i.prvSwitchTimerLists) refers to timers.o(i.xTimerGenericCommand) for xTimerGenericCommand + timers.o(i.prvSwitchTimerLists) refers to timers.o(.data) for .data + timers.o(i.prvTimerTask) refers to timers.o(i.prvProcessTimerOrBlockTask) for prvProcessTimerOrBlockTask + timers.o(i.prvTimerTask) refers to timers.o(i.prvProcessReceivedCommands) for prvProcessReceivedCommands + timers.o(i.prvTimerTask) refers to timers.o(.data) for .data + timers.o(i.pvTimerGetTimerID) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + timers.o(i.pvTimerGetTimerID) refers to port.o(i.vPortExitCritical) for vPortExitCritical + timers.o(i.uxTimerGetReloadMode) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + timers.o(i.uxTimerGetReloadMode) refers to port.o(i.vPortExitCritical) for vPortExitCritical + timers.o(i.vTimerSetReloadMode) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + timers.o(i.vTimerSetReloadMode) refers to port.o(i.vPortExitCritical) for vPortExitCritical + timers.o(i.vTimerSetTimerID) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + timers.o(i.vTimerSetTimerID) refers to port.o(i.vPortExitCritical) for vPortExitCritical + timers.o(i.xTimerCreate) refers to heap_4.o(i.pvPortMalloc) for pvPortMalloc + timers.o(i.xTimerCreate) refers to timers.o(i.prvInitialiseNewTimer) for prvInitialiseNewTimer + timers.o(i.xTimerCreateStatic) refers to timers.o(i.prvInitialiseNewTimer) for prvInitialiseNewTimer + timers.o(i.xTimerCreateTimerTask) refers to timers.o(i.prvCheckForValidListAndQueue) for prvCheckForValidListAndQueue + timers.o(i.xTimerCreateTimerTask) refers to cmsis_os2.o(i.vApplicationGetTimerTaskMemory) for vApplicationGetTimerTaskMemory + timers.o(i.xTimerCreateTimerTask) refers to tasks.o(i.xTaskCreateStatic) for xTaskCreateStatic + timers.o(i.xTimerCreateTimerTask) refers to timers.o(.data) for .data + timers.o(i.xTimerCreateTimerTask) refers to timers.o(i.prvTimerTask) for prvTimerTask + timers.o(i.xTimerGenericCommand) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + timers.o(i.xTimerGenericCommand) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + timers.o(i.xTimerGenericCommand) refers to queue.o(i.xQueueGenericSendFromISR) for xQueueGenericSendFromISR + timers.o(i.xTimerGenericCommand) refers to timers.o(.data) for .data + timers.o(i.xTimerGetTimerDaemonTaskHandle) refers to timers.o(.data) for .data + timers.o(i.xTimerIsTimerActive) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + timers.o(i.xTimerIsTimerActive) refers to port.o(i.vPortExitCritical) for vPortExitCritical + timers.o(i.xTimerPendFunctionCall) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + timers.o(i.xTimerPendFunctionCall) refers to timers.o(.data) for .data + timers.o(i.xTimerPendFunctionCallFromISR) refers to queue.o(i.xQueueGenericSendFromISR) for xQueueGenericSendFromISR + timers.o(i.xTimerPendFunctionCallFromISR) refers to timers.o(.data) for .data + cmsis_os2.o(i.TimerCallback) refers to timers.o(i.pvTimerGetTimerID) for pvTimerGetTimerID + cmsis_os2.o(i.osDelay) refers to tasks.o(i.vTaskDelay) for vTaskDelay + cmsis_os2.o(i.osDelayUntil) refers to tasks.o(i.xTaskGetTickCount) for xTaskGetTickCount + cmsis_os2.o(i.osDelayUntil) refers to tasks.o(i.vTaskDelayUntil) for vTaskDelayUntil + cmsis_os2.o(i.osEventFlagsClear) refers to event_groups.o(i.xEventGroupGetBitsFromISR) for xEventGroupGetBitsFromISR + cmsis_os2.o(i.osEventFlagsClear) refers to event_groups.o(i.xEventGroupClearBitsFromISR) for xEventGroupClearBitsFromISR + cmsis_os2.o(i.osEventFlagsClear) refers to event_groups.o(i.xEventGroupClearBits) for xEventGroupClearBits + cmsis_os2.o(i.osEventFlagsDelete) refers to event_groups.o(i.vEventGroupDelete) for vEventGroupDelete + cmsis_os2.o(i.osEventFlagsGet) refers to event_groups.o(i.xEventGroupGetBitsFromISR) for xEventGroupGetBitsFromISR + cmsis_os2.o(i.osEventFlagsGet) refers to event_groups.o(i.xEventGroupClearBits) for xEventGroupClearBits + cmsis_os2.o(i.osEventFlagsNew) refers to event_groups.o(i.xEventGroupCreateStatic) for xEventGroupCreateStatic + cmsis_os2.o(i.osEventFlagsNew) refers to event_groups.o(i.xEventGroupCreate) for xEventGroupCreate + cmsis_os2.o(i.osEventFlagsSet) refers to event_groups.o(i.xEventGroupSetBitsFromISR) for xEventGroupSetBitsFromISR + cmsis_os2.o(i.osEventFlagsSet) refers to event_groups.o(i.xEventGroupSetBits) for xEventGroupSetBits + cmsis_os2.o(i.osEventFlagsWait) refers to event_groups.o(i.xEventGroupWaitBits) for xEventGroupWaitBits + cmsis_os2.o(i.osKernelGetInfo) refers to memcpya.o(.text) for __aeabi_memcpy + cmsis_os2.o(i.osKernelGetState) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + cmsis_os2.o(i.osKernelGetState) refers to cmsis_os2.o(.data) for .data + cmsis_os2.o(i.osKernelGetSysTimerCount) refers to tasks.o(i.xTaskGetTickCount) for xTaskGetTickCount + cmsis_os2.o(i.osKernelGetSysTimerCount) refers to cmsis_os2.o(i.OS_Tick_GetCount) for OS_Tick_GetCount + cmsis_os2.o(i.osKernelGetSysTimerFreq) refers to system_stm32f1xx.o(.data) for SystemCoreClock + cmsis_os2.o(i.osKernelGetTickCount) refers to tasks.o(i.xTaskGetTickCountFromISR) for xTaskGetTickCountFromISR + cmsis_os2.o(i.osKernelGetTickCount) refers to tasks.o(i.xTaskGetTickCount) for xTaskGetTickCount + cmsis_os2.o(i.osKernelInitialize) refers to cmsis_os2.o(.data) for .data + cmsis_os2.o(i.osKernelLock) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + cmsis_os2.o(i.osKernelLock) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + cmsis_os2.o(i.osKernelRestoreLock) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + cmsis_os2.o(i.osKernelRestoreLock) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + cmsis_os2.o(i.osKernelRestoreLock) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + cmsis_os2.o(i.osKernelStart) refers to tasks.o(i.vTaskStartScheduler) for vTaskStartScheduler + cmsis_os2.o(i.osKernelStart) refers to cmsis_os2.o(.data) for .data + cmsis_os2.o(i.osKernelUnlock) refers to tasks.o(i.xTaskGetSchedulerState) for xTaskGetSchedulerState + cmsis_os2.o(i.osKernelUnlock) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + cmsis_os2.o(i.osMemoryPoolAlloc) refers to queue.o(i.xQueueReceiveFromISR) for xQueueReceiveFromISR + cmsis_os2.o(i.osMemoryPoolAlloc) refers to cmsis_os2.o(i.AllocBlock) for AllocBlock + cmsis_os2.o(i.osMemoryPoolAlloc) refers to cmsis_os2.o(i.CreateBlock) for CreateBlock + cmsis_os2.o(i.osMemoryPoolAlloc) refers to queue.o(i.xQueueSemaphoreTake) for xQueueSemaphoreTake + cmsis_os2.o(i.osMemoryPoolAlloc) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + cmsis_os2.o(i.osMemoryPoolAlloc) refers to port.o(i.vPortExitCritical) for vPortExitCritical + cmsis_os2.o(i.osMemoryPoolDelete) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + cmsis_os2.o(i.osMemoryPoolDelete) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + cmsis_os2.o(i.osMemoryPoolDelete) refers to heap_4.o(i.vPortFree) for vPortFree + cmsis_os2.o(i.osMemoryPoolDelete) refers to port.o(i.vPortExitCritical) for vPortExitCritical + cmsis_os2.o(i.osMemoryPoolFree) refers to queue.o(i.uxQueueMessagesWaitingFromISR) for uxQueueMessagesWaitingFromISR + cmsis_os2.o(i.osMemoryPoolFree) refers to queue.o(i.xQueueGiveFromISR) for xQueueGiveFromISR + cmsis_os2.o(i.osMemoryPoolFree) refers to queue.o(i.uxQueueMessagesWaiting) for uxQueueMessagesWaiting + cmsis_os2.o(i.osMemoryPoolFree) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + cmsis_os2.o(i.osMemoryPoolFree) refers to port.o(i.vPortExitCritical) for vPortExitCritical + cmsis_os2.o(i.osMemoryPoolFree) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + cmsis_os2.o(i.osMemoryPoolGetCount) refers to queue.o(i.uxQueueMessagesWaitingFromISR) for uxQueueMessagesWaitingFromISR + cmsis_os2.o(i.osMemoryPoolGetCount) refers to queue.o(i.uxQueueMessagesWaiting) for uxQueueMessagesWaiting + cmsis_os2.o(i.osMemoryPoolGetSpace) refers to queue.o(i.uxQueueMessagesWaitingFromISR) for uxQueueMessagesWaitingFromISR + cmsis_os2.o(i.osMemoryPoolGetSpace) refers to queue.o(i.uxQueueMessagesWaiting) for uxQueueMessagesWaiting + cmsis_os2.o(i.osMemoryPoolNew) refers to heap_4.o(i.pvPortMalloc) for pvPortMalloc + cmsis_os2.o(i.osMemoryPoolNew) refers to queue.o(i.xQueueCreateCountingSemaphoreStatic) for xQueueCreateCountingSemaphoreStatic + cmsis_os2.o(i.osMemoryPoolNew) refers to heap_4.o(i.vPortFree) for vPortFree + cmsis_os2.o(i.osMessageQueueDelete) refers to queue.o(i.vQueueUnregisterQueue) for vQueueUnregisterQueue + cmsis_os2.o(i.osMessageQueueDelete) refers to queue.o(i.vQueueDelete) for vQueueDelete + cmsis_os2.o(i.osMessageQueueGet) refers to queue.o(i.xQueueReceiveFromISR) for xQueueReceiveFromISR + cmsis_os2.o(i.osMessageQueueGet) refers to queue.o(i.xQueueReceive) for xQueueReceive + cmsis_os2.o(i.osMessageQueueGetCount) refers to queue.o(i.uxQueueMessagesWaitingFromISR) for uxQueueMessagesWaitingFromISR + cmsis_os2.o(i.osMessageQueueGetCount) refers to queue.o(i.uxQueueMessagesWaiting) for uxQueueMessagesWaiting + cmsis_os2.o(i.osMessageQueueGetSpace) refers to queue.o(i.uxQueueSpacesAvailable) for uxQueueSpacesAvailable + cmsis_os2.o(i.osMessageQueueNew) refers to queue.o(i.xQueueGenericCreateStatic) for xQueueGenericCreateStatic + cmsis_os2.o(i.osMessageQueueNew) refers to queue.o(i.xQueueGenericCreate) for xQueueGenericCreate + cmsis_os2.o(i.osMessageQueueNew) refers to queue.o(i.vQueueAddToRegistry) for vQueueAddToRegistry + cmsis_os2.o(i.osMessageQueuePut) refers to queue.o(i.xQueueGenericSendFromISR) for xQueueGenericSendFromISR + cmsis_os2.o(i.osMessageQueuePut) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + cmsis_os2.o(i.osMessageQueueReset) refers to queue.o(i.xQueueGenericReset) for xQueueGenericReset + cmsis_os2.o(i.osMutexAcquire) refers to queue.o(i.xQueueTakeMutexRecursive) for xQueueTakeMutexRecursive + cmsis_os2.o(i.osMutexAcquire) refers to queue.o(i.xQueueSemaphoreTake) for xQueueSemaphoreTake + cmsis_os2.o(i.osMutexDelete) refers to queue.o(i.vQueueUnregisterQueue) for vQueueUnregisterQueue + cmsis_os2.o(i.osMutexDelete) refers to queue.o(i.vQueueDelete) for vQueueDelete + cmsis_os2.o(i.osMutexGetOwner) refers to queue.o(i.xQueueGetMutexHolder) for xQueueGetMutexHolder + cmsis_os2.o(i.osMutexNew) refers to queue.o(i.xQueueCreateMutexStatic) for xQueueCreateMutexStatic + cmsis_os2.o(i.osMutexNew) refers to queue.o(i.xQueueCreateMutex) for xQueueCreateMutex + cmsis_os2.o(i.osMutexNew) refers to queue.o(i.vQueueAddToRegistry) for vQueueAddToRegistry + cmsis_os2.o(i.osMutexRelease) refers to queue.o(i.xQueueGiveMutexRecursive) for xQueueGiveMutexRecursive + cmsis_os2.o(i.osMutexRelease) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + cmsis_os2.o(i.osSemaphoreAcquire) refers to queue.o(i.xQueueReceiveFromISR) for xQueueReceiveFromISR + cmsis_os2.o(i.osSemaphoreAcquire) refers to queue.o(i.xQueueSemaphoreTake) for xQueueSemaphoreTake + cmsis_os2.o(i.osSemaphoreDelete) refers to queue.o(i.vQueueUnregisterQueue) for vQueueUnregisterQueue + cmsis_os2.o(i.osSemaphoreDelete) refers to queue.o(i.vQueueDelete) for vQueueDelete + cmsis_os2.o(i.osSemaphoreGetCount) refers to queue.o(i.uxQueueMessagesWaitingFromISR) for uxQueueMessagesWaitingFromISR + cmsis_os2.o(i.osSemaphoreGetCount) refers to queue.o(i.uxQueueMessagesWaiting) for uxQueueMessagesWaiting + cmsis_os2.o(i.osSemaphoreNew) refers to queue.o(i.xQueueCreateCountingSemaphoreStatic) for xQueueCreateCountingSemaphoreStatic + cmsis_os2.o(i.osSemaphoreNew) refers to queue.o(i.xQueueGenericCreateStatic) for xQueueGenericCreateStatic + cmsis_os2.o(i.osSemaphoreNew) refers to queue.o(i.xQueueGenericCreate) for xQueueGenericCreate + cmsis_os2.o(i.osSemaphoreNew) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + cmsis_os2.o(i.osSemaphoreNew) refers to queue.o(i.vQueueDelete) for vQueueDelete + cmsis_os2.o(i.osSemaphoreNew) refers to queue.o(i.xQueueCreateCountingSemaphore) for xQueueCreateCountingSemaphore + cmsis_os2.o(i.osSemaphoreNew) refers to queue.o(i.vQueueAddToRegistry) for vQueueAddToRegistry + cmsis_os2.o(i.osSemaphoreRelease) refers to queue.o(i.xQueueGiveFromISR) for xQueueGiveFromISR + cmsis_os2.o(i.osSemaphoreRelease) refers to queue.o(i.xQueueGenericSend) for xQueueGenericSend + cmsis_os2.o(i.osThreadEnumerate) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + cmsis_os2.o(i.osThreadEnumerate) refers to tasks.o(i.uxTaskGetNumberOfTasks) for uxTaskGetNumberOfTasks + cmsis_os2.o(i.osThreadEnumerate) refers to heap_4.o(i.pvPortMalloc) for pvPortMalloc + cmsis_os2.o(i.osThreadEnumerate) refers to tasks.o(i.uxTaskGetSystemState) for uxTaskGetSystemState + cmsis_os2.o(i.osThreadEnumerate) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + cmsis_os2.o(i.osThreadEnumerate) refers to heap_4.o(i.vPortFree) for vPortFree + cmsis_os2.o(i.osThreadExit) refers to tasks.o(i.vTaskDelete) for vTaskDelete + cmsis_os2.o(i.osThreadFlagsClear) refers to tasks.o(i.xTaskGetCurrentTaskHandle) for xTaskGetCurrentTaskHandle + cmsis_os2.o(i.osThreadFlagsClear) refers to tasks.o(i.xTaskGenericNotify) for xTaskGenericNotify + cmsis_os2.o(i.osThreadFlagsGet) refers to tasks.o(i.xTaskGetCurrentTaskHandle) for xTaskGetCurrentTaskHandle + cmsis_os2.o(i.osThreadFlagsGet) refers to tasks.o(i.xTaskGenericNotify) for xTaskGenericNotify + cmsis_os2.o(i.osThreadFlagsSet) refers to tasks.o(i.xTaskGenericNotifyFromISR) for xTaskGenericNotifyFromISR + cmsis_os2.o(i.osThreadFlagsSet) refers to tasks.o(i.xTaskGenericNotify) for xTaskGenericNotify + cmsis_os2.o(i.osThreadFlagsWait) refers to tasks.o(i.xTaskGetTickCount) for xTaskGetTickCount + cmsis_os2.o(i.osThreadFlagsWait) refers to tasks.o(i.xTaskNotifyWait) for xTaskNotifyWait + cmsis_os2.o(i.osThreadGetCount) refers to tasks.o(i.uxTaskGetNumberOfTasks) for uxTaskGetNumberOfTasks + cmsis_os2.o(i.osThreadGetId) refers to tasks.o(i.xTaskGetCurrentTaskHandle) for xTaskGetCurrentTaskHandle + cmsis_os2.o(i.osThreadGetName) refers to tasks.o(i.pcTaskGetName) for pcTaskGetName + cmsis_os2.o(i.osThreadGetPriority) refers to tasks.o(i.uxTaskPriorityGet) for uxTaskPriorityGet + cmsis_os2.o(i.osThreadGetStackSpace) refers to tasks.o(i.uxTaskGetStackHighWaterMark) for uxTaskGetStackHighWaterMark + cmsis_os2.o(i.osThreadGetState) refers to tasks.o(i.eTaskGetState) for eTaskGetState + cmsis_os2.o(i.osThreadNew) refers to tasks.o(i.xTaskCreateStatic) for xTaskCreateStatic + cmsis_os2.o(i.osThreadNew) refers to tasks.o(i.xTaskCreate) for xTaskCreate + cmsis_os2.o(i.osThreadResume) refers to tasks.o(i.vTaskResume) for vTaskResume + cmsis_os2.o(i.osThreadSetPriority) refers to tasks.o(i.vTaskPrioritySet) for vTaskPrioritySet + cmsis_os2.o(i.osThreadSuspend) refers to tasks.o(i.vTaskSuspend) for vTaskSuspend + cmsis_os2.o(i.osThreadTerminate) refers to tasks.o(i.eTaskGetState) for eTaskGetState + cmsis_os2.o(i.osThreadTerminate) refers to tasks.o(i.vTaskDelete) for vTaskDelete + cmsis_os2.o(i.osTimerDelete) refers to timers.o(i.pvTimerGetTimerID) for pvTimerGetTimerID + cmsis_os2.o(i.osTimerDelete) refers to timers.o(i.xTimerGenericCommand) for xTimerGenericCommand + cmsis_os2.o(i.osTimerDelete) refers to heap_4.o(i.vPortFree) for vPortFree + cmsis_os2.o(i.osTimerGetName) refers to timers.o(i.pcTimerGetName) for pcTimerGetName + cmsis_os2.o(i.osTimerIsRunning) refers to timers.o(i.xTimerIsTimerActive) for xTimerIsTimerActive + cmsis_os2.o(i.osTimerNew) refers to heap_4.o(i.pvPortMalloc) for pvPortMalloc + cmsis_os2.o(i.osTimerNew) refers to timers.o(i.xTimerCreateStatic) for xTimerCreateStatic + cmsis_os2.o(i.osTimerNew) refers to timers.o(i.xTimerCreate) for xTimerCreate + cmsis_os2.o(i.osTimerNew) refers to heap_4.o(i.vPortFree) for vPortFree + cmsis_os2.o(i.osTimerNew) refers to cmsis_os2.o(i.TimerCallback) for TimerCallback + cmsis_os2.o(i.osTimerStart) refers to timers.o(i.xTimerGenericCommand) for xTimerGenericCommand + cmsis_os2.o(i.osTimerStop) refers to timers.o(i.xTimerIsTimerActive) for xTimerIsTimerActive + cmsis_os2.o(i.osTimerStop) refers to timers.o(i.xTimerGenericCommand) for xTimerGenericCommand + cmsis_os2.o(i.vApplicationGetIdleTaskMemory) refers to cmsis_os2.o(.bss) for .bss + cmsis_os2.o(i.vApplicationGetTimerTaskMemory) refers to cmsis_os2.o(.bss) for .bss + heap_4.o(i.prvHeapInit) refers to heap_4.o(.bss) for .bss + heap_4.o(i.prvHeapInit) refers to heap_4.o(.data) for .data + heap_4.o(i.prvInsertBlockIntoFreeList) refers to heap_4.o(.data) for .data + heap_4.o(i.pvPortMalloc) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + heap_4.o(i.pvPortMalloc) refers to heap_4.o(i.prvHeapInit) for prvHeapInit + heap_4.o(i.pvPortMalloc) refers to heap_4.o(i.prvInsertBlockIntoFreeList) for prvInsertBlockIntoFreeList + heap_4.o(i.pvPortMalloc) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + heap_4.o(i.pvPortMalloc) refers to heap_4.o(.data) for .data + heap_4.o(i.vPortFree) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + heap_4.o(i.vPortFree) refers to heap_4.o(i.prvInsertBlockIntoFreeList) for prvInsertBlockIntoFreeList + heap_4.o(i.vPortFree) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + heap_4.o(i.vPortFree) refers to heap_4.o(.data) for .data + heap_4.o(i.vPortGetHeapStats) refers to tasks.o(i.vTaskSuspendAll) for vTaskSuspendAll + heap_4.o(i.vPortGetHeapStats) refers to tasks.o(i.xTaskResumeAll) for xTaskResumeAll + heap_4.o(i.vPortGetHeapStats) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + heap_4.o(i.vPortGetHeapStats) refers to port.o(i.vPortExitCritical) for vPortExitCritical + heap_4.o(i.vPortGetHeapStats) refers to heap_4.o(.data) for .data + heap_4.o(i.xPortGetFreeHeapSize) refers to heap_4.o(.data) for .data + heap_4.o(i.xPortGetMinimumEverFreeHeapSize) refers to heap_4.o(.data) for .data + port.o(.emb_text) refers to tasks.o(i.vTaskSwitchContext) for vTaskSwitchContext + port.o(.emb_text) refers to tasks.o(.data) for pxCurrentTCB + port.o(i.prvTaskExitError) refers to port.o(.data) for .data + port.o(i.pxPortInitialiseStack) refers to port.o(i.prvTaskExitError) for prvTaskExitError + port.o(i.vPortEndScheduler) refers to port.o(.data) for .data + port.o(i.vPortEnterCritical) refers to port.o(.data) for .data + port.o(i.vPortExitCritical) refers to port.o(.data) for .data + port.o(i.vPortSetupTimerInterrupt) refers to system_stm32f1xx.o(.data) for SystemCoreClock + port.o(i.vPortValidateInterruptPriority) refers to port.o(.emb_text) for vPortGetIPSR + port.o(i.vPortValidateInterruptPriority) refers to port.o(.data) for .data + port.o(i.xPortStartScheduler) refers to port.o(i.vPortSetupTimerInterrupt) for vPortSetupTimerInterrupt + port.o(i.xPortStartScheduler) refers to port.o(.emb_text) for __asm___6_port_c_39a90d8d__prvStartFirstTask + port.o(i.xPortStartScheduler) refers to port.o(.data) for .data + port.o(i.xPortSysTickHandler) refers to tasks.o(i.xTaskIncrementTick) for xTaskIncrementTick gpio_1.o(i.BSP_GPIO_DisableIRQ) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_DisableIRQ) for HAL_NVIC_DisableIRQ gpio_1.o(i.BSP_GPIO_EnableIRQ) refers to stm32f1xx_hal_cortex.o(i.HAL_NVIC_EnableIRQ) for HAL_NVIC_EnableIRQ gpio_1.o(i.BSP_GPIO_ReadPin) refers to stm32f1xx_hal_gpio.o(i.HAL_GPIO_ReadPin) for HAL_GPIO_ReadPin @@ -636,6 +1263,23 @@ Section Cross References uart.o(i.HAL_UART_TxCpltCallback) refers to uart.o(.bss) for .bss uart.o(i.HAL_UART_TxHalfCpltCallback) refers to uart.o(i.UART_Get) for UART_Get uart.o(i.HAL_UART_TxHalfCpltCallback) refers to uart.o(.bss) for .bss + time.o(i.BSP_TIME_Delay_ms) refers to cmsis_os2.o(i.osKernelGetTickFreq) for osKernelGetTickFreq + time.o(i.BSP_TIME_Delay_ms) refers to cmsis_os2.o(i.osKernelGetState) for osKernelGetState + time.o(i.BSP_TIME_Delay_ms) refers to cmsis_os2.o(i.osDelay) for osDelay + time.o(i.BSP_TIME_Delay_ms) refers to stm32f1xx_hal.o(i.HAL_Delay) for HAL_Delay + time.o(i.BSP_TIME_Delay_us) refers to time.o(i.BSP_TIME_Get_us) for BSP_TIME_Get_us + time.o(i.BSP_TIME_Get_ms) refers to tasks.o(i.xTaskGetTickCount) for xTaskGetTickCount + time.o(i.BSP_TIME_Get_us) refers to cmsis_os2.o(i.osKernelGetTickFreq) for osKernelGetTickFreq + time.o(i.BSP_TIME_Get_us) refers to tasks.o(i.xTaskGetTickCount) for xTaskGetTickCount + flash.o(i.BSP_Flash_EraseSector) refers to stm32f1xx_hal_flash.o(i.HAL_FLASH_Unlock) for HAL_FLASH_Unlock + flash.o(i.BSP_Flash_EraseSector) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation + flash.o(i.BSP_Flash_EraseSector) refers to stm32f1xx_hal_flash_ex.o(i.HAL_FLASHEx_Erase) for HAL_FLASHEx_Erase + flash.o(i.BSP_Flash_EraseSector) refers to stm32f1xx_hal_flash.o(i.HAL_FLASH_Lock) for HAL_FLASH_Lock + flash.o(i.BSP_Flash_ReadBytes) refers to memcpya.o(.text) for __aeabi_memcpy + flash.o(i.BSP_Flash_WriteBytes) refers to stm32f1xx_hal_flash.o(i.HAL_FLASH_Unlock) for HAL_FLASH_Unlock + flash.o(i.BSP_Flash_WriteBytes) refers to stm32f1xx_hal_flash.o(i.FLASH_WaitForLastOperation) for FLASH_WaitForLastOperation + flash.o(i.BSP_Flash_WriteBytes) refers to stm32f1xx_hal_flash.o(i.HAL_FLASH_Program) for HAL_FLASH_Program + flash.o(i.BSP_Flash_WriteBytes) refers to stm32f1xx_hal_flash.o(i.HAL_FLASH_Lock) for HAL_FLASH_Lock lcd.o(i.LCD_Clear) refers to lcd.o(i.LCD_SetAddressWindow) for LCD_SetAddressWindow lcd.o(i.LCD_Clear) refers to malloc.o(i.malloc) for malloc lcd.o(i.LCD_Clear) refers to lcd.o(i.LCD_WriteDataBuffer_DMA) for LCD_WriteDataBuffer_DMA @@ -688,10 +1332,9 @@ Section Cross References sx1281.o(i.OnTxTimeout) refers to mr16.o(i.SX1281_Callback) for SX1281_Callback sx1281.o(i.OnTxTimeout) refers to sx1281.o(.data) for .data sx1281.o(i.SX1281_Callback) refers to printfa.o(i.__0printf) for __2printf - sx1281.o(i.SX1281_Callback) refers to sx1281.o(.data) for .data + sx1281.o(i.SX1281_Callback) refers to memseta.o(.text) for __aeabi_memclr4 sx1281.o(i.SX1281_Callback) refers to sx1281_driver_hal.o(.constdata) for Radio sx1281.o(i.SX1281_Callback) refers to sx1281.o(.constdata) for .constdata - sx1281.o(i.SX1281_Callback) refers to sx1281.o(.bss) for .bss sx1281.o(i.SX1281_GetState) refers to sx1281.o(.data) for .data sx1281.o(i.SX1281_Init) refers to sx1281_header.o(i.SX1281_BSPInit) for SX1281_BSPInit sx1281.o(i.SX1281_Init) refers to stm32f1xx_hal.o(i.HAL_Delay) for HAL_Delay @@ -701,7 +1344,6 @@ Section Cross References sx1281.o(i.SX1281_Init) refers to sx1281.o(.constdata) for .constdata sx1281.o(i.SX1281_Running) refers to sx1281_driver.o(i.SX1281ProcessIrqs) for SX1281ProcessIrqs sx1281.o(i.SX1281_Running) refers to sx1281.o(i.SX1281_GetState) for SX1281_GetState - sx1281.o(i.SX1281_Running) refers to stm32f1xx_hal.o(i.HAL_Delay) for HAL_Delay sx1281.o(i.SX1281_SetBLEBaudrate) refers to sx1281_driver_hal.o(.constdata) for Radio sx1281.o(i.SX1281_SetBLEBaudrate) refers to sx1281.o(.constdata) for .constdata sx1281.o(i.SX1281_SetFLRCBaudrate) refers to sx1281_driver_hal.o(.constdata) for Radio @@ -711,7 +1353,7 @@ Section Cross References sx1281.o(i.SX1281_SetLORABaudrate) refers to sx1281_driver_hal.o(.constdata) for Radio sx1281.o(i.SX1281_SetLORABaudrate) refers to sx1281.o(.constdata) for .constdata sx1281.o(i.SX1281_SetMode) refers to sx1281_driver_hal.o(.constdata) for Radio - sx1281.o(i.SX1281_SetPacketConfig) refers to sx1281_driver_hal.o(.constdata) for Radio + sx1281.o(i.SX1281_SetPayloadLength) refers to sx1281_driver_hal.o(.constdata) for Radio sx1281.o(i.SX1281_SetRFFrequency) refers to sx1281_driver_hal.o(.constdata) for Radio sx1281.o(i.SX1281_SetRXSingle) refers to sx1281_driver_hal.o(.constdata) for Radio sx1281.o(i.SX1281_SetRXSingle) refers to sx1281.o(.data) for .data @@ -952,18 +1594,106 @@ Section Cross References crc8.o(i.CRC8_Verify) refers to crc8.o(i.CRC8_Calc) for CRC8_Calc crc16.o(i.CRC16_Calc) refers to crc16.o(.constdata) for .constdata crc16.o(i.CRC16_Verify) refers to crc16.o(i.CRC16_Calc) for CRC16_Calc + freertos_cli.o(i.FreeRTOS_CLIGetOutputBuffer) refers to freertos_cli.o(.bss) for .bss + freertos_cli.o(i.FreeRTOS_CLIProcessCommand) refers to strlen.o(.text) for strlen + freertos_cli.o(i.FreeRTOS_CLIProcessCommand) refers to strncmp.o(.text) for strncmp + freertos_cli.o(i.FreeRTOS_CLIProcessCommand) refers to strncpy.o(.text) for strncpy + freertos_cli.o(i.FreeRTOS_CLIProcessCommand) refers to freertos_cli.o(.data) for .data + freertos_cli.o(i.FreeRTOS_CLIProcessCommand) refers to freertos_cli.o(.conststring) for .conststring + freertos_cli.o(i.FreeRTOS_CLIRegisterCommand) refers to heap_4.o(i.pvPortMalloc) for pvPortMalloc + freertos_cli.o(i.FreeRTOS_CLIRegisterCommand) refers to port.o(i.vPortEnterCritical) for vPortEnterCritical + freertos_cli.o(i.FreeRTOS_CLIRegisterCommand) refers to port.o(i.vPortExitCritical) for vPortExitCritical + freertos_cli.o(i.FreeRTOS_CLIRegisterCommand) refers to freertos_cli.o(.data) for .data + freertos_cli.o(i.prvHelpCommand) refers to strncpy.o(.text) for strncpy + freertos_cli.o(i.prvHelpCommand) refers to freertos_cli.o(.data) for .data + freertos_cli.o(.constdata) refers to freertos_cli.o(.conststring) for .conststring + freertos_cli.o(.constdata) refers to freertos_cli.o(i.prvHelpCommand) for prvHelpCommand + freertos_cli.o(.data) refers to freertos_cli.o(.constdata) for xHelpCommand + keystatuscheck.o(i.Key_press) refers to fadd.o(.text) for __aeabi_fsub + keystatuscheck.o(i.Key_press) refers to cfrcmple.o(.text) for __aeabi_cfrcmple + keystatuscheck.o(i.Key_press) refers to keystatuscheck.o(.data) for .data + ui.o(i.UI_DrawArc) refers to printfa.o(i.__0snprintf) for __2snprintf + ui.o(i.UI_DrawCharacter) refers to printfa.o(i.__0snprintf) for __2snprintf + ui.o(i.UI_DrawCycle) refers to printfa.o(i.__0snprintf) for __2snprintf + ui.o(i.UI_DrawFloating) refers to printfa.o(i.__0snprintf) for __2snprintf + ui.o(i.UI_DrawInteger) refers to printfa.o(i.__0snprintf) for __2snprintf + ui.o(i.UI_DrawLine) refers to printfa.o(i.__0snprintf) for __2snprintf + ui.o(i.UI_DrawOval) refers to printfa.o(i.__0snprintf) for __2snprintf + ui.o(i.UI_DrawRectangle) refers to printfa.o(i.__0snprintf) for __2snprintf + mr16.o(i.MR16_CLI_Init) refers to freertos_cli.o(i.FreeRTOS_CLIRegisterCommand) for FreeRTOS_CLIRegisterCommand + mr16.o(i.MR16_CLI_Init) refers to mr16.o(.constdata) for .constdata + mr16.o(i.MR16_Init) refers to mr16.o(i.MR16_CLI_Init) for MR16_CLI_Init mr16.o(i.MR16_Init) refers to sx1281.o(i.SX1281_Init) for SX1281_Init mr16.o(i.MR16_Init) refers to sx1281.o(i.SX1281_SetRXSuccessive) for SX1281_SetRXSuccessive + mr16.o(i.MR16_Init) refers to lcd.o(i.LCD_Init) for LCD_Init + mr16.o(i.MR16_Init) refers to lcd.o(i.LCD_Clear) for LCD_Clear + mr16.o(i.MR16_Init) refers to lcd.o(i.LCD_DrawString) for LCD_DrawString + mr16.o(i.MR16_Init) refers to lcd.o(i.LCD_DrawBitmap) for LCD_DrawBitmap + mr16.o(i.MR16_Init) refers to mr16.o(.data) for .data mr16.o(i.MR16_Init) refers to mr16.o(.bss) for .bss + mr16.o(i.MR16_Init) refers to lcd.o(.constdata) for logo_M + mr16.o(i.MR16_Main) refers to memcpya.o(.text) for __aeabi_memcpy + mr16.o(i.MR16_Main) refers to freertos_cli.o(i.FreeRTOS_CLIProcessCommand) for FreeRTOS_CLIProcessCommand + mr16.o(i.MR16_Main) refers to printfa.o(i.__0printf) for __2printf + mr16.o(i.MR16_Main) refers to sx1281.o(i.SX1281_Running) for SX1281_Running + mr16.o(i.MR16_Main) refers to sx1281.o(i.SX1281_SetTX) for SX1281_SetTX + mr16.o(i.MR16_Main) refers to mr16.o(.data) for .data + mr16.o(i.MR16_Main) refers to usart.o(.data) for uart2_datalength + mr16.o(i.MR16_Main) refers to mr16.o(.bss) for .bss + mr16.o(i.MR16_Main) refers to usart.o(.bss) for uart2_data + mr16.o(i.MR16_NotifyUARTIdle) refers to mr16.o(.data) for .data mr16.o(i.MR16_UI_PowerON) refers to lcd.o(i.LCD_DrawBitmap) for LCD_DrawBitmap mr16.o(i.MR16_UI_PowerON) refers to lcd.o(.constdata) for logo_M mr16.o(i.SX1281_Callback) refers to printfa.o(i.__0printf) for __2printf + mr16.o(i.SX1281_Callback) refers to sx1281.o(i.SX1281_SetRXSuccessive) for SX1281_SetRXSuccessive mr16.o(i.SX1281_Callback) refers to sx1281.o(i.SX1281_SetTX) for SX1281_SetTX mr16.o(i.SX1281_Callback) refers to sx1281_driver_hal.o(.constdata) for Radio - mr16.o(i.SX1281_Callback) refers to mr16.o(.constdata) for .constdata + mr16.o(i.SX1281_Callback) refers to radio.o(.bss) for mr16 mr16.o(i.SX1281_Callback) refers to mr16.o(.data) for .data - mr16.o(i.SX1281_Callback) refers to sx1281.o(.data) for radioRXSize - mr16.o(i.SX1281_Callback) refers to sx1281.o(.bss) for radioRXBuffer + mr16.o(i.SX1281_Callback) refers to mr16.o(.bss) for .bss + mr16.o(i.SX1281_Callback) refers to mr16.o(.constdata) for .constdata + mr16.o(i.mr16CommandHandler) refers to _scanf_int.o(.text) for _scanf_int + mr16.o(i.mr16CommandHandler) refers to freertos_cli.o(i.FreeRTOS_CLIGetParameter) for FreeRTOS_CLIGetParameter + mr16.o(i.mr16CommandHandler) refers to memseta.o(.text) for __aeabi_memclr4 + mr16.o(i.mr16CommandHandler) refers to strncpy.o(.text) for strncpy + mr16.o(i.mr16CommandHandler) refers to strcasecmp.o(.text) for strcasecmp + mr16.o(i.mr16CommandHandler) refers to printfa.o(i.__0snprintf) for __2snprintf + mr16.o(i.mr16CommandHandler) refers to sx1281.o(i.SX1281_SetTX) for SX1281_SetTX + mr16.o(i.mr16CommandHandler) refers to __0sscanf.o(.text) for __0sscanf + mr16.o(i.mr16CommandHandler) refers to radio.o(.bss) for mr16 + mr16.o(i.mr16CommandHandler) refers to mr16.o(.bss) for .bss + mr16.o(i.radioCommandHandler) refers to freertos_cli.o(i.FreeRTOS_CLIGetParameter) for FreeRTOS_CLIGetParameter + mr16.o(i.radioCommandHandler) refers to memseta.o(.text) for __aeabi_memclr4 + mr16.o(i.radioCommandHandler) refers to strncpy.o(.text) for strncpy + mr16.o(i.radioCommandHandler) refers to strcmp.o(.text) for strcmp + mr16.o(i.radioCommandHandler) refers to printfa.o(i.__0snprintf) for __2snprintf + mr16.o(.constdata) refers to mr16.o(.conststring) for .conststring + mr16.o(.constdata) refers to mr16.o(i.mr16CommandHandler) for mr16CommandHandler + mr16.o(.constdata) refers to mr16.o(i.radioCommandHandler) for radioCommandHandler + init.o(i.Task_Init) refers to cmsis_os2.o(i.osKernelLock) for osKernelLock + init.o(i.Task_Init) refers to cmsis_os2.o(i.osThreadNew) for osThreadNew + init.o(i.Task_Init) refers to cmsis_os2.o(i.osMessageQueueNew) for osMessageQueueNew + init.o(i.Task_Init) refers to cmsis_os2.o(i.osKernelUnlock) for osKernelUnlock + init.o(i.Task_Init) refers to cmsis_os2.o(i.osThreadGetId) for osThreadGetId + init.o(i.Task_Init) refers to cmsis_os2.o(i.osThreadTerminate) for osThreadTerminate + init.o(i.Task_Init) refers to user_task.o(.constdata) for attr_radio + init.o(i.Task_Init) refers to radio.o(i.Task_radio) for Task_radio + init.o(i.Task_Init) refers to user_task.o(.bss) for task_runtime + user_task.o(.constdata) refers to user_task.o(.conststring) for .conststring + user_task.o(.constdata) refers to user_task.o(.conststring) for .conststring + radio.o(i.Task_radio) refers to cmsis_os2.o(i.osKernelGetTickFreq) for osKernelGetTickFreq + radio.o(i.Task_radio) refers to dfltui.o(.text) for __aeabi_ui2d + radio.o(i.Task_radio) refers to ddiv.o(.text) for __aeabi_ddiv + radio.o(i.Task_radio) refers to dfixui.o(.text) for __aeabi_d2uiz + radio.o(i.Task_radio) refers to cmsis_os2.o(i.osDelay) for osDelay + radio.o(i.Task_radio) refers to cmsis_os2.o(i.osKernelGetTickCount) for osKernelGetTickCount + radio.o(i.Task_radio) refers to mr16.o(i.MR16_Init) for MR16_Init + radio.o(i.Task_radio) refers to memcpya.o(.text) for __aeabi_memcpy4 + radio.o(i.Task_radio) refers to mr16.o(i.MR16_Main) for MR16_Main + radio.o(i.Task_radio) refers to cmsis_os2.o(i.osDelayUntil) for osDelayUntil + radio.o(i.Task_radio) refers to usart.o(.bss) for huart2 + radio.o(i.Task_radio) refers to radio.o(.data) for .data + radio.o(i.Task_radio) refers to radio.o(.bss) for .bss entry.o(.ARM.Collect$$$$00000000) refers (Special) to entry10a.o(.ARM.Collect$$$$0000000F) for __rt_final_cpp entry.o(.ARM.Collect$$$$00000000) refers (Special) to entry11a.o(.ARM.Collect$$$$00000011) for __rt_final_exit entry.o(.ARM.Collect$$$$00000000) refers (Special) to entry12b.o(.ARM.Collect$$$$0000000E) for __rt_lib_shutdown_fini @@ -972,6 +1702,7 @@ Section Cross References entry.o(.ARM.Collect$$$$00000000) refers (Special) to entry9a.o(.ARM.Collect$$$$0000000B) for _main_init entry.o(.ARM.Collect$$$$00000000) refers (Special) to entry5.o(.ARM.Collect$$$$00000004) for _main_scatterload entry.o(.ARM.Collect$$$$00000000) refers (Special) to entry2.o(.ARM.Collect$$$$00000001) for _main_stk + strcasecmp.o(.text) refers to tolower.o(.text) for tolower printfb.o(i.__0fprintf$bare) refers to printfb.o(i._printf_core) for _printf_core printfb.o(i.__0fprintf$bare) refers to sx1281_header.o(i.fputc) for fputc printfb.o(i.__0printf$bare) refers to printfb.o(i._printf_core) for _printf_core @@ -1304,13 +2035,15 @@ Section Cross References Removing Unused input sections from the image. - Removing startup_stm32f103xb.o(HEAP), (512 bytes). Removing main.o(.rev16_text), (4 bytes). Removing main.o(.revsh_text), (4 bytes). Removing main.o(.rrx_text), (6 bytes). Removing gpio.o(.rev16_text), (4 bytes). Removing gpio.o(.revsh_text), (4 bytes). Removing gpio.o(.rrx_text), (6 bytes). + Removing freertos.o(.rev16_text), (4 bytes). + Removing freertos.o(.revsh_text), (4 bytes). + Removing freertos.o(.rrx_text), (6 bytes). Removing dma.o(.rev16_text), (4 bytes). Removing dma.o(.revsh_text), (4 bytes). Removing dma.o(.rrx_text), (6 bytes). @@ -1326,6 +2059,7 @@ Removing Unused input sections from the image. Removing usart.o(.revsh_text), (4 bytes). Removing usart.o(.rrx_text), (6 bytes). Removing usart.o(i.HAL_UART_MspDeInit), (100 bytes). + Removing usart.o(i.MR16_NotifyUARTIdle), (2 bytes). Removing stm32f1xx_it.o(.rev16_text), (4 bytes). Removing stm32f1xx_it.o(.revsh_text), (4 bytes). Removing stm32f1xx_it.o(.rrx_text), (6 bytes). @@ -1338,49 +2072,6 @@ Removing Unused input sections from the image. Removing stm32f1xx_hal_gpio_ex.o(i.HAL_GPIOEx_ConfigEventout), (20 bytes). Removing stm32f1xx_hal_gpio_ex.o(i.HAL_GPIOEx_DisableEventout), (16 bytes). Removing stm32f1xx_hal_gpio_ex.o(i.HAL_GPIOEx_EnableEventout), (16 bytes). - Removing stm32f1xx_hal_spi.o(.rev16_text), (4 bytes). - Removing stm32f1xx_hal_spi.o(.revsh_text), (4 bytes). - Removing stm32f1xx_hal_spi.o(.rrx_text), (6 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Abort), (288 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_AbortCpltCallback), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Abort_IT), (288 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_DMAPause), (38 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_DMAResume), (38 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_DMAStop), (66 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_DeInit), (46 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_ErrorCallback), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_GetError), (4 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_GetState), (6 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_IRQHandler), (224 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_MspDeInit), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_MspInit), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Receive), (340 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Receive_DMA), (228 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Receive_IT), (168 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_RxCpltCallback), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_RxHalfCpltCallback), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_IT), (156 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_IT), (144 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TxCpltCallback), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TxHalfCpltCallback), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TxRxCpltCallback), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TxRxHalfCpltCallback), (2 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_2linesRxISR_16BIT), (48 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_2linesRxISR_8BIT), (48 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_2linesTxISR_16BIT), (48 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_2linesTxISR_8BIT), (48 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_AbortRx_ISR), (88 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_AbortTx_ISR), (28 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_CloseRxTx_ISR), (144 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_CloseRx_ISR), (76 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_CloseTx_ISR), (124 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_DMAAbortOnError), (16 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_DMARxAbortCallback), (98 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_DMATxAbortCallback), (112 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_RxISR_16BIT), (32 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_RxISR_8BIT), (32 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_TxISR_16BIT), (32 bytes). - Removing stm32f1xx_hal_spi.o(i.SPI_TxISR_8BIT), (32 bytes). Removing stm32f1xx_hal.o(.rev16_text), (4 bytes). Removing stm32f1xx_hal.o(.revsh_text), (4 bytes). Removing stm32f1xx_hal.o(.rrx_text), (6 bytes). @@ -1520,6 +2211,48 @@ Removing Unused input sections from the image. Removing stm32f1xx_hal_exti.o(i.HAL_EXTI_IRQHandler), (36 bytes). Removing stm32f1xx_hal_exti.o(i.HAL_EXTI_RegisterCallback), (14 bytes). Removing stm32f1xx_hal_exti.o(i.HAL_EXTI_SetConfigLine), (164 bytes). + Removing stm32f1xx_hal_spi.o(.rev16_text), (4 bytes). + Removing stm32f1xx_hal_spi.o(.revsh_text), (4 bytes). + Removing stm32f1xx_hal_spi.o(.rrx_text), (6 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Abort), (288 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_AbortCpltCallback), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Abort_IT), (288 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_DMAPause), (38 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_DMAResume), (38 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_DMAStop), (66 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_DeInit), (46 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_ErrorCallback), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_GetError), (4 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_IRQHandler), (224 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_MspDeInit), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_MspInit), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Receive), (340 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Receive_DMA), (228 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Receive_IT), (168 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_RxCpltCallback), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_RxHalfCpltCallback), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_IT), (156 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_IT), (144 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TxCpltCallback), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TxHalfCpltCallback), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TxRxCpltCallback), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.HAL_SPI_TxRxHalfCpltCallback), (2 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_2linesRxISR_16BIT), (48 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_2linesRxISR_8BIT), (48 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_2linesTxISR_16BIT), (48 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_2linesTxISR_8BIT), (48 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_AbortRx_ISR), (88 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_AbortTx_ISR), (28 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_CloseRxTx_ISR), (144 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_CloseRx_ISR), (76 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_CloseTx_ISR), (124 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_DMAAbortOnError), (16 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_DMARxAbortCallback), (98 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_DMATxAbortCallback), (112 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_RxISR_16BIT), (32 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_RxISR_8BIT), (32 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_TxISR_16BIT), (32 bytes). + Removing stm32f1xx_hal_spi.o(i.SPI_TxISR_8BIT), (32 bytes). Removing stm32f1xx_hal_tim.o(.rev16_text), (4 bytes). Removing stm32f1xx_hal_tim.o(.revsh_text), (4 bytes). Removing stm32f1xx_hal_tim.o(.rrx_text), (6 bytes). @@ -1719,6 +2452,190 @@ Removing Unused input sections from the image. Removing system_stm32f1xx.o(.revsh_text), (4 bytes). Removing system_stm32f1xx.o(.rrx_text), (6 bytes). Removing system_stm32f1xx.o(i.SystemCoreClockUpdate), (116 bytes). + Removing event_groups.o(i.prvTestWaitCondition), (20 bytes). + Removing event_groups.o(i.uxEventGroupGetNumber), (8 bytes). + Removing event_groups.o(i.vEventGroupClearBitsCallback), (4 bytes). + Removing event_groups.o(i.vEventGroupDelete), (74 bytes). + Removing event_groups.o(i.vEventGroupSetBitsCallback), (4 bytes). + Removing event_groups.o(i.vEventGroupSetNumber), (4 bytes). + Removing event_groups.o(i.xEventGroupClearBits), (64 bytes). + Removing event_groups.o(i.xEventGroupClearBitsFromISR), (16 bytes). + Removing event_groups.o(i.xEventGroupCreate), (28 bytes). + Removing event_groups.o(i.xEventGroupCreateStatic), (44 bytes). + Removing event_groups.o(i.xEventGroupGetBitsFromISR), (26 bytes). + Removing event_groups.o(i.xEventGroupSetBits), (140 bytes). + Removing event_groups.o(i.xEventGroupSetBitsFromISR), (16 bytes). + Removing event_groups.o(i.xEventGroupSync), (204 bytes). + Removing event_groups.o(i.xEventGroupWaitBits), (264 bytes). + Removing queue.o(i.pcQueueGetName), (40 bytes). + Removing queue.o(i.prvInitialiseMutex), (22 bytes). + Removing queue.o(i.ucQueueGetQueueType), (6 bytes). + Removing queue.o(i.uxQueueGetQueueNumber), (4 bytes). + Removing queue.o(i.uxQueueMessagesWaiting), (36 bytes). + Removing queue.o(i.uxQueueMessagesWaitingFromISR), (22 bytes). + Removing queue.o(i.uxQueueSpacesAvailable), (40 bytes). + Removing queue.o(i.vQueueDelete), (46 bytes). + Removing queue.o(i.vQueueSetQueueNumber), (4 bytes). + Removing queue.o(i.vQueueUnregisterQueue), (40 bytes). + Removing queue.o(i.xQueueCreateCountingSemaphore), (58 bytes). + Removing queue.o(i.xQueueCreateCountingSemaphoreStatic), (64 bytes). + Removing queue.o(i.xQueueCreateMutex), (22 bytes). + Removing queue.o(i.xQueueCreateMutexStatic), (26 bytes). + Removing queue.o(i.xQueueGetMutexHolder), (28 bytes). + Removing queue.o(i.xQueueGetMutexHolderFromISR), (30 bytes). + Removing queue.o(i.xQueueGiveFromISR), (156 bytes). + Removing queue.o(i.xQueueGiveMutexRecursive), (62 bytes). + Removing queue.o(i.xQueueIsQueueEmptyFromISR), (30 bytes). + Removing queue.o(i.xQueueIsQueueFullFromISR), (34 bytes). + Removing queue.o(i.xQueuePeek), (308 bytes). + Removing queue.o(i.xQueuePeekFromISR), (116 bytes). + Removing queue.o(i.xQueueReceiveFromISR), (154 bytes). + Removing queue.o(i.xQueueSemaphoreTake), (376 bytes). + Removing queue.o(i.xQueueTakeMutexRecursive), (64 bytes). + Removing stream_buffer.o(i.prvBytesInBuffer), (18 bytes). + Removing stream_buffer.o(i.prvInitialiseNewStreamBuffer), (66 bytes). + Removing stream_buffer.o(i.prvReadBytesFromBuffer), (140 bytes). + Removing stream_buffer.o(i.prvReadMessageFromBuffer), (58 bytes). + Removing stream_buffer.o(i.prvWriteBytesToBuffer), (130 bytes). + Removing stream_buffer.o(i.prvWriteMessageToBuffer), (60 bytes). + Removing stream_buffer.o(i.ucStreamBufferGetStreamBufferType), (8 bytes). + Removing stream_buffer.o(i.uxStreamBufferGetStreamBufferNumber), (4 bytes). + Removing stream_buffer.o(i.vStreamBufferDelete), (34 bytes). + Removing stream_buffer.o(i.vStreamBufferSetStreamBufferNumber), (4 bytes). + Removing stream_buffer.o(i.xStreamBufferBytesAvailable), (22 bytes). + Removing stream_buffer.o(i.xStreamBufferGenericCreate), (108 bytes). + Removing stream_buffer.o(i.xStreamBufferGenericCreateStatic), (122 bytes). + Removing stream_buffer.o(i.xStreamBufferIsEmpty), (34 bytes). + Removing stream_buffer.o(i.xStreamBufferIsFull), (48 bytes). + Removing stream_buffer.o(i.xStreamBufferNextMessageLengthBytes), (78 bytes). + Removing stream_buffer.o(i.xStreamBufferReceive), (212 bytes). + Removing stream_buffer.o(i.xStreamBufferReceiveCompletedFromISR), (70 bytes). + Removing stream_buffer.o(i.xStreamBufferReceiveFromISR), (144 bytes). + Removing stream_buffer.o(i.xStreamBufferReset), (70 bytes). + Removing stream_buffer.o(i.xStreamBufferSend), (258 bytes). + Removing stream_buffer.o(i.xStreamBufferSendCompletedFromISR), (70 bytes). + Removing stream_buffer.o(i.xStreamBufferSendFromISR), (142 bytes). + Removing stream_buffer.o(i.xStreamBufferSetTriggerLevel), (40 bytes). + Removing stream_buffer.o(i.xStreamBufferSpacesAvailable), (38 bytes). + Removing tasks.o(i.pcTaskGetName), (32 bytes). + Removing tasks.o(i.prvListTasksWithinSingleList), (88 bytes). + Removing tasks.o(i.prvTaskCheckFreeStackSpace), (20 bytes). + Removing tasks.o(i.prvTaskIsTaskSuspended), (52 bytes). + Removing tasks.o(i.pvTaskIncrementMutexHeldCount), (24 bytes). + Removing tasks.o(i.ulTaskNotifyTake), (104 bytes). + Removing tasks.o(i.ulTaskNotifyValueClear), (44 bytes). + Removing tasks.o(i.uxTaskGetNumberOfTasks), (12 bytes). + Removing tasks.o(i.uxTaskGetStackHighWaterMark), (16 bytes). + Removing tasks.o(i.uxTaskGetSystemState), (172 bytes). + Removing tasks.o(i.uxTaskGetTaskNumber), (8 bytes). + Removing tasks.o(i.uxTaskPriorityGet), (28 bytes). + Removing tasks.o(i.uxTaskPriorityGetFromISR), (44 bytes). + Removing tasks.o(i.uxTaskResetEventItemValue), (24 bytes). + Removing tasks.o(i.vTaskEndScheduler), (28 bytes). + Removing tasks.o(i.vTaskGetInfo), (116 bytes). + Removing tasks.o(i.vTaskNotifyGiveFromISR), (176 bytes). + Removing tasks.o(i.vTaskPlaceOnUnorderedEventList), (80 bytes). + Removing tasks.o(i.vTaskPriorityDisinheritAfterTimeout), (144 bytes). + Removing tasks.o(i.vTaskPrioritySet), (180 bytes). + Removing tasks.o(i.vTaskRemoveFromUnorderedEventList), (112 bytes). + Removing tasks.o(i.vTaskResume), (124 bytes). + Removing tasks.o(i.vTaskSetTaskNumber), (8 bytes). + Removing tasks.o(i.vTaskSetTimeOutState), (48 bytes). + Removing tasks.o(i.vTaskSuspend), (156 bytes). + Removing tasks.o(i.xTaskCatchUpTicks), (48 bytes). + Removing tasks.o(i.xTaskGenericNotify), (224 bytes). + Removing tasks.o(i.xTaskGenericNotifyFromISR), (260 bytes). + Removing tasks.o(i.xTaskNotifyStateClear), (52 bytes). + Removing tasks.o(i.xTaskNotifyWait), (140 bytes). + Removing tasks.o(i.xTaskPriorityInherit), (120 bytes). + Removing tasks.o(i.xTaskResumeFromISR), (136 bytes). + Removing timers.o(i.pcTimerGetName), (22 bytes). + Removing timers.o(i.prvInitialiseNewTimer), (78 bytes). + Removing timers.o(i.pvTimerGetTimerID), (36 bytes). + Removing timers.o(i.uxTimerGetReloadMode), (48 bytes). + Removing timers.o(i.uxTimerGetTimerNumber), (4 bytes). + Removing timers.o(i.vTimerSetReloadMode), (54 bytes). + Removing timers.o(i.vTimerSetTimerID), (38 bytes). + Removing timers.o(i.vTimerSetTimerNumber), (4 bytes). + Removing timers.o(i.xTimerCreate), (52 bytes). + Removing timers.o(i.xTimerCreateStatic), (46 bytes). + Removing timers.o(i.xTimerGetExpiryTime), (22 bytes). + Removing timers.o(i.xTimerGetPeriod), (22 bytes). + Removing timers.o(i.xTimerGetTimerDaemonTaskHandle), (32 bytes). + Removing timers.o(i.xTimerIsTimerActive), (48 bytes). + Removing timers.o(i.xTimerPendFunctionCall), (60 bytes). + Removing timers.o(i.xTimerPendFunctionCallFromISR), (40 bytes). + Removing cmsis_os2.o(.rev16_text), (4 bytes). + Removing cmsis_os2.o(.revsh_text), (4 bytes). + Removing cmsis_os2.o(.rrx_text), (6 bytes). + Removing cmsis_os2.o(i.AllocBlock), (18 bytes). + Removing cmsis_os2.o(i.CreateBlock), (26 bytes). + Removing cmsis_os2.o(i.OS_Tick_GetCount), (12 bytes). + Removing cmsis_os2.o(i.TimerCallback), (24 bytes). + Removing cmsis_os2.o(i.osEventFlagsClear), (62 bytes). + Removing cmsis_os2.o(i.osEventFlagsDelete), (32 bytes). + Removing cmsis_os2.o(i.osEventFlagsGet), (22 bytes). + Removing cmsis_os2.o(i.osEventFlagsNew), (44 bytes). + Removing cmsis_os2.o(i.osEventFlagsSet), (84 bytes). + Removing cmsis_os2.o(i.osEventFlagsWait), (98 bytes). + Removing cmsis_os2.o(i.osKernelGetInfo), (60 bytes). + Removing cmsis_os2.o(i.osKernelGetState), (32 bytes). + Removing cmsis_os2.o(i.osKernelGetSysTimerCount), (66 bytes). + Removing cmsis_os2.o(i.osKernelGetSysTimerFreq), (12 bytes). + Removing cmsis_os2.o(i.osKernelRestoreLock), (66 bytes). + Removing cmsis_os2.o(i.osMemoryPoolAlloc), (144 bytes). + Removing cmsis_os2.o(i.osMemoryPoolDelete), (96 bytes). + Removing cmsis_os2.o(i.osMemoryPoolFree), (184 bytes). + Removing cmsis_os2.o(i.osMemoryPoolGetBlockSize), (24 bytes). + Removing cmsis_os2.o(i.osMemoryPoolGetCapacity), (24 bytes). + Removing cmsis_os2.o(i.osMemoryPoolGetCount), (52 bytes). + Removing cmsis_os2.o(i.osMemoryPoolGetName), (18 bytes). + Removing cmsis_os2.o(i.osMemoryPoolGetSpace), (40 bytes). + Removing cmsis_os2.o(i.osMemoryPoolNew), (228 bytes). + Removing cmsis_os2.o(i.osMessageQueueDelete), (42 bytes). + Removing cmsis_os2.o(i.osMessageQueueGet), (100 bytes). + Removing cmsis_os2.o(i.osMessageQueueGetCapacity), (8 bytes). + Removing cmsis_os2.o(i.osMessageQueueGetCount), (20 bytes). + Removing cmsis_os2.o(i.osMessageQueueGetMsgSize), (8 bytes). + Removing cmsis_os2.o(i.osMessageQueueGetSpace), (44 bytes). + Removing cmsis_os2.o(i.osMessageQueuePut), (104 bytes). + Removing cmsis_os2.o(i.osMessageQueueReset), (34 bytes). + Removing cmsis_os2.o(i.osMutexAcquire), (82 bytes). + Removing cmsis_os2.o(i.osMutexDelete), (44 bytes). + Removing cmsis_os2.o(i.osMutexGetOwner), (20 bytes). + Removing cmsis_os2.o(i.osMutexNew), (104 bytes). + Removing cmsis_os2.o(i.osMutexRelease), (66 bytes). + Removing cmsis_os2.o(i.osSemaphoreAcquire), (92 bytes). + Removing cmsis_os2.o(i.osSemaphoreDelete), (42 bytes). + Removing cmsis_os2.o(i.osSemaphoreGetCount), (20 bytes). + Removing cmsis_os2.o(i.osSemaphoreNew), (152 bytes). + Removing cmsis_os2.o(i.osSemaphoreRelease), (88 bytes). + Removing cmsis_os2.o(i.osThreadEnumerate), (98 bytes). + Removing cmsis_os2.o(i.osThreadExit), (8 bytes). + Removing cmsis_os2.o(i.osThreadFlagsClear), (78 bytes). + Removing cmsis_os2.o(i.osThreadFlagsGet), (44 bytes). + Removing cmsis_os2.o(i.osThreadFlagsSet), (116 bytes). + Removing cmsis_os2.o(i.osThreadFlagsWait), (150 bytes). + Removing cmsis_os2.o(i.osThreadGetCount), (14 bytes). + Removing cmsis_os2.o(i.osThreadGetName), (16 bytes). + Removing cmsis_os2.o(i.osThreadGetPriority), (18 bytes). + Removing cmsis_os2.o(i.osThreadGetStackSpace), (22 bytes). + Removing cmsis_os2.o(i.osThreadGetState), (54 bytes). + Removing cmsis_os2.o(i.osThreadResume), (32 bytes). + Removing cmsis_os2.o(i.osThreadSetPriority), (40 bytes). + Removing cmsis_os2.o(i.osThreadSuspend), (32 bytes). + Removing cmsis_os2.o(i.osThreadYield), (36 bytes). + Removing cmsis_os2.o(i.osTimerDelete), (68 bytes). + Removing cmsis_os2.o(i.osTimerGetName), (16 bytes). + Removing cmsis_os2.o(i.osTimerIsRunning), (16 bytes). + Removing cmsis_os2.o(i.osTimerNew), (120 bytes). + Removing cmsis_os2.o(i.osTimerStart), (50 bytes). + Removing cmsis_os2.o(i.osTimerStop), (68 bytes). + Removing heap_4.o(i.vPortGetHeapStats), (108 bytes). + Removing heap_4.o(i.vPortInitialiseBlocks), (2 bytes). + Removing heap_4.o(i.xPortGetFreeHeapSize), (12 bytes). + Removing heap_4.o(i.xPortGetMinimumEverFreeHeapSize), (12 bytes). + Removing port.o(i.vPortEndScheduler), (32 bytes). Removing gpio_1.o(.rev16_text), (4 bytes). Removing gpio_1.o(.revsh_text), (4 bytes). Removing gpio_1.o(.rrx_text), (6 bytes). @@ -1728,11 +2645,10 @@ Removing Unused input sections from the image. Removing gpio_1.o(i.BSP_GPIO_RegisterCallback), (68 bytes). Removing gpio_1.o(i.BSP_GPIO_TogglePin), (36 bytes). Removing gpio_1.o(i.BSP_GPIO_WritePin), (40 bytes). - Removing gpio_1.o(.constdata), (72 bytes). + Removing gpio_1.o(.constdata), (104 bytes). Removing spi_1.o(.rev16_text), (4 bytes). Removing spi_1.o(.revsh_text), (4 bytes). Removing spi_1.o(.rrx_text), (6 bytes). - Removing spi_1.o(i.BSP_SPI_GetState), (24 bytes). Removing spi_1.o(i.BSP_SPI_MemRead), (68 bytes). Removing spi_1.o(i.BSP_SPI_MemReadByte), (42 bytes). Removing spi_1.o(i.BSP_SPI_MemWrite), (68 bytes). @@ -1743,50 +2659,49 @@ Removing Unused input sections from the image. Removing uart.o(.revsh_text), (4 bytes). Removing uart.o(.rrx_text), (6 bytes). Removing uart.o(i.BSP_UART_IRQHandler), (72 bytes). - Removing uart.o(i.BSP_UART_Receive), (44 bytes). - Removing uart.o(i.BSP_UART_RegisterCallback), (36 bytes). - Removing uart.o(i.BSP_UART_Transmit), (44 bytes). + Removing uart.o(i.BSP_UART_Receive), (46 bytes). + Removing uart.o(i.BSP_UART_RegisterCallback), (44 bytes). + Removing uart.o(i.BSP_UART_Transmit), (46 bytes). Removing uart.o(i.HAL_UART_AbortCpltCallback), (40 bytes). Removing uart.o(i.HAL_UART_AbortReceiveCpltCallback), (40 bytes). Removing uart.o(i.HAL_UART_AbortTransmitCpltCallback), (40 bytes). Removing uart.o(i.HAL_UART_TxHalfCpltCallback), (36 bytes). + Removing time.o(.rev16_text), (4 bytes). + Removing time.o(.revsh_text), (4 bytes). + Removing time.o(.rrx_text), (6 bytes). + Removing time.o(i.BSP_TIME_Delay_ms), (88 bytes). + Removing time.o(i.BSP_TIME_Delay_us), (38 bytes). + Removing time.o(i.BSP_TIME_Get_ms), (4 bytes). + Removing time.o(i.BSP_TIME_Get_us), (98 bytes). + Removing flash.o(.rev16_text), (4 bytes). + Removing flash.o(.revsh_text), (4 bytes). + Removing flash.o(.rrx_text), (6 bytes). + Removing flash.o(i.BSP_Flash_EraseSector), (58 bytes). + Removing flash.o(i.BSP_Flash_ReadBytes), (10 bytes). + Removing flash.o(i.BSP_Flash_WriteBytes), (54 bytes). Removing lcd.o(.rev16_text), (4 bytes). Removing lcd.o(.revsh_text), (4 bytes). Removing lcd.o(.rrx_text), (6 bytes). - Removing lcd.o(i.LCD_Clear), (82 bytes). - Removing lcd.o(i.LCD_DrawBitmap), (128 bytes). - Removing lcd.o(i.LCD_DrawChar), (356 bytes). Removing lcd.o(i.LCD_DrawFloat), (72 bytes). Removing lcd.o(i.LCD_DrawHollowCircle), (190 bytes). Removing lcd.o(i.LCD_DrawInteger), (56 bytes). Removing lcd.o(i.LCD_DrawLine), (160 bytes). - Removing lcd.o(i.LCD_DrawPoint), (92 bytes). Removing lcd.o(i.LCD_DrawRectangle), (70 bytes). Removing lcd.o(i.LCD_DrawSolidCircle), (142 bytes). Removing lcd.o(i.LCD_DrawSolidRectangle), (74 bytes). - Removing lcd.o(i.LCD_DrawString), (110 bytes). - Removing lcd.o(i.LCD_Init), (352 bytes). - Removing lcd.o(i.LCD_SetAddressWindow), (100 bytes). - Removing lcd.o(i.LCD_WriteCommand), (64 bytes). - Removing lcd.o(i.LCD_WriteData), (64 bytes). - Removing lcd.o(i.LCD_WriteDataBuffer), (80 bytes). - Removing lcd.o(i.LCD_WriteDataBuffer_DMA), (80 bytes). - Removing lcd.o(.constdata), (12160 bytes). - Removing lcd.o(.constdata), (512 bytes). - Removing lcd.o(.data), (1 bytes). Removing sx1281.o(.rev16_text), (4 bytes). Removing sx1281.o(.revsh_text), (4 bytes). Removing sx1281.o(.rrx_text), (6 bytes). Removing sx1281.o(i.OnCadDone), (20 bytes). - Removing sx1281.o(i.SX1281_Callback), (296 bytes). + Removing sx1281.o(i.SX1281_Callback), (244 bytes). Removing sx1281.o(i.SX1281_SetBLEBaudrate), (76 bytes). - Removing sx1281.o(i.SX1281_SetFLRCBaudrate), (76 bytes). - Removing sx1281.o(i.SX1281_SetGFSKBaudrate), (76 bytes). + Removing sx1281.o(i.SX1281_SetFLRCBaudrate), (80 bytes). + Removing sx1281.o(i.SX1281_SetGFSKBaudrate), (84 bytes). Removing sx1281.o(i.SX1281_SetLORABaudrate), (76 bytes). - Removing sx1281.o(i.SX1281_SetMode), (128 bytes). - Removing sx1281.o(i.SX1281_SetPacketConfig), (28 bytes). + Removing sx1281.o(i.SX1281_SetMode), (132 bytes). + Removing sx1281.o(i.SX1281_SetPayloadLength), (68 bytes). Removing sx1281.o(i.SX1281_SetRFFrequency), (52 bytes). - Removing sx1281.o(i.SX1281_SetRXSingle), (44 bytes). + Removing sx1281.o(i.SX1281_SetRXSingle), (48 bytes). Removing sx1281.o(i.SX1281_SetSleep), (12 bytes). Removing sx1281.o(i.SetBLEAdvertisingPacket), (2 bytes). Removing sx1281.o(.data), (2 bytes). @@ -1823,10 +2738,31 @@ Removing Unused input sections from the image. Removing crc16.o(i.CRC16_Verify), (48 bytes). Removing crc16.o(.constdata), (512 bytes). Removing user_math.o(i.fAbs), (12 bytes). + Removing freertos_cli.o(i.FreeRTOS_CLIGetOutputBuffer), (8 bytes). + Removing freertos_cli.o(.bss), (512 bytes). + Removing keystatuscheck.o(i.Key_fall), (4 bytes). + Removing keystatuscheck.o(i.Key_press), (44 bytes). + Removing keystatuscheck.o(i.Key_rise), (6 bytes). + Removing keystatuscheck.o(.data), (4 bytes). + Removing ui.o(i.UI_DelLayer), (16 bytes). + Removing ui.o(i.UI_DrawArc), (140 bytes). + Removing ui.o(i.UI_DrawCharacter), (140 bytes). + Removing ui.o(i.UI_DrawCycle), (116 bytes). + Removing ui.o(i.UI_DrawFloating), (156 bytes). + Removing ui.o(i.UI_DrawInteger), (144 bytes). + Removing ui.o(i.UI_DrawLine), (116 bytes). + Removing ui.o(i.UI_DrawOval), (116 bytes). + Removing ui.o(i.UI_DrawRectangle), (116 bytes). Removing mr16.o(.rev16_text), (4 bytes). Removing mr16.o(.revsh_text), (4 bytes). Removing mr16.o(.rrx_text), (6 bytes). + Removing mr16.o(i.MR16_UI_Home), (2 bytes). Removing mr16.o(i.MR16_UI_PowerON), (32 bytes). + Removing mr16.o(i.MR16_UI_Setting), (2 bytes). + Removing mr16.o(.data), (4 bytes). + Removing radio.o(.rev16_text), (4 bytes). + Removing radio.o(.revsh_text), (4 bytes). + Removing radio.o(.rrx_text), (6 bytes). Removing fadd.o(.text), (176 bytes). Removing fmul.o(.text), (100 bytes). Removing fdiv.o(.text), (124 bytes). @@ -1845,7 +2781,7 @@ Removing Unused input sections from the image. Removing user_math.o(i.CircleReverse), (20 bytes). Removing user_math.o(i.CalculateRpm), (136 bytes). -540 unused section(s) (total 46741 bytes) removed from the image. +745 unused section(s) (total 46046 bytes) removed from the image. ============================================================================== @@ -1856,6 +2792,7 @@ Image Symbol Table Symbol Name Value Ov Type Size Object(Section) ../Core/Src/dma.c 0x00000000 Number 0 dma.o ABSOLUTE + ../Core/Src/freertos.c 0x00000000 Number 0 freertos.o ABSOLUTE ../Core/Src/gpio.c 0x00000000 Number 0 gpio.o ABSOLUTE ../Core/Src/main.c 0x00000000 Number 0 main.o ABSOLUTE ../Core/Src/spi.c 0x00000000 Number 0 spi.o ABSOLUTE @@ -1879,73 +2816,90 @@ Image Symbol Table ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c 0x00000000 Number 0 stm32f1xx_hal_tim.o ABSOLUTE ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c 0x00000000 Number 0 stm32f1xx_hal_tim_ex.o ABSOLUTE ../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c 0x00000000 Number 0 stm32f1xx_hal_uart.o ABSOLUTE - ../clib/microlib/ctype/ctype.c 0x00000000 Number 0 isspace_c.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c 0x00000000 Number 0 cmsis_os2.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/croutine.c 0x00000000 Number 0 croutine.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c 0x00000000 Number 0 event_groups.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/list.c 0x00000000 Number 0 list.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c 0x00000000 Number 0 heap_4.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/port.c 0x00000000 Number 0 port.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/queue.c 0x00000000 Number 0 queue.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c 0x00000000 Number 0 stream_buffer.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/tasks.c 0x00000000 Number 0 tasks.o ABSOLUTE + ../Middlewares/Third_Party/FreeRTOS/Source/timers.c 0x00000000 Number 0 timers.o ABSOLUTE ../clib/microlib/ctype/ctype.c 0x00000000 Number 0 ctype_c.o ABSOLUTE + ../clib/microlib/ctype/ctype.c 0x00000000 Number 0 isspace_c.o ABSOLUTE + ../clib/microlib/ctype/tolower.c 0x00000000 Number 0 tolower.o ABSOLUTE ../clib/microlib/division.c 0x00000000 Number 0 uldiv.o ABSOLUTE ../clib/microlib/division.c 0x00000000 Number 0 uidiv.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry9a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry8b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry2.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry8a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry7b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry5.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry12b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry12a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry11b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry11a.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry10b.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry.o ABSOLUTE - ../clib/microlib/init/entry.s 0x00000000 Number 0 entry10a.o ABSOLUTE ../clib/microlib/init/entry.s 0x00000000 Number 0 entry9b.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry9a.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry11a.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry12a.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry2.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry5.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry7a.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry10a.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry10b.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry12b.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry11b.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry8a.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry8b.o ABSOLUTE + ../clib/microlib/init/entry.s 0x00000000 Number 0 entry7b.o ABSOLUTE ../clib/microlib/longlong.c 0x00000000 Number 0 llushr.o ABSOLUTE ../clib/microlib/longlong.c 0x00000000 Number 0 llsshr.o ABSOLUTE ../clib/microlib/longlong.c 0x00000000 Number 0 llshl.o ABSOLUTE ../clib/microlib/malloc/malloc.c 0x00000000 Number 0 mallocr.o ABSOLUTE ../clib/microlib/malloc/malloc.c 0x00000000 Number 0 malloca.o ABSOLUTE - ../clib/microlib/malloc/malloc.c 0x00000000 Number 0 malloc.o ABSOLUTE ../clib/microlib/malloc/malloc.c 0x00000000 Number 0 mallocra.o ABSOLUTE + ../clib/microlib/malloc/malloc.c 0x00000000 Number 0 malloc.o ABSOLUTE ../clib/microlib/malloc/mvars.c 0x00000000 Number 0 mvars.o ABSOLUTE + ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf4.o ABSOLUTE ../clib/microlib/printf/printf.c 0x00000000 Number 0 printfb.o ABSOLUTE + ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf0.o ABSOLUTE ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf1.o ABSOLUTE ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf2.o ABSOLUTE - ../clib/microlib/printf/printf.c 0x00000000 Number 0 printfa.o ABSOLUTE - ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf7.o ABSOLUTE - ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf6.o ABSOLUTE - ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf5.o ABSOLUTE - ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf0.o ABSOLUTE - ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf4.o ABSOLUTE ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf3.o ABSOLUTE + ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf5.o ABSOLUTE + ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf6.o ABSOLUTE + ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf7.o ABSOLUTE ../clib/microlib/printf/printf.c 0x00000000 Number 0 printf8.o ABSOLUTE + ../clib/microlib/printf/printf.c 0x00000000 Number 0 printfa.o ABSOLUTE ../clib/microlib/printf/stubs.s 0x00000000 Number 0 stubs.o ABSOLUTE ../clib/microlib/stdio/streams.c 0x00000000 Number 0 stdout.o ABSOLUTE - ../clib/microlib/string/memcpy.c 0x00000000 Number 0 memcpyb.o ABSOLUTE ../clib/microlib/string/memcpy.c 0x00000000 Number 0 memcpya.o ABSOLUTE + ../clib/microlib/string/memcpy.c 0x00000000 Number 0 memcpyb.o ABSOLUTE + ../clib/microlib/string/memset.c 0x00000000 Number 0 memset.o ABSOLUTE ../clib/microlib/string/memset.c 0x00000000 Number 0 memseta.o ABSOLUTE + ../clib/microlib/string/strcasecmp.c 0x00000000 Number 0 strcasecmp.o ABSOLUTE + ../clib/microlib/string/strcmp.c 0x00000000 Number 0 strcmp.o ABSOLUTE ../clib/microlib/string/strcpy.c 0x00000000 Number 0 strcpy.o ABSOLUTE ../clib/microlib/string/strlen.c 0x00000000 Number 0 strlen.o ABSOLUTE + ../clib/microlib/string/strncmp.c 0x00000000 Number 0 strncmp.o ABSOLUTE + ../clib/microlib/string/strncpy.c 0x00000000 Number 0 strncpy.o ABSOLUTE ../clib/microlib/stubs.s 0x00000000 Number 0 iusefp.o ABSOLUTE - ../clib/scanf.c 0x00000000 Number 0 __0sscanf.o ABSOLUTE - ../clib/scanf.c 0x00000000 Number 0 _sgetc.o ABSOLUTE - ../clib/scanf.c 0x00000000 Number 0 _chval.o ABSOLUTE - ../clib/scanf.c 0x00000000 Number 0 _scanf.o ABSOLUTE ../clib/scanf.c 0x00000000 Number 0 scanf_char.o ABSOLUTE + ../clib/scanf.c 0x00000000 Number 0 _scanf.o ABSOLUTE + ../clib/scanf.c 0x00000000 Number 0 _chval.o ABSOLUTE + ../clib/scanf.c 0x00000000 Number 0 _sgetc.o ABSOLUTE + ../clib/scanf.c 0x00000000 Number 0 __0sscanf.o ABSOLUTE ../clib/scanf.c 0x00000000 Number 0 _scanf_int.o ABSOLUTE ../fplib/microlib/f2d.c 0x00000000 Number 0 f2d.o ABSOLUTE - ../fplib/microlib/fpadd.c 0x00000000 Number 0 dadd.o ABSOLUTE ../fplib/microlib/fpadd.c 0x00000000 Number 0 fadd.o ABSOLUTE + ../fplib/microlib/fpadd.c 0x00000000 Number 0 dadd.o ABSOLUTE ../fplib/microlib/fpdiv.c 0x00000000 Number 0 ddiv.o ABSOLUTE ../fplib/microlib/fpdiv.c 0x00000000 Number 0 fdiv.o ABSOLUTE - ../fplib/microlib/fpepilogue.c 0x00000000 Number 0 depilogue.o ABSOLUTE ../fplib/microlib/fpepilogue.c 0x00000000 Number 0 fepilogue.o ABSOLUTE + ../fplib/microlib/fpepilogue.c 0x00000000 Number 0 depilogue.o ABSOLUTE ../fplib/microlib/fpfix.c 0x00000000 Number 0 dfixui.o ABSOLUTE ../fplib/microlib/fpfix.c 0x00000000 Number 0 dfixul.o ABSOLUTE ../fplib/microlib/fpflt.c 0x00000000 Number 0 dfltui.o ABSOLUTE ../fplib/microlib/fpflt.c 0x00000000 Number 0 dflti.o ABSOLUTE - ../fplib/microlib/fpmul.c 0x00000000 Number 0 fmul.o ABSOLUTE ../fplib/microlib/fpmul.c 0x00000000 Number 0 dmul.o ABSOLUTE + ../fplib/microlib/fpmul.c 0x00000000 Number 0 fmul.o ABSOLUTE ../fplib/microlib/fpscalb.c 0x00000000 Number 0 fscalb.o ABSOLUTE ..\Core\Src\dma.c 0x00000000 Number 0 dma.o ABSOLUTE + ..\Core\Src\freertos.c 0x00000000 Number 0 freertos.o ABSOLUTE ..\Core\Src\gpio.c 0x00000000 Number 0 gpio.o ABSOLUTE ..\Core\Src\main.c 0x00000000 Number 0 main.o ABSOLUTE ..\Core\Src\spi.c 0x00000000 Number 0 spi.o ABSOLUTE @@ -1969,11 +2923,18 @@ Image Symbol Table ..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim.c 0x00000000 Number 0 stm32f1xx_hal_tim.o ABSOLUTE ..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_tim_ex.c 0x00000000 Number 0 stm32f1xx_hal_tim_ex.o ABSOLUTE ..\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal_uart.c 0x00000000 Number 0 stm32f1xx_hal_uart.o ABSOLUTE + ..\Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS_V2\cmsis_os2.c 0x00000000 Number 0 cmsis_os2.o ABSOLUTE + ..\Middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM3\port.c 0x00000000 Number 0 port.o ABSOLUTE + ..\User\bsp\flash.c 0x00000000 Number 0 flash.o ABSOLUTE ..\User\bsp\gpio.c 0x00000000 Number 0 gpio_1.o ABSOLUTE ..\User\bsp\spi.c 0x00000000 Number 0 spi_1.o ABSOLUTE + ..\User\bsp\time.c 0x00000000 Number 0 time.o ABSOLUTE ..\User\bsp\uart.c 0x00000000 Number 0 uart.o ABSOLUTE ..\User\component\crc16.c 0x00000000 Number 0 crc16.o ABSOLUTE ..\User\component\crc8.c 0x00000000 Number 0 crc8.o ABSOLUTE + ..\User\component\freertos_cli.c 0x00000000 Number 0 freertos_cli.o ABSOLUTE + ..\User\component\keyStatusCheck.c 0x00000000 Number 0 keystatuscheck.o ABSOLUTE + ..\User\component\ui.c 0x00000000 Number 0 ui.o ABSOLUTE ..\User\component\user_math.c 0x00000000 Number 0 user_math.o ABSOLUTE ..\User\device\lcd_driver\lcd.c 0x00000000 Number 0 lcd.o ABSOLUTE ..\User\device\sx1281_driver\sx1281.c 0x00000000 Number 0 sx1281.o ABSOLUTE @@ -1984,8 +2945,13 @@ Image Symbol Table ..\User\device\sx1281_driver\sx1281_driver_uart.c 0x00000000 Number 0 sx1281_driver_uart.o ABSOLUTE ..\User\device\sx1281_driver\sx1281_header.c 0x00000000 Number 0 sx1281_header.o ABSOLUTE ..\User\module\mr16.c 0x00000000 Number 0 mr16.o ABSOLUTE + ..\User\task\init.c 0x00000000 Number 0 init.o ABSOLUTE + ..\User\task\radio.c 0x00000000 Number 0 radio.o ABSOLUTE + ..\User\task\user_task.c 0x00000000 Number 0 user_task.o ABSOLUTE + ..\\User\\bsp\\flash.c 0x00000000 Number 0 flash.o ABSOLUTE ..\\User\\bsp\\gpio.c 0x00000000 Number 0 gpio_1.o ABSOLUTE ..\\User\\bsp\\spi.c 0x00000000 Number 0 spi_1.o ABSOLUTE + ..\\User\\bsp\\time.c 0x00000000 Number 0 time.o ABSOLUTE ..\\User\\bsp\\uart.c 0x00000000 Number 0 uart.o ABSOLUTE ..\\User\\device\\lcd_driver\\lcd.c 0x00000000 Number 0 lcd.o ABSOLUTE ..\\User\\device\\sx1281_driver\\sx1281.c 0x00000000 Number 0 sx1281.o ABSOLUTE @@ -1996,6 +2962,7 @@ Image Symbol Table ..\\User\\device\\sx1281_driver\\sx1281_driver_uart.c 0x00000000 Number 0 sx1281_driver_uart.o ABSOLUTE ..\\User\\device\\sx1281_driver\\sx1281_header.c 0x00000000 Number 0 sx1281_header.o ABSOLUTE ..\\User\\module\\mr16.c 0x00000000 Number 0 mr16.o ABSOLUTE + ..\\User\\task\\radio.c 0x00000000 Number 0 radio.o ABSOLUTE cdrcmple.s 0x00000000 Number 0 cdrcmple.o ABSOLUTE cfcmple.s 0x00000000 Number 0 cfcmple.o ABSOLUTE cfrcmple.s 0x00000000 Number 0 cfrcmple.o ABSOLUTE @@ -2015,325 +2982,565 @@ Image Symbol Table .ARM.Collect$$$$00000011 0x08000100 Section 0 entry11a.o(.ARM.Collect$$$$00000011) .ARM.Collect$$$$00002712 0x08000100 Section 4 entry2.o(.ARM.Collect$$$$00002712) __lit__00000000 0x08000100 Data 4 entry2.o(.ARM.Collect$$$$00002712) - .text 0x08000104 Section 36 startup_stm32f103xb.o(.text) - .text 0x08000128 Section 0 llushr.o(.text) - .text 0x08000148 Section 0 memcpya.o(.text) - .text 0x0800016c Section 0 memseta.o(.text) - .text 0x08000190 Section 0 strcpy.o(.text) - .text 0x080001a2 Section 0 dmul.o(.text) - .text 0x08000286 Section 0 ddiv.o(.text) - .text 0x08000364 Section 0 dflti.o(.text) - .text 0x08000386 Section 0 dfltui.o(.text) - .text 0x080003a0 Section 0 dfixui.o(.text) - .text 0x080003d2 Section 0 uidiv.o(.text) - .text 0x080003fe Section 0 uldiv.o(.text) - .text 0x08000460 Section 0 iusefp.o(.text) - .text 0x08000460 Section 0 depilogue.o(.text) - .text 0x0800051a Section 0 dadd.o(.text) - .text 0x08000668 Section 0 dfixul.o(.text) - .text 0x08000698 Section 48 cdrcmple.o(.text) - .text 0x080006c8 Section 36 init.o(.text) - .text 0x080006ec Section 0 llshl.o(.text) - .text 0x0800070a Section 0 llsshr.o(.text) - i.BSP_SPI_GetHandle 0x08000730 Section 0 spi_1.o(i.BSP_SPI_GetHandle) - i.BSP_SPI_RegisterCallback 0x0800074c Section 0 spi_1.o(i.BSP_SPI_RegisterCallback) - i.BSP_SPI_Transmit 0x08000768 Section 0 spi_1.o(i.BSP_SPI_Transmit) - i.BSP_SPI_TransmitReceive 0x08000792 Section 0 spi_1.o(i.BSP_SPI_TransmitReceive) - i.BSP_UART_GetHandle 0x080007c0 Section 0 uart.o(i.BSP_UART_GetHandle) - i.BusFault_Handler 0x080007d0 Section 0 stm32f1xx_it.o(i.BusFault_Handler) - i.DMA1_Channel2_IRQHandler 0x080007d4 Section 0 stm32f1xx_it.o(i.DMA1_Channel2_IRQHandler) - i.DMA1_Channel3_IRQHandler 0x080007e0 Section 0 stm32f1xx_it.o(i.DMA1_Channel3_IRQHandler) - i.DMA1_Channel5_IRQHandler 0x080007ec Section 0 stm32f1xx_it.o(i.DMA1_Channel5_IRQHandler) - i.DMA1_Channel6_IRQHandler 0x080007f8 Section 0 stm32f1xx_it.o(i.DMA1_Channel6_IRQHandler) - i.DMA1_Channel7_IRQHandler 0x08000804 Section 0 stm32f1xx_it.o(i.DMA1_Channel7_IRQHandler) - i.DMA_SetConfig 0x08000810 Section 0 stm32f1xx_hal_dma.o(i.DMA_SetConfig) - DMA_SetConfig 0x08000811 Thumb Code 42 stm32f1xx_hal_dma.o(i.DMA_SetConfig) - i.DebugMon_Handler 0x0800083a Section 0 stm32f1xx_it.o(i.DebugMon_Handler) - i.EXTI15_10_IRQHandler 0x0800083c Section 0 stm32f1xx_it.o(i.EXTI15_10_IRQHandler) - i.EXTI9_5_IRQHandler 0x08000844 Section 0 stm32f1xx_it.o(i.EXTI9_5_IRQHandler) - i.Error_Handler 0x0800085c Section 0 main.o(i.Error_Handler) - i.GpioGetBitPos 0x08000860 Section 0 sx1281_driver_gpio.o(i.GpioGetBitPos) - i.GpioInit 0x08000890 Section 0 sx1281_driver_gpio.o(i.GpioInit) - i.GpioRead 0x08000892 Section 0 sx1281_driver_gpio.o(i.GpioRead) - i.GpioSetIrq 0x08000898 Section 0 sx1281_driver_gpio.o(i.GpioSetIrq) - i.GpioWrite 0x080008d0 Section 0 sx1281_driver_gpio.o(i.GpioWrite) - i.HAL_DMA_Abort 0x080008d6 Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_Abort) - i.HAL_DMA_Abort_IT 0x0800091c Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_Abort_IT) - i.HAL_DMA_IRQHandler 0x080009b4 Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_IRQHandler) - i.HAL_DMA_Init 0x08000b08 Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_Init) - i.HAL_DMA_Start_IT 0x08000b64 Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_Start_IT) - i.HAL_Delay 0x08000bd4 Section 0 stm32f1xx_hal.o(i.HAL_Delay) - i.HAL_GPIO_EXTI_Callback 0x08000bf8 Section 0 gpio_1.o(i.HAL_GPIO_EXTI_Callback) - i.HAL_GPIO_EXTI_IRQHandler 0x08000c24 Section 0 stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler) - i.HAL_GPIO_Init 0x08000c3c Section 0 stm32f1xx_hal_gpio.o(i.HAL_GPIO_Init) - i.HAL_GPIO_ReadPin 0x08000e1c Section 0 stm32f1xx_hal_gpio.o(i.HAL_GPIO_ReadPin) - i.HAL_GPIO_WritePin 0x08000e26 Section 0 stm32f1xx_hal_gpio.o(i.HAL_GPIO_WritePin) - i.HAL_GetTick 0x08000e30 Section 0 stm32f1xx_hal.o(i.HAL_GetTick) - i.HAL_HalfDuplex_Init 0x08000e3c Section 0 stm32f1xx_hal_uart.o(i.HAL_HalfDuplex_Init) - i.HAL_IncTick 0x08000eac Section 0 stm32f1xx_hal.o(i.HAL_IncTick) - i.HAL_Init 0x08000ebc Section 0 stm32f1xx_hal.o(i.HAL_Init) - i.HAL_InitTick 0x08000ee0 Section 0 stm32f1xx_hal.o(i.HAL_InitTick) - i.HAL_MspInit 0x08000f20 Section 0 stm32f1xx_hal_msp.o(i.HAL_MspInit) - i.HAL_NVIC_EnableIRQ 0x08000f5c Section 0 stm32f1xx_hal_cortex.o(i.HAL_NVIC_EnableIRQ) - i.HAL_NVIC_SetPriority 0x08000f78 Section 0 stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) - i.HAL_NVIC_SetPriorityGrouping 0x08000fb8 Section 0 stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriorityGrouping) - i.HAL_RCC_ClockConfig 0x08000fdc Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) - i.HAL_RCC_GetPCLK1Freq 0x08001108 Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq) - i.HAL_RCC_GetPCLK2Freq 0x08001128 Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) - i.HAL_RCC_GetSysClockFreq 0x08001148 Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq) - i.HAL_RCC_OscConfig 0x0800119c Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig) - i.HAL_SPI_ErrorCallback 0x080014bc Section 0 spi_1.o(i.HAL_SPI_ErrorCallback) - i.HAL_SPI_Init 0x080014f4 Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_Init) - i.HAL_SPI_MspInit 0x080015a8 Section 0 spi.o(i.HAL_SPI_MspInit) - i.HAL_SPI_RxCpltCallback 0x080016e0 Section 0 spi_1.o(i.HAL_SPI_RxCpltCallback) - i.HAL_SPI_RxHalfCpltCallback 0x08001718 Section 0 spi_1.o(i.HAL_SPI_RxHalfCpltCallback) - i.HAL_SPI_Transmit 0x08001750 Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit) - i.HAL_SPI_TransmitReceive 0x080018b6 Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive) - i.HAL_SPI_TransmitReceive_DMA 0x08001aa8 Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) - i.HAL_SPI_Transmit_DMA 0x08001bb8 Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) - i.HAL_SPI_TxCpltCallback 0x08001c84 Section 0 spi_1.o(i.HAL_SPI_TxCpltCallback) - i.HAL_SPI_TxHalfCpltCallback 0x08001ca8 Section 0 spi_1.o(i.HAL_SPI_TxHalfCpltCallback) - i.HAL_SPI_TxRxCpltCallback 0x08001ce0 Section 0 spi_1.o(i.HAL_SPI_TxRxCpltCallback) - i.HAL_SPI_TxRxHalfCpltCallback 0x08001d18 Section 0 spi_1.o(i.HAL_SPI_TxRxHalfCpltCallback) - i.HAL_SYSTICK_Config 0x08001d50 Section 0 stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config) - i.HAL_TIMEx_ConfigBreakDeadTime 0x08001d78 Section 0 stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_ConfigBreakDeadTime) - i.HAL_TIMEx_MasterConfigSynchronization 0x08001dcc Section 0 stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_MasterConfigSynchronization) - i.HAL_TIM_Base_Init 0x08001e34 Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_Base_Init) - i.HAL_TIM_Base_MspInit 0x08001e90 Section 0 tim.o(i.HAL_TIM_Base_MspInit) - i.HAL_TIM_ConfigClockSource 0x08001eb8 Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_ConfigClockSource) - i.HAL_TIM_MspPostInit 0x08001f94 Section 0 tim.o(i.HAL_TIM_MspPostInit) - i.HAL_TIM_PWM_ConfigChannel 0x08001fe0 Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_ConfigChannel) - i.HAL_TIM_PWM_Init 0x080020ac Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_Init) - i.HAL_TIM_PWM_MspInit 0x08002106 Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_MspInit) - i.HAL_UARTEx_RxEventCallback 0x08002108 Section 0 stm32f1xx_hal_uart.o(i.HAL_UARTEx_RxEventCallback) - i.HAL_UART_DMAStop 0x0800210a Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_DMAStop) - i.HAL_UART_ErrorCallback 0x0800217c Section 0 uart.o(i.HAL_UART_ErrorCallback) - i.HAL_UART_IRQHandler 0x080021a4 Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler) - i.HAL_UART_Init 0x08002410 Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_Init) - i.HAL_UART_MspInit 0x08002474 Section 0 usart.o(i.HAL_UART_MspInit) - i.HAL_UART_Receive_DMA 0x0800258c Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_Receive_DMA) - i.HAL_UART_RxCpltCallback 0x080025a8 Section 0 uart.o(i.HAL_UART_RxCpltCallback) - i.HAL_UART_RxHalfCpltCallback 0x080025d0 Section 0 uart.o(i.HAL_UART_RxHalfCpltCallback) - i.HAL_UART_Transmit 0x080025f8 Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_Transmit) - i.HAL_UART_TxCpltCallback 0x08002698 Section 0 uart.o(i.HAL_UART_TxCpltCallback) - i.HardFault_Handler 0x080026c0 Section 0 stm32f1xx_it.o(i.HardFault_Handler) - i.MR16_Init 0x080026c4 Section 0 mr16.o(i.MR16_Init) - i.MSP_GetIRQn 0x080026dc Section 0 sx1281_driver_gpio.o(i.MSP_GetIRQn) - i.MX_DMA_Init 0x08002718 Section 0 dma.o(i.MX_DMA_Init) - i.MX_GPIO_Init 0x08002784 Section 0 gpio.o(i.MX_GPIO_Init) - i.MX_SPI1_Init 0x0800289c Section 0 spi.o(i.MX_SPI1_Init) - i.MX_SPI2_Init 0x080028e4 Section 0 spi.o(i.MX_SPI2_Init) - i.MX_TIM1_Init 0x0800292c Section 0 tim.o(i.MX_TIM1_Init) - i.MX_USART1_UART_Init 0x080029f0 Section 0 usart.o(i.MX_USART1_UART_Init) - i.MX_USART2_UART_Init 0x08002a28 Section 0 usart.o(i.MX_USART2_UART_Init) - i.MemManage_Handler 0x08002a60 Section 0 stm32f1xx_it.o(i.MemManage_Handler) - i.NMI_Handler 0x08002a62 Section 0 stm32f1xx_it.o(i.NMI_Handler) - i.OnRxDone 0x08002a64 Section 0 sx1281.o(i.OnRxDone) - i.OnRxError 0x08002a78 Section 0 sx1281.o(i.OnRxError) - i.OnRxTimeout 0x08002a8c Section 0 sx1281.o(i.OnRxTimeout) - i.OnTxDone 0x08002aa0 Section 0 sx1281.o(i.OnTxDone) - i.OnTxTimeout 0x08002ab4 Section 0 sx1281.o(i.OnTxTimeout) - i.PendSV_Handler 0x08002ac8 Section 0 stm32f1xx_it.o(i.PendSV_Handler) - i.SPI_DMAError 0x08002aca Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAError) - SPI_DMAError 0x08002acb Thumb Code 34 stm32f1xx_hal_spi.o(i.SPI_DMAError) - i.SPI_DMAHalfReceiveCplt 0x08002aec Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAHalfReceiveCplt) - SPI_DMAHalfReceiveCplt 0x08002aed Thumb Code 10 stm32f1xx_hal_spi.o(i.SPI_DMAHalfReceiveCplt) - i.SPI_DMAHalfTransmitCplt 0x08002af6 Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitCplt) - SPI_DMAHalfTransmitCplt 0x08002af7 Thumb Code 10 stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitCplt) - i.SPI_DMAHalfTransmitReceiveCplt 0x08002b00 Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitReceiveCplt) - SPI_DMAHalfTransmitReceiveCplt 0x08002b01 Thumb Code 10 stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitReceiveCplt) - i.SPI_DMAReceiveCplt 0x08002b0a Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAReceiveCplt) - SPI_DMAReceiveCplt 0x08002b0b Thumb Code 106 stm32f1xx_hal_spi.o(i.SPI_DMAReceiveCplt) - i.SPI_DMATransmitCplt 0x08002b74 Section 0 stm32f1xx_hal_spi.o(i.SPI_DMATransmitCplt) - SPI_DMATransmitCplt 0x08002b75 Thumb Code 100 stm32f1xx_hal_spi.o(i.SPI_DMATransmitCplt) - i.SPI_DMATransmitReceiveCplt 0x08002bd8 Section 0 stm32f1xx_hal_spi.o(i.SPI_DMATransmitReceiveCplt) - SPI_DMATransmitReceiveCplt 0x08002bd9 Thumb Code 90 stm32f1xx_hal_spi.o(i.SPI_DMATransmitReceiveCplt) - i.SPI_EndRxTransaction 0x08002c32 Section 0 stm32f1xx_hal_spi.o(i.SPI_EndRxTransaction) - SPI_EndRxTransaction 0x08002c33 Thumb Code 92 stm32f1xx_hal_spi.o(i.SPI_EndRxTransaction) - i.SPI_EndRxTxTransaction 0x08002c8e Section 0 stm32f1xx_hal_spi.o(i.SPI_EndRxTxTransaction) - SPI_EndRxTxTransaction 0x08002c8f Thumb Code 52 stm32f1xx_hal_spi.o(i.SPI_EndRxTxTransaction) - i.SPI_Get 0x08002cc4 Section 0 spi_1.o(i.SPI_Get) - SPI_Get 0x08002cc5 Thumb Code 26 spi_1.o(i.SPI_Get) - i.SPI_WaitFlagStateUntilTimeout 0x08002ce8 Section 0 stm32f1xx_hal_spi.o(i.SPI_WaitFlagStateUntilTimeout) - SPI_WaitFlagStateUntilTimeout 0x08002ce9 Thumb Code 180 stm32f1xx_hal_spi.o(i.SPI_WaitFlagStateUntilTimeout) - i.SVC_Handler 0x08002da0 Section 0 stm32f1xx_it.o(i.SVC_Handler) - i.SX1281Calibrate 0x08002da2 Section 0 sx1281_driver.o(i.SX1281Calibrate) - i.SX1281ClearIrqStatus 0x08002de0 Section 0 sx1281_driver.o(i.SX1281ClearIrqStatus) - i.SX1281GetFirmwareVersion 0x08002df8 Section 0 sx1281_driver.o(i.SX1281GetFirmwareVersion) - i.SX1281GetFrequencyError 0x08002e14 Section 0 sx1281_driver.o(i.SX1281GetFrequencyError) - i.SX1281GetIrqStatus 0x08002eac Section 0 sx1281_driver.o(i.SX1281GetIrqStatus) - i.SX1281GetLoRaBandwidth 0x08002ec0 Section 0 sx1281_driver.o(i.SX1281GetLoRaBandwidth) - i.SX1281GetOpMode 0x08002efc Section 0 sx1281_driver.o(i.SX1281GetOpMode) - i.SX1281GetPacketStatus 0x08002f08 Section 0 sx1281_driver.o(i.SX1281GetPacketStatus) - i.SX1281GetPacketType 0x0800311c Section 0 sx1281_driver.o(i.SX1281GetPacketType) - i.SX1281GetPayload 0x08003128 Section 0 sx1281_driver.o(i.SX1281GetPayload) - i.SX1281GetRssiInst 0x08003150 Section 0 sx1281_driver.o(i.SX1281GetRssiInst) - i.SX1281GetRxBufferStatus 0x08003174 Section 0 sx1281_driver.o(i.SX1281GetRxBufferStatus) - i.SX1281GetStatus 0x080031bc Section 0 sx1281_driver.o(i.SX1281GetStatus) - i.SX1281HalGetDioStatus 0x080031d4 Section 0 sx1281_driver_hal.o(i.SX1281HalGetDioStatus) - i.SX1281HalInit 0x080031f8 Section 0 sx1281_driver_hal.o(i.SX1281HalInit) - i.SX1281HalIoIrqInit 0x0800320c Section 0 sx1281_driver_hal.o(i.SX1281HalIoIrqInit) - i.SX1281HalReadBuffer 0x0800321c Section 0 sx1281_driver_hal.o(i.SX1281HalReadBuffer) - i.SX1281HalReadCommand 0x08003288 Section 0 sx1281_driver_hal.o(i.SX1281HalReadCommand) - i.SX1281HalReadRegister 0x080032f4 Section 0 sx1281_driver_hal.o(i.SX1281HalReadRegister) - i.SX1281HalReadRegisters 0x08003304 Section 0 sx1281_driver_hal.o(i.SX1281HalReadRegisters) - i.SX1281HalReset 0x08003374 Section 0 sx1281_driver_hal.o(i.SX1281HalReset) - i.SX1281HalWaitOnBusy 0x080033a8 Section 0 sx1281_driver_hal.o(i.SX1281HalWaitOnBusy) - i.SX1281HalWriteBuffer 0x080033c4 Section 0 sx1281_driver_hal.o(i.SX1281HalWriteBuffer) - i.SX1281HalWriteCommand 0x0800340c Section 0 sx1281_driver_hal.o(i.SX1281HalWriteCommand) - i.SX1281HalWriteRegister 0x08003464 Section 0 sx1281_driver_hal.o(i.SX1281HalWriteRegister) - i.SX1281HalWriteRegisters 0x08003470 Section 0 sx1281_driver_hal.o(i.SX1281HalWriteRegisters) - i.SX1281Init 0x080034c0 Section 0 sx1281_driver.o(i.SX1281Init) - i.SX1281OnDioIrq 0x080034d0 Section 0 sx1281_driver.o(i.SX1281OnDioIrq) - i.SX1281ProcessIrqs 0x080034e4 Section 0 sx1281_driver.o(i.SX1281ProcessIrqs) - i.SX1281SendPayload 0x08003630 Section 0 sx1281_driver.o(i.SX1281SendPayload) - i.SX1281SetAutoFS 0x08003642 Section 0 sx1281_driver.o(i.SX1281SetAutoFS) - i.SX1281SetAutoTx 0x08003650 Section 0 sx1281_driver.o(i.SX1281SetAutoTx) - i.SX1281SetBleAccessAddress 0x0800366a Section 0 sx1281_driver.o(i.SX1281SetBleAccessAddress) - i.SX1281SetBleAdvertizerAccessAddress 0x080036a0 Section 0 sx1281_driver.o(i.SX1281SetBleAdvertizerAccessAddress) - i.SX1281SetBufferBaseAddresses 0x080036ac Section 0 sx1281_driver.o(i.SX1281SetBufferBaseAddresses) - i.SX1281SetCad 0x080036c4 Section 0 sx1281_driver.o(i.SX1281SetCad) - i.SX1281SetCadParams 0x080036dc Section 0 sx1281_driver.o(i.SX1281SetCadParams) - i.SX1281SetCrcPolynomial 0x080036f4 Section 0 sx1281_driver.o(i.SX1281SetCrcPolynomial) - i.SX1281SetCrcSeed 0x0800371c Section 0 sx1281_driver.o(i.SX1281SetCrcSeed) - i.SX1281SetDioIrqParams 0x08003744 Section 0 sx1281_driver.o(i.SX1281SetDioIrqParams) - i.SX1281SetFs 0x0800377c Section 0 sx1281_driver.o(i.SX1281SetFs) - i.SX1281SetInterruptMode 0x08003794 Section 0 sx1281_driver.o(i.SX1281SetInterruptMode) - i.SX1281SetLongPreamble 0x080037a0 Section 0 sx1281_driver.o(i.SX1281SetLongPreamble) - i.SX1281SetModulationParams 0x080037b0 Section 0 sx1281_driver.o(i.SX1281SetModulationParams) - i.SX1281SetPacketParams 0x08003844 Section 0 sx1281_driver.o(i.SX1281SetPacketParams) - i.SX1281SetPacketType 0x0800391c Section 0 sx1281_driver.o(i.SX1281SetPacketType) - i.SX1281SetPayload 0x08003938 Section 0 sx1281_driver.o(i.SX1281SetPayload) - i.SX1281SetPollingMode 0x08003944 Section 0 sx1281_driver.o(i.SX1281SetPollingMode) - i.SX1281SetRegistersDefault 0x08003950 Section 0 sx1281_driver.o(i.SX1281SetRegistersDefault) - i.SX1281SetRegulatorMode 0x08003974 Section 0 sx1281_driver.o(i.SX1281SetRegulatorMode) - i.SX1281SetRfFrequency 0x08003984 Section 0 sx1281_driver.o(i.SX1281SetRfFrequency) - i.SX1281SetRx 0x080039b8 Section 0 sx1281_driver.o(i.SX1281SetRx) - i.SX1281SetRxDutyCycle 0x080039e8 Section 0 sx1281_driver.o(i.SX1281SetRxDutyCycle) - i.SX1281SetSaveContext 0x08003a18 Section 0 sx1281_driver.o(i.SX1281SetSaveContext) - i.SX1281SetSleep 0x08003a24 Section 0 sx1281_driver.o(i.SX1281SetSleep) - i.SX1281SetStandby 0x08003a5c Section 0 sx1281_driver.o(i.SX1281SetStandby) - i.SX1281SetSyncWord 0x08003a80 Section 0 sx1281_driver.o(i.SX1281SetSyncWord) - i.SX1281SetSyncWordErrorTolerance 0x08003aec Section 0 sx1281_driver.o(i.SX1281SetSyncWordErrorTolerance) - i.SX1281SetTx 0x08003b10 Section 0 sx1281_driver.o(i.SX1281SetTx) - i.SX1281SetTxContinuousPreamble 0x08003b40 Section 0 sx1281_driver.o(i.SX1281SetTxContinuousPreamble) - i.SX1281SetTxContinuousWave 0x08003b4a Section 0 sx1281_driver.o(i.SX1281SetTxContinuousWave) - i.SX1281SetTxParams 0x08003b54 Section 0 sx1281_driver.o(i.SX1281SetTxParams) - i.SX1281SetWhiteningSeed 0x08003b6c Section 0 sx1281_driver.o(i.SX1281SetWhiteningSeed) - i.SX1281_BSPInit 0x08003b8c Section 0 sx1281_header.o(i.SX1281_BSPInit) - i.SX1281_Callback 0x08003b9c Section 0 mr16.o(i.SX1281_Callback) - i.SX1281_GetState 0x08003ce4 Section 0 sx1281.o(i.SX1281_GetState) - i.SX1281_Init 0x08003cfc Section 0 sx1281.o(i.SX1281_Init) - i.SX1281_Running 0x08004040 Section 0 sx1281.o(i.SX1281_Running) - i.SX1281_SetRXSuccessive 0x08004058 Section 0 sx1281.o(i.SX1281_SetRXSuccessive) - i.SX1281_SetTX 0x08004084 Section 0 sx1281.o(i.SX1281_SetTX) - i.SpiIn 0x080040bc Section 0 sx1281_driver_spi.o(i.SpiIn) - i.SpiInOut 0x080040d4 Section 0 sx1281_driver_spi.o(i.SpiInOut) - i.SpiInit 0x080040f4 Section 0 sx1281_driver_spi.o(i.SpiInit) - i.SysTick_Handler 0x08004118 Section 0 stm32f1xx_it.o(i.SysTick_Handler) - i.SystemClock_Config 0x0800411c Section 0 main.o(i.SystemClock_Config) - i.SystemInit 0x0800417c Section 0 system_stm32f1xx.o(i.SystemInit) - i.TIM_Base_SetConfig 0x08004180 Section 0 stm32f1xx_hal_tim.o(i.TIM_Base_SetConfig) - i.TIM_ETR_SetConfig 0x080041f8 Section 0 stm32f1xx_hal_tim.o(i.TIM_ETR_SetConfig) - i.TIM_ITRx_SetConfig 0x0800420c Section 0 stm32f1xx_hal_tim.o(i.TIM_ITRx_SetConfig) - TIM_ITRx_SetConfig 0x0800420d Thumb Code 16 stm32f1xx_hal_tim.o(i.TIM_ITRx_SetConfig) - i.TIM_OC1_SetConfig 0x0800421c Section 0 stm32f1xx_hal_tim.o(i.TIM_OC1_SetConfig) - TIM_OC1_SetConfig 0x0800421d Thumb Code 74 stm32f1xx_hal_tim.o(i.TIM_OC1_SetConfig) - i.TIM_OC2_SetConfig 0x0800426c Section 0 stm32f1xx_hal_tim.o(i.TIM_OC2_SetConfig) - i.TIM_OC3_SetConfig 0x080042c4 Section 0 stm32f1xx_hal_tim.o(i.TIM_OC3_SetConfig) - TIM_OC3_SetConfig 0x080042c5 Thumb Code 82 stm32f1xx_hal_tim.o(i.TIM_OC3_SetConfig) - i.TIM_OC4_SetConfig 0x0800431c Section 0 stm32f1xx_hal_tim.o(i.TIM_OC4_SetConfig) - TIM_OC4_SetConfig 0x0800431d Thumb Code 64 stm32f1xx_hal_tim.o(i.TIM_OC4_SetConfig) - i.TIM_TI1_ConfigInputStage 0x08004360 Section 0 stm32f1xx_hal_tim.o(i.TIM_TI1_ConfigInputStage) - TIM_TI1_ConfigInputStage 0x08004361 Thumb Code 34 stm32f1xx_hal_tim.o(i.TIM_TI1_ConfigInputStage) - i.TIM_TI2_ConfigInputStage 0x08004382 Section 0 stm32f1xx_hal_tim.o(i.TIM_TI2_ConfigInputStage) - TIM_TI2_ConfigInputStage 0x08004383 Thumb Code 36 stm32f1xx_hal_tim.o(i.TIM_TI2_ConfigInputStage) - i.UART_DMAAbortOnError 0x080043a6 Section 0 stm32f1xx_hal_uart.o(i.UART_DMAAbortOnError) - UART_DMAAbortOnError 0x080043a7 Thumb Code 16 stm32f1xx_hal_uart.o(i.UART_DMAAbortOnError) - i.UART_DMAError 0x080043b6 Section 0 stm32f1xx_hal_uart.o(i.UART_DMAError) - UART_DMAError 0x080043b7 Thumb Code 74 stm32f1xx_hal_uart.o(i.UART_DMAError) - i.UART_DMAReceiveCplt 0x08004400 Section 0 stm32f1xx_hal_uart.o(i.UART_DMAReceiveCplt) - UART_DMAReceiveCplt 0x08004401 Thumb Code 134 stm32f1xx_hal_uart.o(i.UART_DMAReceiveCplt) - i.UART_DMARxHalfCplt 0x08004486 Section 0 stm32f1xx_hal_uart.o(i.UART_DMARxHalfCplt) - UART_DMARxHalfCplt 0x08004487 Thumb Code 30 stm32f1xx_hal_uart.o(i.UART_DMARxHalfCplt) - i.UART_EndRxTransfer 0x080044a4 Section 0 stm32f1xx_hal_uart.o(i.UART_EndRxTransfer) - UART_EndRxTransfer 0x080044a5 Thumb Code 78 stm32f1xx_hal_uart.o(i.UART_EndRxTransfer) - i.UART_EndTxTransfer 0x080044f2 Section 0 stm32f1xx_hal_uart.o(i.UART_EndTxTransfer) - UART_EndTxTransfer 0x080044f3 Thumb Code 28 stm32f1xx_hal_uart.o(i.UART_EndTxTransfer) - i.UART_Get 0x08004510 Section 0 uart.o(i.UART_Get) - UART_Get 0x08004511 Thumb Code 16 uart.o(i.UART_Get) - i.UART_Receive_IT 0x08004524 Section 0 stm32f1xx_hal_uart.o(i.UART_Receive_IT) - UART_Receive_IT 0x08004525 Thumb Code 194 stm32f1xx_hal_uart.o(i.UART_Receive_IT) - i.UART_SetConfig 0x080045e8 Section 0 stm32f1xx_hal_uart.o(i.UART_SetConfig) - UART_SetConfig 0x080045e9 Thumb Code 178 stm32f1xx_hal_uart.o(i.UART_SetConfig) - i.UART_Start_Receive_DMA 0x080046a0 Section 0 stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA) - i.UART_WaitOnFlagUntilTimeout 0x08004730 Section 0 stm32f1xx_hal_uart.o(i.UART_WaitOnFlagUntilTimeout) - UART_WaitOnFlagUntilTimeout 0x08004731 Thumb Code 114 stm32f1xx_hal_uart.o(i.UART_WaitOnFlagUntilTimeout) - i.USART2_IRQHandler 0x080047a4 Section 0 stm32f1xx_it.o(i.USART2_IRQHandler) - i.USAR_UART_IDLECallback 0x080047bc Section 0 usart.o(i.USAR_UART_IDLECallback) - i.USER_UART_IRQHandler 0x08004850 Section 0 usart.o(i.USER_UART_IRQHandler) - i.UsageFault_Handler 0x080048a0 Section 0 stm32f1xx_it.o(i.UsageFault_Handler) - i.__0printf 0x080048a4 Section 0 printfa.o(i.__0printf) - i.__NVIC_SetPriority 0x080048c4 Section 0 stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority) - __NVIC_SetPriority 0x080048c5 Thumb Code 32 stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority) - i.__scatterload_copy 0x080048e4 Section 14 handlers.o(i.__scatterload_copy) - i.__scatterload_null 0x080048f2 Section 2 handlers.o(i.__scatterload_null) - i.__scatterload_zeroinit 0x080048f4 Section 14 handlers.o(i.__scatterload_zeroinit) - i._fp_digits 0x08004904 Section 0 printfa.o(i._fp_digits) - _fp_digits 0x08004905 Thumb Code 366 printfa.o(i._fp_digits) - i._printf_core 0x08004a88 Section 0 printfa.o(i._printf_core) - _printf_core 0x08004a89 Thumb Code 1704 printfa.o(i._printf_core) - i._printf_post_padding 0x0800513c Section 0 printfa.o(i._printf_post_padding) - _printf_post_padding 0x0800513d Thumb Code 36 printfa.o(i._printf_post_padding) - i._printf_pre_padding 0x08005160 Section 0 printfa.o(i._printf_pre_padding) - _printf_pre_padding 0x08005161 Thumb Code 46 printfa.o(i._printf_pre_padding) - i.fputc 0x0800518e Section 0 sx1281_header.o(i.fputc) - i.main 0x080051a8 Section 0 main.o(i.main) - i.tx_cplt_cb 0x080051ec Section 0 sx1281_driver_spi.o(i.tx_cplt_cb) - tx_cplt_cb 0x080051ed Thumb Code 8 sx1281_driver_spi.o(i.tx_cplt_cb) - i.txrx_cplt_cb 0x080051f8 Section 0 sx1281_driver_spi.o(i.txrx_cplt_cb) - txrx_cplt_cb 0x080051f9 Thumb Code 8 sx1281_driver_spi.o(i.txrx_cplt_cb) - .constdata 0x08005204 Section 18 stm32f1xx_hal_rcc.o(.constdata) - aPredivFactorTable 0x08005204 Data 2 stm32f1xx_hal_rcc.o(.constdata) - aPLLMULFactorTable 0x08005206 Data 16 stm32f1xx_hal_rcc.o(.constdata) - .constdata 0x08005216 Section 16 system_stm32f1xx.o(.constdata) - .constdata 0x08005226 Section 8 system_stm32f1xx.o(.constdata) - .constdata 0x08005230 Section 85 sx1281.o(.constdata) - .constdata 0x08005286 Section 4 sx1281_driver.o(.constdata) - .constdata 0x0800528c Section 228 sx1281_driver_hal.o(.constdata) - .constdata 0x08005370 Section 8 mr16.o(.constdata) - .data 0x20000000 Section 1 usart.o(.data) - .data 0x20000004 Section 12 stm32f1xx_hal.o(.data) - .data 0x20000010 Section 4 system_stm32f1xx.o(.data) - .data 0x20000014 Section 40 sx1281.o(.data) - .data 0x2000003c Section 16 sx1281_driver.o(.data) - OperatingMode 0x2000003c Data 1 sx1281_driver.o(.data) - PacketType 0x2000003d Data 1 sx1281_driver.o(.data) - LoRaBandwidth 0x2000003e Data 1 sx1281_driver.o(.data) - PollingMode 0x2000003f Data 1 sx1281_driver.o(.data) - IrqState 0x20000040 Data 1 sx1281_driver.o(.data) - RadioCallbacks 0x20000048 Data 4 sx1281_driver.o(.data) - .data 0x2000004c Section 1 sx1281_driver_spi.o(.data) - spi_done 0x2000004c Data 1 sx1281_driver_spi.o(.data) - .data 0x20000050 Section 8 mr16.o(.data) - .data 0x20000058 Section 4 stdout.o(.data) - .bss 0x2000005c Section 380 spi.o(.bss) - .bss 0x200001d8 Section 72 tim.o(.bss) - .bss 0x20000220 Section 790 usart.o(.bss) - .bss 0x20000538 Section 64 gpio_1.o(.bss) - GPIO_Callback 0x20000538 Data 64 gpio_1.o(.bss) - .bss 0x20000578 Section 64 spi_1.o(.bss) - SPI_Callback 0x20000578 Data 64 spi_1.o(.bss) - .bss 0x200005b8 Section 36 uart.o(.bss) - UART_Callback 0x200005b8 Data 36 uart.o(.bss) - .bss 0x200005dc Section 255 sx1281.o(.bss) - .bss 0x200006dc Section 64 sx1281_driver_gpio.o(.bss) - GpioIrq 0x200006dc Data 64 sx1281_driver_gpio.o(.bss) - .bss 0x2000071c Section 8190 sx1281_driver_hal.o(.bss) - halTxBuffer 0x2000071c Data 4095 sx1281_driver_hal.o(.bss) - halRxBuffer 0x2000171b Data 4095 sx1281_driver_hal.o(.bss) - .bss 0x20002720 Section 344 mr16.o(.bss) - STACK 0x20002878 Section 1024 startup_stm32f103xb.o(STACK) + .emb_text 0x08000104 Section 150 port.o(.emb_text) + .text 0x0800019c Section 36 startup_stm32f103xb.o(.text) + .text 0x080001c0 Section 0 llushr.o(.text) + .text 0x080001e0 Section 0 memcpya.o(.text) + .text 0x08000204 Section 0 memseta.o(.text) + .text 0x08000228 Section 0 strncpy.o(.text) + .text 0x08000240 Section 0 strlen.o(.text) + .text 0x0800024e Section 0 strcmp.o(.text) + .text 0x0800026a Section 0 strcpy.o(.text) + .text 0x0800027c Section 0 strncmp.o(.text) + .text 0x0800029a Section 0 strcasecmp.o(.text) + .text 0x080002c4 Section 0 __0sscanf.o(.text) + .text 0x080002fc Section 0 _scanf_int.o(.text) + .text 0x08000448 Section 0 dmul.o(.text) + .text 0x0800052c Section 0 ddiv.o(.text) + .text 0x0800060a Section 0 dflti.o(.text) + .text 0x0800062c Section 0 dfltui.o(.text) + .text 0x08000646 Section 0 dfixui.o(.text) + .text 0x08000678 Section 0 uidiv.o(.text) + .text 0x080006a4 Section 0 uldiv.o(.text) + .text 0x08000706 Section 0 tolower.o(.text) + .text 0x08000712 Section 0 _chval.o(.text) + .text 0x08000730 Section 0 scanf_char.o(.text) + _scanf_char_input 0x08000731 Thumb Code 12 scanf_char.o(.text) + .text 0x08000758 Section 0 _sgetc.o(.text) + .text 0x08000798 Section 0 iusefp.o(.text) + .text 0x08000798 Section 0 depilogue.o(.text) + .text 0x08000852 Section 0 dadd.o(.text) + .text 0x080009a0 Section 0 dfixul.o(.text) + .text 0x080009d0 Section 48 cdrcmple.o(.text) + .text 0x08000a00 Section 36 init.o(.text) + .text 0x08000a24 Section 0 llshl.o(.text) + .text 0x08000a42 Section 0 llsshr.o(.text) + .text 0x08000a66 Section 0 isspace_c.o(.text) + .text 0x08000a70 Section 0 _scanf.o(.text) + .text 0x08000da0 Section 0 ctype_c.o(.text) + i.BSP_SPI_GetHandle 0x08000dc8 Section 0 spi_1.o(i.BSP_SPI_GetHandle) + i.BSP_SPI_GetState 0x08000de4 Section 0 spi_1.o(i.BSP_SPI_GetState) + i.BSP_SPI_RegisterCallback 0x08000dfc Section 0 spi_1.o(i.BSP_SPI_RegisterCallback) + i.BSP_SPI_Transmit 0x08000e18 Section 0 spi_1.o(i.BSP_SPI_Transmit) + i.BSP_SPI_TransmitReceive 0x08000e42 Section 0 spi_1.o(i.BSP_SPI_TransmitReceive) + i.BSP_UART_GetHandle 0x08000e70 Section 0 uart.o(i.BSP_UART_GetHandle) + i.BusFault_Handler 0x08000e8c Section 0 stm32f1xx_it.o(i.BusFault_Handler) + i.DMA1_Channel2_IRQHandler 0x08000e90 Section 0 stm32f1xx_it.o(i.DMA1_Channel2_IRQHandler) + i.DMA1_Channel3_IRQHandler 0x08000e9c Section 0 stm32f1xx_it.o(i.DMA1_Channel3_IRQHandler) + i.DMA1_Channel5_IRQHandler 0x08000ea8 Section 0 stm32f1xx_it.o(i.DMA1_Channel5_IRQHandler) + i.DMA1_Channel6_IRQHandler 0x08000eb4 Section 0 stm32f1xx_it.o(i.DMA1_Channel6_IRQHandler) + i.DMA1_Channel7_IRQHandler 0x08000ec0 Section 0 stm32f1xx_it.o(i.DMA1_Channel7_IRQHandler) + i.DMA_SetConfig 0x08000ecc Section 0 stm32f1xx_hal_dma.o(i.DMA_SetConfig) + DMA_SetConfig 0x08000ecd Thumb Code 42 stm32f1xx_hal_dma.o(i.DMA_SetConfig) + i.DebugMon_Handler 0x08000ef6 Section 0 stm32f1xx_it.o(i.DebugMon_Handler) + i.EXTI15_10_IRQHandler 0x08000ef8 Section 0 stm32f1xx_it.o(i.EXTI15_10_IRQHandler) + i.EXTI9_5_IRQHandler 0x08000f00 Section 0 stm32f1xx_it.o(i.EXTI9_5_IRQHandler) + i.Error_Handler 0x08000f18 Section 0 main.o(i.Error_Handler) + i.FreeRTOS_CLIGetParameter 0x08000f1c Section 0 freertos_cli.o(i.FreeRTOS_CLIGetParameter) + i.FreeRTOS_CLIProcessCommand 0x08000f64 Section 0 freertos_cli.o(i.FreeRTOS_CLIProcessCommand) + i.FreeRTOS_CLIRegisterCommand 0x08001034 Section 0 freertos_cli.o(i.FreeRTOS_CLIRegisterCommand) + i.GpioGetBitPos 0x08001084 Section 0 sx1281_driver_gpio.o(i.GpioGetBitPos) + i.GpioInit 0x080010b4 Section 0 sx1281_driver_gpio.o(i.GpioInit) + i.GpioRead 0x080010b6 Section 0 sx1281_driver_gpio.o(i.GpioRead) + i.GpioSetIrq 0x080010bc Section 0 sx1281_driver_gpio.o(i.GpioSetIrq) + i.GpioWrite 0x080010f4 Section 0 sx1281_driver_gpio.o(i.GpioWrite) + i.HAL_DMA_Abort 0x080010fa Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_Abort) + i.HAL_DMA_Abort_IT 0x08001140 Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_Abort_IT) + i.HAL_DMA_IRQHandler 0x080011d8 Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_IRQHandler) + i.HAL_DMA_Init 0x0800132c Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_Init) + i.HAL_DMA_Start_IT 0x08001388 Section 0 stm32f1xx_hal_dma.o(i.HAL_DMA_Start_IT) + i.HAL_Delay 0x080013f8 Section 0 stm32f1xx_hal.o(i.HAL_Delay) + i.HAL_GPIO_EXTI_Callback 0x0800141c Section 0 gpio_1.o(i.HAL_GPIO_EXTI_Callback) + i.HAL_GPIO_EXTI_IRQHandler 0x08001448 Section 0 stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler) + i.HAL_GPIO_Init 0x08001460 Section 0 stm32f1xx_hal_gpio.o(i.HAL_GPIO_Init) + i.HAL_GPIO_ReadPin 0x08001640 Section 0 stm32f1xx_hal_gpio.o(i.HAL_GPIO_ReadPin) + i.HAL_GPIO_WritePin 0x0800164a Section 0 stm32f1xx_hal_gpio.o(i.HAL_GPIO_WritePin) + i.HAL_GetTick 0x08001654 Section 0 stm32f1xx_hal.o(i.HAL_GetTick) + i.HAL_HalfDuplex_Init 0x08001660 Section 0 stm32f1xx_hal_uart.o(i.HAL_HalfDuplex_Init) + i.HAL_IncTick 0x080016d0 Section 0 stm32f1xx_hal.o(i.HAL_IncTick) + i.HAL_Init 0x080016e0 Section 0 stm32f1xx_hal.o(i.HAL_Init) + i.HAL_InitTick 0x08001704 Section 0 stm32f1xx_hal.o(i.HAL_InitTick) + i.HAL_MspInit 0x08001744 Section 0 stm32f1xx_hal_msp.o(i.HAL_MspInit) + i.HAL_NVIC_EnableIRQ 0x0800178c Section 0 stm32f1xx_hal_cortex.o(i.HAL_NVIC_EnableIRQ) + i.HAL_NVIC_SetPriority 0x080017a8 Section 0 stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) + i.HAL_NVIC_SetPriorityGrouping 0x080017e8 Section 0 stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriorityGrouping) + i.HAL_RCC_ClockConfig 0x0800180c Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) + i.HAL_RCC_GetPCLK1Freq 0x08001938 Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq) + i.HAL_RCC_GetPCLK2Freq 0x08001958 Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) + i.HAL_RCC_GetSysClockFreq 0x08001978 Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq) + i.HAL_RCC_OscConfig 0x080019cc Section 0 stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig) + i.HAL_SPI_ErrorCallback 0x08001cec Section 0 spi_1.o(i.HAL_SPI_ErrorCallback) + i.HAL_SPI_GetState 0x08001d24 Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_GetState) + i.HAL_SPI_Init 0x08001d2a Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_Init) + i.HAL_SPI_MspInit 0x08001ddc Section 0 spi.o(i.HAL_SPI_MspInit) + i.HAL_SPI_RxCpltCallback 0x08001f14 Section 0 spi_1.o(i.HAL_SPI_RxCpltCallback) + i.HAL_SPI_RxHalfCpltCallback 0x08001f4c Section 0 spi_1.o(i.HAL_SPI_RxHalfCpltCallback) + i.HAL_SPI_Transmit 0x08001f84 Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit) + i.HAL_SPI_TransmitReceive 0x080020ea Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive) + i.HAL_SPI_TransmitReceive_DMA 0x080022dc Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) + i.HAL_SPI_Transmit_DMA 0x080023ec Section 0 stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) + i.HAL_SPI_TxCpltCallback 0x080024b8 Section 0 spi_1.o(i.HAL_SPI_TxCpltCallback) + i.HAL_SPI_TxHalfCpltCallback 0x080024dc Section 0 spi_1.o(i.HAL_SPI_TxHalfCpltCallback) + i.HAL_SPI_TxRxCpltCallback 0x08002514 Section 0 spi_1.o(i.HAL_SPI_TxRxCpltCallback) + i.HAL_SPI_TxRxHalfCpltCallback 0x0800254c Section 0 spi_1.o(i.HAL_SPI_TxRxHalfCpltCallback) + i.HAL_SYSTICK_Config 0x08002584 Section 0 stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config) + i.HAL_TIMEx_ConfigBreakDeadTime 0x080025ac Section 0 stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_ConfigBreakDeadTime) + i.HAL_TIMEx_MasterConfigSynchronization 0x08002600 Section 0 stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_MasterConfigSynchronization) + i.HAL_TIM_Base_Init 0x08002668 Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_Base_Init) + i.HAL_TIM_Base_MspInit 0x080026c4 Section 0 tim.o(i.HAL_TIM_Base_MspInit) + i.HAL_TIM_ConfigClockSource 0x080026ec Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_ConfigClockSource) + i.HAL_TIM_MspPostInit 0x080027c8 Section 0 tim.o(i.HAL_TIM_MspPostInit) + i.HAL_TIM_PWM_ConfigChannel 0x08002814 Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_ConfigChannel) + i.HAL_TIM_PWM_Init 0x080028e0 Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_Init) + i.HAL_TIM_PWM_MspInit 0x0800293a Section 0 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_MspInit) + i.HAL_UARTEx_RxEventCallback 0x0800293c Section 0 stm32f1xx_hal_uart.o(i.HAL_UARTEx_RxEventCallback) + i.HAL_UART_DMAStop 0x0800293e Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_DMAStop) + i.HAL_UART_ErrorCallback 0x080029b0 Section 0 uart.o(i.HAL_UART_ErrorCallback) + i.HAL_UART_IRQHandler 0x080029d8 Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler) + i.HAL_UART_Init 0x08002c44 Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_Init) + i.HAL_UART_MspInit 0x08002ca8 Section 0 usart.o(i.HAL_UART_MspInit) + i.HAL_UART_Receive_DMA 0x08002dc0 Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_Receive_DMA) + i.HAL_UART_RxCpltCallback 0x08002ddc Section 0 uart.o(i.HAL_UART_RxCpltCallback) + i.HAL_UART_RxHalfCpltCallback 0x08002e04 Section 0 uart.o(i.HAL_UART_RxHalfCpltCallback) + i.HAL_UART_Transmit 0x08002e2c Section 0 stm32f1xx_hal_uart.o(i.HAL_UART_Transmit) + i.HAL_UART_TxCpltCallback 0x08002ecc Section 0 uart.o(i.HAL_UART_TxCpltCallback) + i.HardFault_Handler 0x08002ef4 Section 0 stm32f1xx_it.o(i.HardFault_Handler) + i.LCD_Clear 0x08002ef6 Section 0 lcd.o(i.LCD_Clear) + i.LCD_DrawBitmap 0x08002f48 Section 0 lcd.o(i.LCD_DrawBitmap) + i.LCD_DrawChar 0x08002fc8 Section 0 lcd.o(i.LCD_DrawChar) + i.LCD_DrawPoint 0x0800312c Section 0 lcd.o(i.LCD_DrawPoint) + i.LCD_DrawString 0x08003188 Section 0 lcd.o(i.LCD_DrawString) + i.LCD_Init 0x080031f8 Section 0 lcd.o(i.LCD_Init) + i.LCD_SetAddressWindow 0x08003358 Section 0 lcd.o(i.LCD_SetAddressWindow) + LCD_SetAddressWindow 0x08003359 Thumb Code 100 lcd.o(i.LCD_SetAddressWindow) + i.LCD_WriteCommand 0x080033bc Section 0 lcd.o(i.LCD_WriteCommand) + LCD_WriteCommand 0x080033bd Thumb Code 56 lcd.o(i.LCD_WriteCommand) + i.LCD_WriteData 0x080033fc Section 0 lcd.o(i.LCD_WriteData) + LCD_WriteData 0x080033fd Thumb Code 54 lcd.o(i.LCD_WriteData) + i.LCD_WriteDataBuffer 0x0800343c Section 0 lcd.o(i.LCD_WriteDataBuffer) + LCD_WriteDataBuffer 0x0800343d Thumb Code 72 lcd.o(i.LCD_WriteDataBuffer) + i.LCD_WriteDataBuffer_DMA 0x0800348c Section 0 lcd.o(i.LCD_WriteDataBuffer_DMA) + LCD_WriteDataBuffer_DMA 0x0800348d Thumb Code 72 lcd.o(i.LCD_WriteDataBuffer_DMA) + i.MR16_CLI_Init 0x080034dc Section 0 mr16.o(i.MR16_CLI_Init) + i.MR16_Init 0x080034f4 Section 0 mr16.o(i.MR16_Init) + i.MR16_Main 0x08003564 Section 0 mr16.o(i.MR16_Main) + i.MR16_NotifyUARTIdle 0x08003660 Section 0 mr16.o(i.MR16_NotifyUARTIdle) + i.MSP_GetIRQn 0x0800366c Section 0 sx1281_driver_gpio.o(i.MSP_GetIRQn) + i.MX_DMA_Init 0x080036a8 Section 0 dma.o(i.MX_DMA_Init) + i.MX_FREERTOS_Init 0x08003714 Section 0 freertos.o(i.MX_FREERTOS_Init) + i.MX_GPIO_Init 0x08003748 Section 0 gpio.o(i.MX_GPIO_Init) + i.MX_SPI1_Init 0x08003860 Section 0 spi.o(i.MX_SPI1_Init) + i.MX_SPI2_Init 0x080038a8 Section 0 spi.o(i.MX_SPI2_Init) + i.MX_TIM1_Init 0x080038f0 Section 0 tim.o(i.MX_TIM1_Init) + i.MX_USART1_UART_Init 0x080039b4 Section 0 usart.o(i.MX_USART1_UART_Init) + i.MX_USART2_UART_Init 0x080039ec Section 0 usart.o(i.MX_USART2_UART_Init) + i.MemManage_Handler 0x08003a24 Section 0 stm32f1xx_it.o(i.MemManage_Handler) + i.NMI_Handler 0x08003a26 Section 0 stm32f1xx_it.o(i.NMI_Handler) + i.OnRxDone 0x08003a28 Section 0 sx1281.o(i.OnRxDone) + i.OnRxError 0x08003a3c Section 0 sx1281.o(i.OnRxError) + i.OnRxTimeout 0x08003a50 Section 0 sx1281.o(i.OnRxTimeout) + i.OnTxDone 0x08003a64 Section 0 sx1281.o(i.OnTxDone) + i.OnTxTimeout 0x08003a78 Section 0 sx1281.o(i.OnTxTimeout) + i.SPI_DMAError 0x08003a8c Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAError) + SPI_DMAError 0x08003a8d Thumb Code 34 stm32f1xx_hal_spi.o(i.SPI_DMAError) + i.SPI_DMAHalfReceiveCplt 0x08003aae Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAHalfReceiveCplt) + SPI_DMAHalfReceiveCplt 0x08003aaf Thumb Code 10 stm32f1xx_hal_spi.o(i.SPI_DMAHalfReceiveCplt) + i.SPI_DMAHalfTransmitCplt 0x08003ab8 Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitCplt) + SPI_DMAHalfTransmitCplt 0x08003ab9 Thumb Code 10 stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitCplt) + i.SPI_DMAHalfTransmitReceiveCplt 0x08003ac2 Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitReceiveCplt) + SPI_DMAHalfTransmitReceiveCplt 0x08003ac3 Thumb Code 10 stm32f1xx_hal_spi.o(i.SPI_DMAHalfTransmitReceiveCplt) + i.SPI_DMAReceiveCplt 0x08003acc Section 0 stm32f1xx_hal_spi.o(i.SPI_DMAReceiveCplt) + SPI_DMAReceiveCplt 0x08003acd Thumb Code 106 stm32f1xx_hal_spi.o(i.SPI_DMAReceiveCplt) + i.SPI_DMATransmitCplt 0x08003b36 Section 0 stm32f1xx_hal_spi.o(i.SPI_DMATransmitCplt) + SPI_DMATransmitCplt 0x08003b37 Thumb Code 100 stm32f1xx_hal_spi.o(i.SPI_DMATransmitCplt) + i.SPI_DMATransmitReceiveCplt 0x08003b9a Section 0 stm32f1xx_hal_spi.o(i.SPI_DMATransmitReceiveCplt) + SPI_DMATransmitReceiveCplt 0x08003b9b Thumb Code 90 stm32f1xx_hal_spi.o(i.SPI_DMATransmitReceiveCplt) + i.SPI_EndRxTransaction 0x08003bf4 Section 0 stm32f1xx_hal_spi.o(i.SPI_EndRxTransaction) + SPI_EndRxTransaction 0x08003bf5 Thumb Code 92 stm32f1xx_hal_spi.o(i.SPI_EndRxTransaction) + i.SPI_EndRxTxTransaction 0x08003c50 Section 0 stm32f1xx_hal_spi.o(i.SPI_EndRxTxTransaction) + SPI_EndRxTxTransaction 0x08003c51 Thumb Code 52 stm32f1xx_hal_spi.o(i.SPI_EndRxTxTransaction) + i.SPI_Get 0x08003c84 Section 0 spi_1.o(i.SPI_Get) + SPI_Get 0x08003c85 Thumb Code 26 spi_1.o(i.SPI_Get) + i.SPI_WaitFlagStateUntilTimeout 0x08003ca8 Section 0 stm32f1xx_hal_spi.o(i.SPI_WaitFlagStateUntilTimeout) + SPI_WaitFlagStateUntilTimeout 0x08003ca9 Thumb Code 180 stm32f1xx_hal_spi.o(i.SPI_WaitFlagStateUntilTimeout) + i.SX1281Calibrate 0x08003d60 Section 0 sx1281_driver.o(i.SX1281Calibrate) + i.SX1281ClearIrqStatus 0x08003d9e Section 0 sx1281_driver.o(i.SX1281ClearIrqStatus) + i.SX1281GetFirmwareVersion 0x08003db6 Section 0 sx1281_driver.o(i.SX1281GetFirmwareVersion) + i.SX1281GetFrequencyError 0x08003dd0 Section 0 sx1281_driver.o(i.SX1281GetFrequencyError) + i.SX1281GetIrqStatus 0x08003e68 Section 0 sx1281_driver.o(i.SX1281GetIrqStatus) + i.SX1281GetLoRaBandwidth 0x08003e7c Section 0 sx1281_driver.o(i.SX1281GetLoRaBandwidth) + i.SX1281GetOpMode 0x08003eb8 Section 0 sx1281_driver.o(i.SX1281GetOpMode) + i.SX1281GetPacketStatus 0x08003ec4 Section 0 sx1281_driver.o(i.SX1281GetPacketStatus) + i.SX1281GetPacketType 0x080040d8 Section 0 sx1281_driver.o(i.SX1281GetPacketType) + i.SX1281GetPayload 0x080040e4 Section 0 sx1281_driver.o(i.SX1281GetPayload) + i.SX1281GetRssiInst 0x0800410c Section 0 sx1281_driver.o(i.SX1281GetRssiInst) + i.SX1281GetRxBufferStatus 0x08004130 Section 0 sx1281_driver.o(i.SX1281GetRxBufferStatus) + i.SX1281GetStatus 0x08004178 Section 0 sx1281_driver.o(i.SX1281GetStatus) + i.SX1281HalGetDioStatus 0x08004190 Section 0 sx1281_driver_hal.o(i.SX1281HalGetDioStatus) + i.SX1281HalInit 0x080041b4 Section 0 sx1281_driver_hal.o(i.SX1281HalInit) + i.SX1281HalIoIrqInit 0x080041c8 Section 0 sx1281_driver_hal.o(i.SX1281HalIoIrqInit) + i.SX1281HalReadBuffer 0x080041d8 Section 0 sx1281_driver_hal.o(i.SX1281HalReadBuffer) + i.SX1281HalReadCommand 0x08004244 Section 0 sx1281_driver_hal.o(i.SX1281HalReadCommand) + i.SX1281HalReadRegister 0x080042b0 Section 0 sx1281_driver_hal.o(i.SX1281HalReadRegister) + i.SX1281HalReadRegisters 0x080042c0 Section 0 sx1281_driver_hal.o(i.SX1281HalReadRegisters) + i.SX1281HalReset 0x08004330 Section 0 sx1281_driver_hal.o(i.SX1281HalReset) + i.SX1281HalWaitOnBusy 0x08004364 Section 0 sx1281_driver_hal.o(i.SX1281HalWaitOnBusy) + i.SX1281HalWriteBuffer 0x08004380 Section 0 sx1281_driver_hal.o(i.SX1281HalWriteBuffer) + i.SX1281HalWriteCommand 0x080043c8 Section 0 sx1281_driver_hal.o(i.SX1281HalWriteCommand) + i.SX1281HalWriteRegister 0x08004420 Section 0 sx1281_driver_hal.o(i.SX1281HalWriteRegister) + i.SX1281HalWriteRegisters 0x0800442c Section 0 sx1281_driver_hal.o(i.SX1281HalWriteRegisters) + i.SX1281Init 0x0800447c Section 0 sx1281_driver.o(i.SX1281Init) + i.SX1281OnDioIrq 0x0800448c Section 0 sx1281_driver.o(i.SX1281OnDioIrq) + i.SX1281ProcessIrqs 0x080044a0 Section 0 sx1281_driver.o(i.SX1281ProcessIrqs) + i.SX1281SendPayload 0x080045ec Section 0 sx1281_driver.o(i.SX1281SendPayload) + i.SX1281SetAutoFS 0x080045fe Section 0 sx1281_driver.o(i.SX1281SetAutoFS) + i.SX1281SetAutoTx 0x0800460c Section 0 sx1281_driver.o(i.SX1281SetAutoTx) + i.SX1281SetBleAccessAddress 0x08004626 Section 0 sx1281_driver.o(i.SX1281SetBleAccessAddress) + i.SX1281SetBleAdvertizerAccessAddress 0x0800465c Section 0 sx1281_driver.o(i.SX1281SetBleAdvertizerAccessAddress) + i.SX1281SetBufferBaseAddresses 0x08004668 Section 0 sx1281_driver.o(i.SX1281SetBufferBaseAddresses) + i.SX1281SetCad 0x08004680 Section 0 sx1281_driver.o(i.SX1281SetCad) + i.SX1281SetCadParams 0x08004698 Section 0 sx1281_driver.o(i.SX1281SetCadParams) + i.SX1281SetCrcPolynomial 0x080046b0 Section 0 sx1281_driver.o(i.SX1281SetCrcPolynomial) + i.SX1281SetCrcSeed 0x080046d8 Section 0 sx1281_driver.o(i.SX1281SetCrcSeed) + i.SX1281SetDioIrqParams 0x08004700 Section 0 sx1281_driver.o(i.SX1281SetDioIrqParams) + i.SX1281SetFs 0x08004738 Section 0 sx1281_driver.o(i.SX1281SetFs) + i.SX1281SetInterruptMode 0x08004750 Section 0 sx1281_driver.o(i.SX1281SetInterruptMode) + i.SX1281SetLongPreamble 0x0800475c Section 0 sx1281_driver.o(i.SX1281SetLongPreamble) + i.SX1281SetModulationParams 0x0800476c Section 0 sx1281_driver.o(i.SX1281SetModulationParams) + i.SX1281SetPacketParams 0x08004800 Section 0 sx1281_driver.o(i.SX1281SetPacketParams) + i.SX1281SetPacketType 0x080048d8 Section 0 sx1281_driver.o(i.SX1281SetPacketType) + i.SX1281SetPayload 0x080048f4 Section 0 sx1281_driver.o(i.SX1281SetPayload) + i.SX1281SetPollingMode 0x08004900 Section 0 sx1281_driver.o(i.SX1281SetPollingMode) + i.SX1281SetRegistersDefault 0x0800490c Section 0 sx1281_driver.o(i.SX1281SetRegistersDefault) + i.SX1281SetRegulatorMode 0x08004930 Section 0 sx1281_driver.o(i.SX1281SetRegulatorMode) + i.SX1281SetRfFrequency 0x08004940 Section 0 sx1281_driver.o(i.SX1281SetRfFrequency) + i.SX1281SetRx 0x08004974 Section 0 sx1281_driver.o(i.SX1281SetRx) + i.SX1281SetRxDutyCycle 0x080049a4 Section 0 sx1281_driver.o(i.SX1281SetRxDutyCycle) + i.SX1281SetSaveContext 0x080049d4 Section 0 sx1281_driver.o(i.SX1281SetSaveContext) + i.SX1281SetSleep 0x080049e0 Section 0 sx1281_driver.o(i.SX1281SetSleep) + i.SX1281SetStandby 0x08004a18 Section 0 sx1281_driver.o(i.SX1281SetStandby) + i.SX1281SetSyncWord 0x08004a3c Section 0 sx1281_driver.o(i.SX1281SetSyncWord) + i.SX1281SetSyncWordErrorTolerance 0x08004aa8 Section 0 sx1281_driver.o(i.SX1281SetSyncWordErrorTolerance) + i.SX1281SetTx 0x08004acc Section 0 sx1281_driver.o(i.SX1281SetTx) + i.SX1281SetTxContinuousPreamble 0x08004afc Section 0 sx1281_driver.o(i.SX1281SetTxContinuousPreamble) + i.SX1281SetTxContinuousWave 0x08004b06 Section 0 sx1281_driver.o(i.SX1281SetTxContinuousWave) + i.SX1281SetTxParams 0x08004b10 Section 0 sx1281_driver.o(i.SX1281SetTxParams) + i.SX1281SetWhiteningSeed 0x08004b28 Section 0 sx1281_driver.o(i.SX1281SetWhiteningSeed) + i.SX1281_BSPInit 0x08004b48 Section 0 sx1281_header.o(i.SX1281_BSPInit) + i.SX1281_Callback 0x08004b58 Section 0 mr16.o(i.SX1281_Callback) + i.SX1281_GetState 0x08004c98 Section 0 sx1281.o(i.SX1281_GetState) + i.SX1281_Init 0x08004cb0 Section 0 sx1281.o(i.SX1281_Init) + i.SX1281_Running 0x08004ffc Section 0 sx1281.o(i.SX1281_Running) + i.SX1281_SetRXSuccessive 0x08005010 Section 0 sx1281.o(i.SX1281_SetRXSuccessive) + i.SX1281_SetTX 0x08005040 Section 0 sx1281.o(i.SX1281_SetTX) + i.SpiIn 0x0800507c Section 0 sx1281_driver_spi.o(i.SpiIn) + i.SpiInOut 0x08005094 Section 0 sx1281_driver_spi.o(i.SpiInOut) + i.SpiInit 0x080050b4 Section 0 sx1281_driver_spi.o(i.SpiInit) + i.StartDefaultTask 0x080050d8 Section 0 freertos.o(i.StartDefaultTask) + i.SysTick_Handler 0x080050e6 Section 0 stm32f1xx_it.o(i.SysTick_Handler) + i.SystemClock_Config 0x080050fe Section 0 main.o(i.SystemClock_Config) + i.SystemInit 0x0800515e Section 0 system_stm32f1xx.o(i.SystemInit) + i.TIM_Base_SetConfig 0x08005160 Section 0 stm32f1xx_hal_tim.o(i.TIM_Base_SetConfig) + i.TIM_ETR_SetConfig 0x080051d8 Section 0 stm32f1xx_hal_tim.o(i.TIM_ETR_SetConfig) + i.TIM_ITRx_SetConfig 0x080051ec Section 0 stm32f1xx_hal_tim.o(i.TIM_ITRx_SetConfig) + TIM_ITRx_SetConfig 0x080051ed Thumb Code 16 stm32f1xx_hal_tim.o(i.TIM_ITRx_SetConfig) + i.TIM_OC1_SetConfig 0x080051fc Section 0 stm32f1xx_hal_tim.o(i.TIM_OC1_SetConfig) + TIM_OC1_SetConfig 0x080051fd Thumb Code 74 stm32f1xx_hal_tim.o(i.TIM_OC1_SetConfig) + i.TIM_OC2_SetConfig 0x0800524c Section 0 stm32f1xx_hal_tim.o(i.TIM_OC2_SetConfig) + i.TIM_OC3_SetConfig 0x080052a4 Section 0 stm32f1xx_hal_tim.o(i.TIM_OC3_SetConfig) + TIM_OC3_SetConfig 0x080052a5 Thumb Code 82 stm32f1xx_hal_tim.o(i.TIM_OC3_SetConfig) + i.TIM_OC4_SetConfig 0x080052fc Section 0 stm32f1xx_hal_tim.o(i.TIM_OC4_SetConfig) + TIM_OC4_SetConfig 0x080052fd Thumb Code 64 stm32f1xx_hal_tim.o(i.TIM_OC4_SetConfig) + i.TIM_TI1_ConfigInputStage 0x08005340 Section 0 stm32f1xx_hal_tim.o(i.TIM_TI1_ConfigInputStage) + TIM_TI1_ConfigInputStage 0x08005341 Thumb Code 34 stm32f1xx_hal_tim.o(i.TIM_TI1_ConfigInputStage) + i.TIM_TI2_ConfigInputStage 0x08005362 Section 0 stm32f1xx_hal_tim.o(i.TIM_TI2_ConfigInputStage) + TIM_TI2_ConfigInputStage 0x08005363 Thumb Code 36 stm32f1xx_hal_tim.o(i.TIM_TI2_ConfigInputStage) + i.Task_Init 0x08005388 Section 0 init.o(i.Task_Init) + i.Task_radio 0x080053c4 Section 0 radio.o(i.Task_radio) + i.UART_DMAAbortOnError 0x08005438 Section 0 stm32f1xx_hal_uart.o(i.UART_DMAAbortOnError) + UART_DMAAbortOnError 0x08005439 Thumb Code 16 stm32f1xx_hal_uart.o(i.UART_DMAAbortOnError) + i.UART_DMAError 0x08005448 Section 0 stm32f1xx_hal_uart.o(i.UART_DMAError) + UART_DMAError 0x08005449 Thumb Code 74 stm32f1xx_hal_uart.o(i.UART_DMAError) + i.UART_DMAReceiveCplt 0x08005492 Section 0 stm32f1xx_hal_uart.o(i.UART_DMAReceiveCplt) + UART_DMAReceiveCplt 0x08005493 Thumb Code 134 stm32f1xx_hal_uart.o(i.UART_DMAReceiveCplt) + i.UART_DMARxHalfCplt 0x08005518 Section 0 stm32f1xx_hal_uart.o(i.UART_DMARxHalfCplt) + UART_DMARxHalfCplt 0x08005519 Thumb Code 30 stm32f1xx_hal_uart.o(i.UART_DMARxHalfCplt) + i.UART_EndRxTransfer 0x08005536 Section 0 stm32f1xx_hal_uart.o(i.UART_EndRxTransfer) + UART_EndRxTransfer 0x08005537 Thumb Code 78 stm32f1xx_hal_uart.o(i.UART_EndRxTransfer) + i.UART_EndTxTransfer 0x08005584 Section 0 stm32f1xx_hal_uart.o(i.UART_EndTxTransfer) + UART_EndTxTransfer 0x08005585 Thumb Code 28 stm32f1xx_hal_uart.o(i.UART_EndTxTransfer) + i.UART_Get 0x080055a0 Section 0 uart.o(i.UART_Get) + UART_Get 0x080055a1 Thumb Code 26 uart.o(i.UART_Get) + i.UART_Receive_IT 0x080055c4 Section 0 stm32f1xx_hal_uart.o(i.UART_Receive_IT) + UART_Receive_IT 0x080055c5 Thumb Code 194 stm32f1xx_hal_uart.o(i.UART_Receive_IT) + i.UART_SetConfig 0x08005688 Section 0 stm32f1xx_hal_uart.o(i.UART_SetConfig) + UART_SetConfig 0x08005689 Thumb Code 178 stm32f1xx_hal_uart.o(i.UART_SetConfig) + i.UART_Start_Receive_DMA 0x08005740 Section 0 stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA) + i.UART_WaitOnFlagUntilTimeout 0x080057d0 Section 0 stm32f1xx_hal_uart.o(i.UART_WaitOnFlagUntilTimeout) + UART_WaitOnFlagUntilTimeout 0x080057d1 Thumb Code 114 stm32f1xx_hal_uart.o(i.UART_WaitOnFlagUntilTimeout) + i.USART2_IRQHandler 0x08005844 Section 0 stm32f1xx_it.o(i.USART2_IRQHandler) + i.USAR_UART_IDLECallback 0x0800585c Section 0 usart.o(i.USAR_UART_IDLECallback) + i.USER_UART_IRQHandler 0x080058f0 Section 0 usart.o(i.USER_UART_IRQHandler) + i.UsageFault_Handler 0x08005940 Section 0 stm32f1xx_it.o(i.UsageFault_Handler) + i.__0printf 0x08005944 Section 0 printfa.o(i.__0printf) + i.__0snprintf 0x08005964 Section 0 printfa.o(i.__0snprintf) + i.__NVIC_SetPriority 0x08005998 Section 0 stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority) + __NVIC_SetPriority 0x08005999 Thumb Code 32 stm32f1xx_hal_cortex.o(i.__NVIC_SetPriority) + i.__scatterload_copy 0x080059b8 Section 14 handlers.o(i.__scatterload_copy) + i.__scatterload_null 0x080059c6 Section 2 handlers.o(i.__scatterload_null) + i.__scatterload_zeroinit 0x080059c8 Section 14 handlers.o(i.__scatterload_zeroinit) + i._fp_digits 0x080059d8 Section 0 printfa.o(i._fp_digits) + _fp_digits 0x080059d9 Thumb Code 366 printfa.o(i._fp_digits) + i._printf_core 0x08005b5c Section 0 printfa.o(i._printf_core) + _printf_core 0x08005b5d Thumb Code 1704 printfa.o(i._printf_core) + i._printf_post_padding 0x08006210 Section 0 printfa.o(i._printf_post_padding) + _printf_post_padding 0x08006211 Thumb Code 36 printfa.o(i._printf_post_padding) + i._printf_pre_padding 0x08006234 Section 0 printfa.o(i._printf_pre_padding) + _printf_pre_padding 0x08006235 Thumb Code 46 printfa.o(i._printf_pre_padding) + i._snputc 0x08006262 Section 0 printfa.o(i._snputc) + _snputc 0x08006263 Thumb Code 22 printfa.o(i._snputc) + i.eTaskGetState 0x08006278 Section 0 tasks.o(i.eTaskGetState) + i.fputc 0x080062ec Section 0 sx1281_header.o(i.fputc) + i.free 0x08006304 Section 0 malloc.o(i.free) + i.main 0x08006354 Section 0 main.o(i.main) + i.malloc 0x08006388 Section 0 malloc.o(i.malloc) + i.mr16CommandHandler 0x080063f4 Section 0 mr16.o(i.mr16CommandHandler) + mr16CommandHandler 0x080063f5 Thumb Code 300 mr16.o(i.mr16CommandHandler) + i.osDelay 0x080065d4 Section 0 cmsis_os2.o(i.osDelay) + i.osDelayUntil 0x080065ee Section 0 cmsis_os2.o(i.osDelayUntil) + i.osKernelGetTickCount 0x0800661c Section 0 cmsis_os2.o(i.osKernelGetTickCount) + i.osKernelGetTickFreq 0x0800662a Section 0 cmsis_os2.o(i.osKernelGetTickFreq) + i.osKernelInitialize 0x08006630 Section 0 cmsis_os2.o(i.osKernelInitialize) + i.osKernelLock 0x08006654 Section 0 cmsis_os2.o(i.osKernelLock) + i.osKernelStart 0x08006680 Section 0 cmsis_os2.o(i.osKernelStart) + i.osKernelUnlock 0x080066b8 Section 0 cmsis_os2.o(i.osKernelUnlock) + i.osMessageQueueNew 0x080066f2 Section 0 cmsis_os2.o(i.osMessageQueueNew) + i.osThreadGetId 0x0800674a Section 0 cmsis_os2.o(i.osThreadGetId) + i.osThreadNew 0x08006750 Section 0 cmsis_os2.o(i.osThreadNew) + i.osThreadTerminate 0x080067da Section 0 cmsis_os2.o(i.osThreadTerminate) + i.prvAddCurrentTaskToDelayedList 0x08006810 Section 0 tasks.o(i.prvAddCurrentTaskToDelayedList) + prvAddCurrentTaskToDelayedList 0x08006811 Thumb Code 84 tasks.o(i.prvAddCurrentTaskToDelayedList) + i.prvAddNewTaskToReadyList 0x0800686c Section 0 tasks.o(i.prvAddNewTaskToReadyList) + prvAddNewTaskToReadyList 0x0800686d Thumb Code 190 tasks.o(i.prvAddNewTaskToReadyList) + i.prvCheckForValidListAndQueue 0x0800693c Section 0 timers.o(i.prvCheckForValidListAndQueue) + prvCheckForValidListAndQueue 0x0800693d Thumb Code 72 timers.o(i.prvCheckForValidListAndQueue) + i.prvCopyDataFromQueue 0x08006994 Section 0 queue.o(i.prvCopyDataFromQueue) + prvCopyDataFromQueue 0x08006995 Thumb Code 38 queue.o(i.prvCopyDataFromQueue) + i.prvCopyDataToQueue 0x080069ba Section 0 queue.o(i.prvCopyDataToQueue) + prvCopyDataToQueue 0x080069bb Thumb Code 108 queue.o(i.prvCopyDataToQueue) + i.prvDeleteTCB 0x08006a26 Section 0 tasks.o(i.prvDeleteTCB) + prvDeleteTCB 0x08006a27 Thumb Code 52 tasks.o(i.prvDeleteTCB) + i.prvHeapInit 0x08006a5c Section 0 heap_4.o(i.prvHeapInit) + prvHeapInit 0x08006a5d Thumb Code 66 heap_4.o(i.prvHeapInit) + i.prvHelpCommand 0x08006aa8 Section 0 freertos_cli.o(i.prvHelpCommand) + prvHelpCommand 0x08006aa9 Thumb Code 40 freertos_cli.o(i.prvHelpCommand) + i.prvIdleTask 0x08006ad4 Section 0 tasks.o(i.prvIdleTask) + prvIdleTask 0x08006ad5 Thumb Code 82 tasks.o(i.prvIdleTask) + i.prvInitialiseNewQueue 0x08006b34 Section 0 queue.o(i.prvInitialiseNewQueue) + prvInitialiseNewQueue 0x08006b35 Thumb Code 34 queue.o(i.prvInitialiseNewQueue) + i.prvInitialiseNewTask 0x08006b58 Section 0 tasks.o(i.prvInitialiseNewTask) + prvInitialiseNewTask 0x08006b59 Thumb Code 176 tasks.o(i.prvInitialiseNewTask) + i.prvInsertBlockIntoFreeList 0x08006c08 Section 0 heap_4.o(i.prvInsertBlockIntoFreeList) + prvInsertBlockIntoFreeList 0x08006c09 Thumb Code 72 heap_4.o(i.prvInsertBlockIntoFreeList) + i.prvInsertTimerInActiveList 0x08006c54 Section 0 timers.o(i.prvInsertTimerInActiveList) + prvInsertTimerInActiveList 0x08006c55 Thumb Code 52 timers.o(i.prvInsertTimerInActiveList) + i.prvIsQueueEmpty 0x08006c8c Section 0 queue.o(i.prvIsQueueEmpty) + prvIsQueueEmpty 0x08006c8d Thumb Code 28 queue.o(i.prvIsQueueEmpty) + i.prvProcessReceivedCommands 0x08006ca8 Section 0 timers.o(i.prvProcessReceivedCommands) + prvProcessReceivedCommands 0x08006ca9 Thumb Code 248 timers.o(i.prvProcessReceivedCommands) + i.prvProcessTimerOrBlockTask 0x08006da4 Section 0 timers.o(i.prvProcessTimerOrBlockTask) + prvProcessTimerOrBlockTask 0x08006da5 Thumb Code 182 timers.o(i.prvProcessTimerOrBlockTask) + i.prvResetNextTaskUnblockTime 0x08006e64 Section 0 tasks.o(i.prvResetNextTaskUnblockTime) + prvResetNextTaskUnblockTime 0x08006e65 Thumb Code 26 tasks.o(i.prvResetNextTaskUnblockTime) + i.prvSampleTimeNow 0x08006e84 Section 0 timers.o(i.prvSampleTimeNow) + prvSampleTimeNow 0x08006e85 Thumb Code 36 timers.o(i.prvSampleTimeNow) + i.prvSwitchTimerLists 0x08006eac Section 0 timers.o(i.prvSwitchTimerLists) + prvSwitchTimerLists 0x08006ead Thumb Code 104 timers.o(i.prvSwitchTimerLists) + i.prvTaskExitError 0x08006f18 Section 0 port.o(i.prvTaskExitError) + prvTaskExitError 0x08006f19 Thumb Code 36 port.o(i.prvTaskExitError) + i.prvTimerTask 0x08006f40 Section 0 timers.o(i.prvTimerTask) + prvTimerTask 0x08006f41 Thumb Code 32 timers.o(i.prvTimerTask) + i.prvUnlockQueue 0x08006f64 Section 0 queue.o(i.prvUnlockQueue) + prvUnlockQueue 0x08006f65 Thumb Code 106 queue.o(i.prvUnlockQueue) + i.pvPortMalloc 0x08006fd0 Section 0 heap_4.o(i.pvPortMalloc) + i.pxPortInitialiseStack 0x080070ac Section 0 port.o(i.pxPortInitialiseStack) + i.radioCommandHandler 0x080070d0 Section 0 mr16.o(i.radioCommandHandler) + radioCommandHandler 0x080070d1 Thumb Code 152 mr16.o(i.radioCommandHandler) + i.tx_cplt_cb 0x08007188 Section 0 sx1281_driver_spi.o(i.tx_cplt_cb) + tx_cplt_cb 0x08007189 Thumb Code 8 sx1281_driver_spi.o(i.tx_cplt_cb) + i.txrx_cplt_cb 0x08007194 Section 0 sx1281_driver_spi.o(i.txrx_cplt_cb) + txrx_cplt_cb 0x08007195 Thumb Code 8 sx1281_driver_spi.o(i.txrx_cplt_cb) + i.uxListRemove 0x080071a0 Section 0 list.o(i.uxListRemove) + i.vApplicationGetIdleTaskMemory 0x080071c8 Section 0 cmsis_os2.o(i.vApplicationGetIdleTaskMemory) + i.vApplicationGetTimerTaskMemory 0x080071dc Section 0 cmsis_os2.o(i.vApplicationGetTimerTaskMemory) + i.vListInitialise 0x080071f4 Section 0 list.o(i.vListInitialise) + i.vListInitialiseItem 0x0800720a Section 0 list.o(i.vListInitialiseItem) + i.vListInsert 0x08007210 Section 0 list.o(i.vListInsert) + i.vListInsertEnd 0x08007240 Section 0 list.o(i.vListInsertEnd) + i.vPortEnterCritical 0x08007258 Section 0 port.o(i.vPortEnterCritical) + i.vPortExitCritical 0x08007298 Section 0 port.o(i.vPortExitCritical) + i.vPortFree 0x080072c0 Section 0 heap_4.o(i.vPortFree) + i.vPortSetupTimerInterrupt 0x08007324 Section 0 port.o(i.vPortSetupTimerInterrupt) + i.vPortValidateInterruptPriority 0x08007348 Section 0 port.o(i.vPortValidateInterruptPriority) + i.vQueueAddToRegistry 0x0800739c Section 0 queue.o(i.vQueueAddToRegistry) + i.vQueueWaitForMessageRestricted 0x080073c4 Section 0 queue.o(i.vQueueWaitForMessageRestricted) + i.vTaskDelay 0x08007408 Section 0 tasks.o(i.vTaskDelay) + i.vTaskDelayUntil 0x08007454 Section 0 tasks.o(i.vTaskDelayUntil) + i.vTaskDelete 0x080074e0 Section 0 tasks.o(i.vTaskDelete) + i.vTaskInternalSetTimeOutState 0x08007570 Section 0 tasks.o(i.vTaskInternalSetTimeOutState) + i.vTaskMissedYield 0x08007580 Section 0 tasks.o(i.vTaskMissedYield) + i.vTaskPlaceOnEventList 0x0800758c Section 0 tasks.o(i.vTaskPlaceOnEventList) + i.vTaskPlaceOnEventListRestricted 0x080075bc Section 0 tasks.o(i.vTaskPlaceOnEventListRestricted) + i.vTaskStartScheduler 0x080075f4 Section 0 tasks.o(i.vTaskStartScheduler) + i.vTaskSuspendAll 0x0800767c Section 0 tasks.o(i.vTaskSuspendAll) + i.vTaskSwitchContext 0x0800768c Section 0 tasks.o(i.vTaskSwitchContext) + i.xPortStartScheduler 0x080076f0 Section 0 port.o(i.xPortStartScheduler) + i.xPortSysTickHandler 0x08007798 Section 0 port.o(i.xPortSysTickHandler) + i.xQueueGenericCreate 0x080077c4 Section 0 queue.o(i.xQueueGenericCreate) + i.xQueueGenericCreateStatic 0x08007806 Section 0 queue.o(i.xQueueGenericCreateStatic) + i.xQueueGenericReset 0x0800786c Section 0 queue.o(i.xQueueGenericReset) + i.xQueueGenericSend 0x080078f4 Section 0 queue.o(i.xQueueGenericSend) + i.xQueueGenericSendFromISR 0x08007a54 Section 0 queue.o(i.xQueueGenericSendFromISR) + i.xQueueReceive 0x08007b14 Section 0 queue.o(i.xQueueReceive) + i.xTaskCheckForTimeOut 0x08007c4c Section 0 tasks.o(i.xTaskCheckForTimeOut) + i.xTaskCreate 0x08007cc0 Section 0 tasks.o(i.xTaskCreate) + i.xTaskCreateStatic 0x08007d1a Section 0 tasks.o(i.xTaskCreateStatic) + i.xTaskGetCurrentTaskHandle 0x08007d70 Section 0 tasks.o(i.xTaskGetCurrentTaskHandle) + i.xTaskGetSchedulerState 0x08007d7c Section 0 tasks.o(i.xTaskGetSchedulerState) + i.xTaskGetTickCount 0x08007d98 Section 0 tasks.o(i.xTaskGetTickCount) + i.xTaskGetTickCountFromISR 0x08007da4 Section 0 tasks.o(i.xTaskGetTickCountFromISR) + i.xTaskIncrementTick 0x08007db4 Section 0 tasks.o(i.xTaskIncrementTick) + i.xTaskPriorityDisinherit 0x08007e7c Section 0 tasks.o(i.xTaskPriorityDisinherit) + i.xTaskRemoveFromEventList 0x08007efc Section 0 tasks.o(i.xTaskRemoveFromEventList) + i.xTaskResumeAll 0x08007f6c Section 0 tasks.o(i.xTaskResumeAll) + i.xTimerCreateTimerTask 0x08008030 Section 0 timers.o(i.xTimerCreateTimerTask) + i.xTimerGenericCommand 0x08008090 Section 0 timers.o(i.xTimerGenericCommand) + .constdata 0x080080f8 Section 36 freertos.o(.constdata) + .constdata 0x0800811c Section 18 stm32f1xx_hal_rcc.o(.constdata) + aPredivFactorTable 0x0800811c Data 2 stm32f1xx_hal_rcc.o(.constdata) + aPLLMULFactorTable 0x0800811e Data 16 stm32f1xx_hal_rcc.o(.constdata) + .constdata 0x0800812e Section 16 system_stm32f1xx.o(.constdata) + .constdata 0x0800813e Section 8 system_stm32f1xx.o(.constdata) + .constdata 0x08008146 Section 12160 lcd.o(.constdata) + .constdata 0x0800b0c6 Section 512 lcd.o(.constdata) + .constdata 0x0800b2c8 Section 73 sx1281.o(.constdata) + .constdata 0x0800b312 Section 4 sx1281_driver.o(.constdata) + .constdata 0x0800b318 Section 228 sx1281_driver_hal.o(.constdata) + .constdata 0x0800b3fc Section 16 freertos_cli.o(.constdata) + xHelpCommand 0x0800b3fc Data 16 freertos_cli.o(.constdata) + .constdata 0x0800b40c Section 36 mr16.o(.constdata) + mr16Command 0x0800b410 Data 16 mr16.o(.constdata) + radioCommand 0x0800b420 Data 16 mr16.o(.constdata) + .constdata 0x0800b430 Section 36 user_task.o(.constdata) + .constdata 0x0800b454 Section 36 user_task.o(.constdata) + .constdata 0x0800b478 Section 64 ctype_c.o(.constdata) + .conststring 0x0800b4b8 Section 12 freertos.o(.conststring) + .conststring 0x0800b4c4 Section 53 freertos_cli.o(.conststring) + .conststring 0x0800b4fc Section 168 freertos_cli.o(.conststring) + .conststring 0x0800b5a4 Section 126 mr16.o(.conststring) + .conststring 0x0800b624 Section 10 user_task.o(.conststring) + .data 0x20000000 Section 4 freertos.o(.data) + .data 0x20000004 Section 1 usart.o(.data) + .data 0x20000008 Section 12 stm32f1xx_hal.o(.data) + .data 0x20000014 Section 4 system_stm32f1xx.o(.data) + .data 0x20000018 Section 60 tasks.o(.data) + uxDeletedTasksWaitingCleanUp 0x2000001c Data 4 tasks.o(.data) + uxCurrentNumberOfTasks 0x20000020 Data 4 tasks.o(.data) + xTickCount 0x20000024 Data 4 tasks.o(.data) + uxTopReadyPriority 0x20000028 Data 4 tasks.o(.data) + xSchedulerRunning 0x2000002c Data 4 tasks.o(.data) + xPendedTicks 0x20000030 Data 4 tasks.o(.data) + xYieldPending 0x20000034 Data 4 tasks.o(.data) + xNumOfOverflows 0x20000038 Data 4 tasks.o(.data) + uxTaskNumber 0x2000003c Data 4 tasks.o(.data) + xNextTaskUnblockTime 0x20000040 Data 4 tasks.o(.data) + xIdleTaskHandle 0x20000044 Data 4 tasks.o(.data) + uxSchedulerSuspended 0x20000048 Data 4 tasks.o(.data) + pxDelayedTaskList 0x2000004c Data 4 tasks.o(.data) + pxOverflowDelayedTaskList 0x20000050 Data 4 tasks.o(.data) + .data 0x20000054 Section 20 timers.o(.data) + xTimerQueue 0x20000054 Data 4 timers.o(.data) + xTimerTaskHandle 0x20000058 Data 4 timers.o(.data) + xLastTime 0x2000005c Data 4 timers.o(.data) + pxCurrentTimerList 0x20000060 Data 4 timers.o(.data) + pxOverflowTimerList 0x20000064 Data 4 timers.o(.data) + .data 0x20000068 Section 4 cmsis_os2.o(.data) + KernelState 0x20000068 Data 4 cmsis_os2.o(.data) + .data 0x2000006c Section 32 heap_4.o(.data) + pxEnd 0x2000006c Data 4 heap_4.o(.data) + xFreeBytesRemaining 0x20000070 Data 4 heap_4.o(.data) + xMinimumEverFreeBytesRemaining 0x20000074 Data 4 heap_4.o(.data) + xNumberOfSuccessfulAllocations 0x20000078 Data 4 heap_4.o(.data) + xNumberOfSuccessfulFrees 0x2000007c Data 4 heap_4.o(.data) + xBlockAllocatedBit 0x20000080 Data 4 heap_4.o(.data) + xStart 0x20000084 Data 8 heap_4.o(.data) + .data 0x2000008c Section 12 port.o(.data) + ucMaxSysCallPriority 0x2000008c Data 1 port.o(.data) + uxCriticalNesting 0x20000090 Data 4 port.o(.data) + ulMaxPRIGROUPValue 0x20000094 Data 4 port.o(.data) + .data 0x20000098 Section 1 lcd.o(.data) + lcd_orientation 0x20000098 Data 1 lcd.o(.data) + .data 0x2000009c Section 40 sx1281.o(.data) + .data 0x200000c4 Section 16 sx1281_driver.o(.data) + OperatingMode 0x200000c4 Data 1 sx1281_driver.o(.data) + PacketType 0x200000c5 Data 1 sx1281_driver.o(.data) + LoRaBandwidth 0x200000c6 Data 1 sx1281_driver.o(.data) + PollingMode 0x200000c7 Data 1 sx1281_driver.o(.data) + IrqState 0x200000c8 Data 1 sx1281_driver.o(.data) + RadioCallbacks 0x200000d0 Data 4 sx1281_driver.o(.data) + .data 0x200000d4 Section 1 sx1281_driver_spi.o(.data) + spi_done 0x200000d4 Data 1 sx1281_driver_spi.o(.data) + .data 0x200000d8 Section 20 freertos_cli.o(.data) + pxLastCommandInList 0x200000d8 Data 4 freertos_cli.o(.data) + pxCommand 0x200000dc Data 4 freertos_cli.o(.data) + pxCommand 0x200000e0 Data 4 freertos_cli.o(.data) + xRegisteredCommands 0x200000e4 Data 8 freertos_cli.o(.data) + .data 0x200000ec Section 4 mr16.o(.data) + MR16_Mode 0x200000ec Data 1 mr16.o(.data) + MR16_FSM 0x200000ed Data 1 mr16.o(.data) + .data 0x200000f0 Section 1 radio.o(.data) + .data 0x200000f4 Section 4 stdout.o(.data) + .data 0x200000f8 Section 4 mvars.o(.data) + .data 0x200000fc Section 4 mvars.o(.data) + .bss 0x20000100 Section 380 spi.o(.bss) + .bss 0x2000027c Section 72 tim.o(.bss) + .bss 0x200002c4 Section 790 usart.o(.bss) + .bss 0x200005dc Section 64 queue.o(.bss) + .bss 0x2000061c Section 1220 tasks.o(.bss) + pxReadyTasksLists 0x2000061c Data 1120 tasks.o(.bss) + xDelayedTaskList1 0x20000a7c Data 20 tasks.o(.bss) + xDelayedTaskList2 0x20000a90 Data 20 tasks.o(.bss) + xPendingReadyList 0x20000aa4 Data 20 tasks.o(.bss) + xTasksWaitingTermination 0x20000ab8 Data 20 tasks.o(.bss) + xSuspendedTaskList 0x20000acc Data 20 tasks.o(.bss) + .bss 0x20000ae0 Section 280 timers.o(.bss) + xStaticTimerQueue 0x20000ae0 Data 80 timers.o(.bss) + ucStaticTimerQueueStorage 0x20000b30 Data 160 timers.o(.bss) + xActiveTimerList1 0x20000bd0 Data 20 timers.o(.bss) + xActiveTimerList2 0x20000be4 Data 20 timers.o(.bss) + .bss 0x20000bf8 Section 1720 cmsis_os2.o(.bss) + Idle_TCB 0x20000bf8 Data 92 cmsis_os2.o(.bss) + Idle_Stack 0x20000c54 Data 512 cmsis_os2.o(.bss) + Timer_TCB 0x20000e54 Data 92 cmsis_os2.o(.bss) + Timer_Stack 0x20000eb0 Data 1024 cmsis_os2.o(.bss) + .bss 0x200012b0 Section 3072 heap_4.o(.bss) + ucHeap 0x200012b0 Data 3072 heap_4.o(.bss) + .bss 0x20001eb0 Section 64 gpio_1.o(.bss) + GPIO_Callback 0x20001eb0 Data 64 gpio_1.o(.bss) + .bss 0x20001ef0 Section 64 spi_1.o(.bss) + SPI_Callback 0x20001ef0 Data 64 spi_1.o(.bss) + .bss 0x20001f30 Section 72 uart.o(.bss) + UART_Callback 0x20001f30 Data 72 uart.o(.bss) + .bss 0x20001f78 Section 64 sx1281_driver_gpio.o(.bss) + GpioIrq 0x20001f78 Data 64 sx1281_driver_gpio.o(.bss) + .bss 0x20001fb8 Section 8190 sx1281_driver_hal.o(.bss) + halTxBuffer 0x20001fb8 Data 4095 sx1281_driver_hal.o(.bss) + halRxBuffer 0x20002fb7 Data 4095 sx1281_driver_hal.o(.bss) + .bss 0x20003fb8 Section 1127 mr16.o(.bss) + .bss 0x20004420 Section 32 user_task.o(.bss) + .bss 0x20004440 Section 156 radio.o(.bss) + HEAP 0x200044e0 Section 512 startup_stm32f103xb.o(HEAP) + STACK 0x200046e0 Section 1024 startup_stm32f103xb.o(STACK) Global Symbols @@ -2404,308 +3611,429 @@ Image Symbol Table __rt_lib_shutdown_fini 0x080000fd Thumb Code 0 entry12b.o(.ARM.Collect$$$$0000000E) __rt_final_cpp 0x08000101 Thumb Code 0 entry10a.o(.ARM.Collect$$$$0000000F) __rt_final_exit 0x08000101 Thumb Code 0 entry11a.o(.ARM.Collect$$$$00000011) - Reset_Handler 0x08000105 Thumb Code 8 startup_stm32f103xb.o(.text) - ADC1_2_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - CAN1_RX1_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - CAN1_SCE_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - DMA1_Channel1_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - DMA1_Channel4_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - EXTI0_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - EXTI1_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - EXTI2_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - EXTI3_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - EXTI4_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - FLASH_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - I2C1_ER_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - I2C1_EV_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - I2C2_ER_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - I2C2_EV_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - PVD_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - RCC_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - RTC_Alarm_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - RTC_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - SPI1_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - SPI2_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - TAMPER_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - TIM1_BRK_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - TIM1_CC_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - TIM1_TRG_COM_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - TIM1_UP_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - TIM2_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - TIM3_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - TIM4_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - USART1_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - USART3_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - USBWakeUp_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - USB_HP_CAN1_TX_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - USB_LP_CAN1_RX0_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - WWDG_IRQHandler 0x0800011f Thumb Code 0 startup_stm32f103xb.o(.text) - __aeabi_llsr 0x08000129 Thumb Code 32 llushr.o(.text) - _ll_ushift_r 0x08000129 Thumb Code 0 llushr.o(.text) - __aeabi_memcpy 0x08000149 Thumb Code 36 memcpya.o(.text) - __aeabi_memcpy4 0x08000149 Thumb Code 0 memcpya.o(.text) - __aeabi_memcpy8 0x08000149 Thumb Code 0 memcpya.o(.text) - __aeabi_memset 0x0800016d Thumb Code 14 memseta.o(.text) - __aeabi_memset4 0x0800016d Thumb Code 0 memseta.o(.text) - __aeabi_memset8 0x0800016d Thumb Code 0 memseta.o(.text) - __aeabi_memclr 0x0800017b Thumb Code 4 memseta.o(.text) - __aeabi_memclr4 0x0800017b Thumb Code 0 memseta.o(.text) - __aeabi_memclr8 0x0800017b Thumb Code 0 memseta.o(.text) - _memset$wrapper 0x0800017f Thumb Code 18 memseta.o(.text) - strcpy 0x08000191 Thumb Code 18 strcpy.o(.text) - __aeabi_dmul 0x080001a3 Thumb Code 228 dmul.o(.text) - __aeabi_ddiv 0x08000287 Thumb Code 222 ddiv.o(.text) - __aeabi_i2d 0x08000365 Thumb Code 34 dflti.o(.text) - __aeabi_ui2d 0x08000387 Thumb Code 26 dfltui.o(.text) - __aeabi_d2uiz 0x080003a1 Thumb Code 50 dfixui.o(.text) - __aeabi_uidiv 0x080003d3 Thumb Code 0 uidiv.o(.text) - __aeabi_uidivmod 0x080003d3 Thumb Code 44 uidiv.o(.text) - __aeabi_uldivmod 0x080003ff Thumb Code 98 uldiv.o(.text) - __I$use$fp 0x08000461 Thumb Code 0 iusefp.o(.text) - _double_round 0x08000461 Thumb Code 30 depilogue.o(.text) - _double_epilogue 0x0800047f Thumb Code 156 depilogue.o(.text) - __aeabi_dadd 0x0800051b Thumb Code 322 dadd.o(.text) - __aeabi_dsub 0x0800065d Thumb Code 6 dadd.o(.text) - __aeabi_drsub 0x08000663 Thumb Code 6 dadd.o(.text) - __aeabi_d2ulz 0x08000669 Thumb Code 48 dfixul.o(.text) - __aeabi_cdrcmple 0x08000699 Thumb Code 48 cdrcmple.o(.text) - __scatterload 0x080006c9 Thumb Code 28 init.o(.text) - __scatterload_rt2 0x080006c9 Thumb Code 0 init.o(.text) - __aeabi_llsl 0x080006ed Thumb Code 30 llshl.o(.text) - _ll_shift_l 0x080006ed Thumb Code 0 llshl.o(.text) - __aeabi_lasr 0x0800070b Thumb Code 36 llsshr.o(.text) - _ll_sshift_r 0x0800070b Thumb Code 0 llsshr.o(.text) - BSP_SPI_GetHandle 0x08000731 Thumb Code 18 spi_1.o(i.BSP_SPI_GetHandle) - BSP_SPI_RegisterCallback 0x0800074d Thumb Code 22 spi_1.o(i.BSP_SPI_RegisterCallback) - BSP_SPI_Transmit 0x08000769 Thumb Code 42 spi_1.o(i.BSP_SPI_Transmit) - BSP_SPI_TransmitReceive 0x08000793 Thumb Code 46 spi_1.o(i.BSP_SPI_TransmitReceive) - BSP_UART_GetHandle 0x080007c1 Thumb Code 10 uart.o(i.BSP_UART_GetHandle) - BusFault_Handler 0x080007d1 Thumb Code 2 stm32f1xx_it.o(i.BusFault_Handler) - DMA1_Channel2_IRQHandler 0x080007d5 Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel2_IRQHandler) - DMA1_Channel3_IRQHandler 0x080007e1 Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel3_IRQHandler) - DMA1_Channel5_IRQHandler 0x080007ed Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel5_IRQHandler) - DMA1_Channel6_IRQHandler 0x080007f9 Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel6_IRQHandler) - DMA1_Channel7_IRQHandler 0x08000805 Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel7_IRQHandler) - DebugMon_Handler 0x0800083b Thumb Code 2 stm32f1xx_it.o(i.DebugMon_Handler) - EXTI15_10_IRQHandler 0x0800083d Thumb Code 8 stm32f1xx_it.o(i.EXTI15_10_IRQHandler) - EXTI9_5_IRQHandler 0x08000845 Thumb Code 24 stm32f1xx_it.o(i.EXTI9_5_IRQHandler) - Error_Handler 0x0800085d Thumb Code 4 main.o(i.Error_Handler) - GpioGetBitPos 0x08000861 Thumb Code 48 sx1281_driver_gpio.o(i.GpioGetBitPos) - GpioInit 0x08000891 Thumb Code 2 sx1281_driver_gpio.o(i.GpioInit) - GpioRead 0x08000893 Thumb Code 4 sx1281_driver_gpio.o(i.GpioRead) - GpioSetIrq 0x08000899 Thumb Code 50 sx1281_driver_gpio.o(i.GpioSetIrq) - GpioWrite 0x080008d1 Thumb Code 6 sx1281_driver_gpio.o(i.GpioWrite) - HAL_DMA_Abort 0x080008d7 Thumb Code 70 stm32f1xx_hal_dma.o(i.HAL_DMA_Abort) - HAL_DMA_Abort_IT 0x0800091d Thumb Code 148 stm32f1xx_hal_dma.o(i.HAL_DMA_Abort_IT) - HAL_DMA_IRQHandler 0x080009b5 Thumb Code 316 stm32f1xx_hal_dma.o(i.HAL_DMA_IRQHandler) - HAL_DMA_Init 0x08000b09 Thumb Code 84 stm32f1xx_hal_dma.o(i.HAL_DMA_Init) - HAL_DMA_Start_IT 0x08000b65 Thumb Code 112 stm32f1xx_hal_dma.o(i.HAL_DMA_Start_IT) - HAL_Delay 0x08000bd5 Thumb Code 32 stm32f1xx_hal.o(i.HAL_Delay) - HAL_GPIO_EXTI_Callback 0x08000bf9 Thumb Code 40 gpio_1.o(i.HAL_GPIO_EXTI_Callback) - HAL_GPIO_EXTI_IRQHandler 0x08000c25 Thumb Code 18 stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler) - HAL_GPIO_Init 0x08000c3d Thumb Code 446 stm32f1xx_hal_gpio.o(i.HAL_GPIO_Init) - HAL_GPIO_ReadPin 0x08000e1d Thumb Code 10 stm32f1xx_hal_gpio.o(i.HAL_GPIO_ReadPin) - HAL_GPIO_WritePin 0x08000e27 Thumb Code 10 stm32f1xx_hal_gpio.o(i.HAL_GPIO_WritePin) - HAL_GetTick 0x08000e31 Thumb Code 6 stm32f1xx_hal.o(i.HAL_GetTick) - HAL_HalfDuplex_Init 0x08000e3d Thumb Code 110 stm32f1xx_hal_uart.o(i.HAL_HalfDuplex_Init) - HAL_IncTick 0x08000ead Thumb Code 12 stm32f1xx_hal.o(i.HAL_IncTick) - HAL_Init 0x08000ebd Thumb Code 32 stm32f1xx_hal.o(i.HAL_Init) - HAL_InitTick 0x08000ee1 Thumb Code 54 stm32f1xx_hal.o(i.HAL_InitTick) - HAL_MspInit 0x08000f21 Thumb Code 52 stm32f1xx_hal_msp.o(i.HAL_MspInit) - HAL_NVIC_EnableIRQ 0x08000f5d Thumb Code 26 stm32f1xx_hal_cortex.o(i.HAL_NVIC_EnableIRQ) - HAL_NVIC_SetPriority 0x08000f79 Thumb Code 60 stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) - HAL_NVIC_SetPriorityGrouping 0x08000fb9 Thumb Code 26 stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriorityGrouping) - HAL_RCC_ClockConfig 0x08000fdd Thumb Code 280 stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) - HAL_RCC_GetPCLK1Freq 0x08001109 Thumb Code 20 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq) - HAL_RCC_GetPCLK2Freq 0x08001129 Thumb Code 20 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) - HAL_RCC_GetSysClockFreq 0x08001149 Thumb Code 64 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq) - HAL_RCC_OscConfig 0x0800119d Thumb Code 778 stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig) - HAL_SPI_ErrorCallback 0x080014bd Thumb Code 50 spi_1.o(i.HAL_SPI_ErrorCallback) - HAL_SPI_Init 0x080014f5 Thumb Code 178 stm32f1xx_hal_spi.o(i.HAL_SPI_Init) - HAL_SPI_MspInit 0x080015a9 Thumb Code 284 spi.o(i.HAL_SPI_MspInit) - HAL_SPI_RxCpltCallback 0x080016e1 Thumb Code 50 spi_1.o(i.HAL_SPI_RxCpltCallback) - HAL_SPI_RxHalfCpltCallback 0x08001719 Thumb Code 50 spi_1.o(i.HAL_SPI_RxHalfCpltCallback) - HAL_SPI_Transmit 0x08001751 Thumb Code 358 stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit) - HAL_SPI_TransmitReceive 0x080018b7 Thumb Code 496 stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive) - HAL_SPI_TransmitReceive_DMA 0x08001aa9 Thumb Code 252 stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) - HAL_SPI_Transmit_DMA 0x08001bb9 Thumb Code 190 stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) - HAL_SPI_TxCpltCallback 0x08001c85 Thumb Code 30 spi_1.o(i.HAL_SPI_TxCpltCallback) - HAL_SPI_TxHalfCpltCallback 0x08001ca9 Thumb Code 50 spi_1.o(i.HAL_SPI_TxHalfCpltCallback) - HAL_SPI_TxRxCpltCallback 0x08001ce1 Thumb Code 50 spi_1.o(i.HAL_SPI_TxRxCpltCallback) - HAL_SPI_TxRxHalfCpltCallback 0x08001d19 Thumb Code 50 spi_1.o(i.HAL_SPI_TxRxHalfCpltCallback) - HAL_SYSTICK_Config 0x08001d51 Thumb Code 40 stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config) - HAL_TIMEx_ConfigBreakDeadTime 0x08001d79 Thumb Code 84 stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_ConfigBreakDeadTime) - HAL_TIMEx_MasterConfigSynchronization 0x08001dcd Thumb Code 92 stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_MasterConfigSynchronization) - HAL_TIM_Base_Init 0x08001e35 Thumb Code 90 stm32f1xx_hal_tim.o(i.HAL_TIM_Base_Init) - HAL_TIM_Base_MspInit 0x08001e91 Thumb Code 30 tim.o(i.HAL_TIM_Base_MspInit) - HAL_TIM_ConfigClockSource 0x08001eb9 Thumb Code 220 stm32f1xx_hal_tim.o(i.HAL_TIM_ConfigClockSource) - HAL_TIM_MspPostInit 0x08001f95 Thumb Code 64 tim.o(i.HAL_TIM_MspPostInit) - HAL_TIM_PWM_ConfigChannel 0x08001fe1 Thumb Code 204 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_ConfigChannel) - HAL_TIM_PWM_Init 0x080020ad Thumb Code 90 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_Init) - HAL_TIM_PWM_MspInit 0x08002107 Thumb Code 2 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_MspInit) - HAL_UARTEx_RxEventCallback 0x08002109 Thumb Code 2 stm32f1xx_hal_uart.o(i.HAL_UARTEx_RxEventCallback) - HAL_UART_DMAStop 0x0800210b Thumb Code 112 stm32f1xx_hal_uart.o(i.HAL_UART_DMAStop) - HAL_UART_ErrorCallback 0x0800217d Thumb Code 34 uart.o(i.HAL_UART_ErrorCallback) - HAL_UART_IRQHandler 0x080021a5 Thumb Code 616 stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler) - HAL_UART_Init 0x08002411 Thumb Code 100 stm32f1xx_hal_uart.o(i.HAL_UART_Init) - HAL_UART_MspInit 0x08002475 Thumb Code 254 usart.o(i.HAL_UART_MspInit) - HAL_UART_Receive_DMA 0x0800258d Thumb Code 28 stm32f1xx_hal_uart.o(i.HAL_UART_Receive_DMA) - HAL_UART_RxCpltCallback 0x080025a9 Thumb Code 34 uart.o(i.HAL_UART_RxCpltCallback) - HAL_UART_RxHalfCpltCallback 0x080025d1 Thumb Code 34 uart.o(i.HAL_UART_RxHalfCpltCallback) - HAL_UART_Transmit 0x080025f9 Thumb Code 160 stm32f1xx_hal_uart.o(i.HAL_UART_Transmit) - HAL_UART_TxCpltCallback 0x08002699 Thumb Code 34 uart.o(i.HAL_UART_TxCpltCallback) - HardFault_Handler 0x080026c1 Thumb Code 2 stm32f1xx_it.o(i.HardFault_Handler) - MR16_Init 0x080026c5 Thumb Code 18 mr16.o(i.MR16_Init) - MSP_GetIRQn 0x080026dd Thumb Code 58 sx1281_driver_gpio.o(i.MSP_GetIRQn) - MX_DMA_Init 0x08002719 Thumb Code 104 dma.o(i.MX_DMA_Init) - MX_GPIO_Init 0x08002785 Thumb Code 258 gpio.o(i.MX_GPIO_Init) - MX_SPI1_Init 0x0800289d Thumb Code 62 spi.o(i.MX_SPI1_Init) - MX_SPI2_Init 0x080028e5 Thumb Code 62 spi.o(i.MX_SPI2_Init) - MX_TIM1_Init 0x0800292d Thumb Code 188 tim.o(i.MX_TIM1_Init) - MX_USART1_UART_Init 0x080029f1 Thumb Code 48 usart.o(i.MX_USART1_UART_Init) - MX_USART2_UART_Init 0x08002a29 Thumb Code 48 usart.o(i.MX_USART2_UART_Init) - MemManage_Handler 0x08002a61 Thumb Code 2 stm32f1xx_it.o(i.MemManage_Handler) - NMI_Handler 0x08002a63 Thumb Code 2 stm32f1xx_it.o(i.NMI_Handler) - OnRxDone 0x08002a65 Thumb Code 14 sx1281.o(i.OnRxDone) - OnRxError 0x08002a79 Thumb Code 14 sx1281.o(i.OnRxError) - OnRxTimeout 0x08002a8d Thumb Code 14 sx1281.o(i.OnRxTimeout) - OnTxDone 0x08002aa1 Thumb Code 14 sx1281.o(i.OnTxDone) - OnTxTimeout 0x08002ab5 Thumb Code 14 sx1281.o(i.OnTxTimeout) - PendSV_Handler 0x08002ac9 Thumb Code 2 stm32f1xx_it.o(i.PendSV_Handler) - SVC_Handler 0x08002da1 Thumb Code 2 stm32f1xx_it.o(i.SVC_Handler) - SX1281Calibrate 0x08002da3 Thumb Code 62 sx1281_driver.o(i.SX1281Calibrate) - SX1281ClearIrqStatus 0x08002de1 Thumb Code 24 sx1281_driver.o(i.SX1281ClearIrqStatus) - SX1281GetFirmwareVersion 0x08002df9 Thumb Code 26 sx1281_driver.o(i.SX1281GetFirmwareVersion) - SX1281GetFrequencyError 0x08002e15 Thumb Code 132 sx1281_driver.o(i.SX1281GetFrequencyError) - SX1281GetIrqStatus 0x08002ead Thumb Code 20 sx1281_driver.o(i.SX1281GetIrqStatus) - SX1281GetLoRaBandwidth 0x08002ec1 Thumb Code 38 sx1281_driver.o(i.SX1281GetLoRaBandwidth) - SX1281GetOpMode 0x08002efd Thumb Code 6 sx1281_driver.o(i.SX1281GetOpMode) - SX1281GetPacketStatus 0x08002f09 Thumb Code 526 sx1281_driver.o(i.SX1281GetPacketStatus) - SX1281GetPacketType 0x0800311d Thumb Code 6 sx1281_driver.o(i.SX1281GetPacketType) - SX1281GetPayload 0x08003129 Thumb Code 40 sx1281_driver.o(i.SX1281GetPayload) - SX1281GetRssiInst 0x08003151 Thumb Code 34 sx1281_driver.o(i.SX1281GetRssiInst) - SX1281GetRxBufferStatus 0x08003175 Thumb Code 68 sx1281_driver.o(i.SX1281GetRxBufferStatus) - SX1281GetStatus 0x080031bd Thumb Code 24 sx1281_driver.o(i.SX1281GetStatus) - SX1281HalGetDioStatus 0x080031d5 Thumb Code 32 sx1281_driver_hal.o(i.SX1281HalGetDioStatus) - SX1281HalInit 0x080031f9 Thumb Code 18 sx1281_driver_hal.o(i.SX1281HalInit) - SX1281HalIoIrqInit 0x0800320d Thumb Code 12 sx1281_driver_hal.o(i.SX1281HalIoIrqInit) - SX1281HalReadBuffer 0x0800321d Thumb Code 96 sx1281_driver_hal.o(i.SX1281HalReadBuffer) - SX1281HalReadCommand 0x08003289 Thumb Code 94 sx1281_driver_hal.o(i.SX1281HalReadCommand) - SX1281HalReadRegister 0x080032f5 Thumb Code 16 sx1281_driver_hal.o(i.SX1281HalReadRegister) - SX1281HalReadRegisters 0x08003305 Thumb Code 100 sx1281_driver_hal.o(i.SX1281HalReadRegisters) - SX1281HalReset 0x08003375 Thumb Code 46 sx1281_driver_hal.o(i.SX1281HalReset) - SX1281HalWaitOnBusy 0x080033a9 Thumb Code 22 sx1281_driver_hal.o(i.SX1281HalWaitOnBusy) - SX1281HalWriteBuffer 0x080033c5 Thumb Code 64 sx1281_driver_hal.o(i.SX1281HalWriteBuffer) - SX1281HalWriteCommand 0x0800340d Thumb Code 78 sx1281_driver_hal.o(i.SX1281HalWriteCommand) - SX1281HalWriteRegister 0x08003465 Thumb Code 12 sx1281_driver_hal.o(i.SX1281HalWriteRegister) - SX1281HalWriteRegisters 0x08003471 Thumb Code 72 sx1281_driver_hal.o(i.SX1281HalWriteRegisters) - SX1281Init 0x080034c1 Thumb Code 12 sx1281_driver.o(i.SX1281Init) - SX1281OnDioIrq 0x080034d1 Thumb Code 16 sx1281_driver.o(i.SX1281OnDioIrq) - SX1281ProcessIrqs 0x080034e5 Thumb Code 328 sx1281_driver.o(i.SX1281ProcessIrqs) - SX1281SendPayload 0x08003631 Thumb Code 18 sx1281_driver.o(i.SX1281SendPayload) - SX1281SetAutoFS 0x08003643 Thumb Code 14 sx1281_driver.o(i.SX1281SetAutoFS) - SX1281SetAutoTx 0x08003651 Thumb Code 26 sx1281_driver.o(i.SX1281SetAutoTx) - SX1281SetBleAccessAddress 0x0800366b Thumb Code 52 sx1281_driver.o(i.SX1281SetBleAccessAddress) - SX1281SetBleAdvertizerAccessAddress 0x080036a1 Thumb Code 6 sx1281_driver.o(i.SX1281SetBleAdvertizerAccessAddress) - SX1281SetBufferBaseAddresses 0x080036ad Thumb Code 22 sx1281_driver.o(i.SX1281SetBufferBaseAddresses) - SX1281SetCad 0x080036c5 Thumb Code 20 sx1281_driver.o(i.SX1281SetCad) - SX1281SetCadParams 0x080036dd Thumb Code 20 sx1281_driver.o(i.SX1281SetCadParams) - SX1281SetCrcPolynomial 0x080036f5 Thumb Code 36 sx1281_driver.o(i.SX1281SetCrcPolynomial) - SX1281SetCrcSeed 0x0800371d Thumb Code 36 sx1281_driver.o(i.SX1281SetCrcSeed) - SX1281SetDioIrqParams 0x08003745 Thumb Code 54 sx1281_driver.o(i.SX1281SetDioIrqParams) - SX1281SetFs 0x0800377d Thumb Code 20 sx1281_driver.o(i.SX1281SetFs) - SX1281SetInterruptMode 0x08003795 Thumb Code 8 sx1281_driver.o(i.SX1281SetInterruptMode) - SX1281SetLongPreamble 0x080037a1 Thumb Code 14 sx1281_driver.o(i.SX1281SetLongPreamble) - SX1281SetModulationParams 0x080037b1 Thumb Code 142 sx1281_driver.o(i.SX1281SetModulationParams) - SX1281SetPacketParams 0x08003845 Thumb Code 212 sx1281_driver.o(i.SX1281SetPacketParams) - SX1281SetPacketType 0x0800391d Thumb Code 22 sx1281_driver.o(i.SX1281SetPacketType) - SX1281SetPayload 0x08003939 Thumb Code 10 sx1281_driver.o(i.SX1281SetPayload) - SX1281SetPollingMode 0x08003945 Thumb Code 8 sx1281_driver.o(i.SX1281SetPollingMode) - SX1281SetRegistersDefault 0x08003951 Thumb Code 32 sx1281_driver.o(i.SX1281SetRegistersDefault) - SX1281SetRegulatorMode 0x08003975 Thumb Code 14 sx1281_driver.o(i.SX1281SetRegulatorMode) - SX1281SetRfFrequency 0x08003985 Thumb Code 46 sx1281_driver.o(i.SX1281SetRfFrequency) - SX1281SetRx 0x080039b9 Thumb Code 44 sx1281_driver.o(i.SX1281SetRx) - SX1281SetRxDutyCycle 0x080039e9 Thumb Code 44 sx1281_driver.o(i.SX1281SetRxDutyCycle) - SX1281SetSaveContext 0x08003a19 Thumb Code 10 sx1281_driver.o(i.SX1281SetSaveContext) - SX1281SetSleep 0x08003a25 Thumb Code 50 sx1281_driver.o(i.SX1281SetSleep) - SX1281SetStandby 0x08003a5d Thumb Code 30 sx1281_driver.o(i.SX1281SetStandby) - SX1281SetSyncWord 0x08003a81 Thumb Code 104 sx1281_driver.o(i.SX1281SetSyncWord) - SX1281SetSyncWordErrorTolerance 0x08003aed Thumb Code 34 sx1281_driver.o(i.SX1281SetSyncWordErrorTolerance) - SX1281SetTx 0x08003b11 Thumb Code 44 sx1281_driver.o(i.SX1281SetTx) - SX1281SetTxContinuousPreamble 0x08003b41 Thumb Code 10 sx1281_driver.o(i.SX1281SetTxContinuousPreamble) - SX1281SetTxContinuousWave 0x08003b4b Thumb Code 10 sx1281_driver.o(i.SX1281SetTxContinuousWave) - SX1281SetTxParams 0x08003b55 Thumb Code 24 sx1281_driver.o(i.SX1281SetTxParams) - SX1281SetWhiteningSeed 0x08003b6d Thumb Code 26 sx1281_driver.o(i.SX1281SetWhiteningSeed) - SX1281_BSPInit 0x08003b8d Thumb Code 14 sx1281_header.o(i.SX1281_BSPInit) - SX1281_Callback 0x08003b9d Thumb Code 170 mr16.o(i.SX1281_Callback) - SX1281_GetState 0x08003ce5 Thumb Code 20 sx1281.o(i.SX1281_GetState) - SX1281_Init 0x08003cfd Thumb Code 582 sx1281.o(i.SX1281_Init) - SX1281_Running 0x08004041 Thumb Code 24 sx1281.o(i.SX1281_Running) - SX1281_SetRXSuccessive 0x08004059 Thumb Code 30 sx1281.o(i.SX1281_SetRXSuccessive) - SX1281_SetTX 0x08004085 Thumb Code 42 sx1281.o(i.SX1281_SetTX) - SpiIn 0x080040bd Thumb Code 18 sx1281_driver_spi.o(i.SpiIn) - SpiInOut 0x080040d5 Thumb Code 26 sx1281_driver_spi.o(i.SpiInOut) - SpiInit 0x080040f5 Thumb Code 26 sx1281_driver_spi.o(i.SpiInit) - SysTick_Handler 0x08004119 Thumb Code 4 stm32f1xx_it.o(i.SysTick_Handler) - SystemClock_Config 0x0800411d Thumb Code 96 main.o(i.SystemClock_Config) - SystemInit 0x0800417d Thumb Code 2 system_stm32f1xx.o(i.SystemInit) - TIM_Base_SetConfig 0x08004181 Thumb Code 108 stm32f1xx_hal_tim.o(i.TIM_Base_SetConfig) - TIM_ETR_SetConfig 0x080041f9 Thumb Code 20 stm32f1xx_hal_tim.o(i.TIM_ETR_SetConfig) - TIM_OC2_SetConfig 0x0800426d Thumb Code 84 stm32f1xx_hal_tim.o(i.TIM_OC2_SetConfig) - UART_Start_Receive_DMA 0x080046a1 Thumb Code 130 stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA) - USART2_IRQHandler 0x080047a5 Thumb Code 18 stm32f1xx_it.o(i.USART2_IRQHandler) - USAR_UART_IDLECallback 0x080047bd Thumb Code 104 usart.o(i.USAR_UART_IDLECallback) - USER_UART_IRQHandler 0x08004851 Thumb Code 46 usart.o(i.USER_UART_IRQHandler) - UsageFault_Handler 0x080048a1 Thumb Code 2 stm32f1xx_it.o(i.UsageFault_Handler) - __0printf 0x080048a5 Thumb Code 22 printfa.o(i.__0printf) - __1printf 0x080048a5 Thumb Code 0 printfa.o(i.__0printf) - __2printf 0x080048a5 Thumb Code 0 printfa.o(i.__0printf) - __c89printf 0x080048a5 Thumb Code 0 printfa.o(i.__0printf) - printf 0x080048a5 Thumb Code 0 printfa.o(i.__0printf) - __scatterload_copy 0x080048e5 Thumb Code 14 handlers.o(i.__scatterload_copy) - __scatterload_null 0x080048f3 Thumb Code 2 handlers.o(i.__scatterload_null) - __scatterload_zeroinit 0x080048f5 Thumb Code 14 handlers.o(i.__scatterload_zeroinit) - fputc 0x0800518f Thumb Code 24 sx1281_header.o(i.fputc) - main 0x080051a9 Thumb Code 60 main.o(i.main) - AHBPrescTable 0x08005216 Data 16 system_stm32f1xx.o(.constdata) - APBPrescTable 0x08005226 Data 8 system_stm32f1xx.o(.constdata) - bleConfigList 0x0800524c Data 9 sx1281.o(.constdata) - loraConfigList 0x08005255 Data 24 sx1281.o(.constdata) - gfskConfigList 0x0800526d Data 12 sx1281.o(.constdata) - flrcConfigList 0x08005279 Data 12 sx1281.o(.constdata) - RadioRegsInit 0x08005286 Data 4 sx1281_driver.o(.constdata) - Radio 0x0800528c Data 228 sx1281_driver_hal.o(.constdata) - Region$$Table$$Base 0x08005378 Number 0 anon$$obj.o(Region$$Table) - Region$$Table$$Limit 0x08005398 Number 0 anon$$obj.o(Region$$Table) - data_length 0x20000000 Data 1 usart.o(.data) - uwTickFreq 0x20000004 Data 1 stm32f1xx_hal.o(.data) - uwTickPrio 0x20000008 Data 4 stm32f1xx_hal.o(.data) - uwTick 0x2000000c Data 4 stm32f1xx_hal.o(.data) - SystemCoreClock 0x20000010 Data 4 system_stm32f1xx.o(.data) - radioRXSize 0x20000014 Data 1 sx1281.o(.data) - sx1281_state 0x20000015 Data 1 sx1281.o(.data) - RxIrqMask 0x20000016 Data 2 sx1281.o(.data) - TxIrqMask 0x20000018 Data 2 sx1281.o(.data) - Callbacks 0x2000001c Data 32 sx1281.o(.data) - DioIrq 0x20000044 Data 4 sx1281_driver.o(.data) - num 0x20000050 Data 4 mr16.o(.data) - a 0x20000054 Data 4 mr16.o(.data) - __stdout 0x20000058 Data 4 stdout.o(.data) - hspi1 0x2000005c Data 88 spi.o(.bss) - hspi2 0x200000b4 Data 88 spi.o(.bss) - hdma_spi1_tx 0x2000010c Data 68 spi.o(.bss) - hdma_spi1_rx 0x20000150 Data 68 spi.o(.bss) - hdma_spi2_tx 0x20000194 Data 68 spi.o(.bss) - htim1 0x200001d8 Data 72 tim.o(.bss) - huart1 0x20000220 Data 72 usart.o(.bss) - huart2 0x20000268 Data 72 usart.o(.bss) - hdma_usart2_rx 0x200002b0 Data 68 usart.o(.bss) - hdma_usart2_tx 0x200002f4 Data 68 usart.o(.bss) - uart_buffer 0x20000338 Data 255 usart.o(.bss) - uart_data 0x20000437 Data 255 usart.o(.bss) - radioRXBuffer 0x200005dc Data 255 sx1281.o(.bss) - radio 0x20002720 Data 344 mr16.o(.bss) - __initial_sp 0x20002c78 Data 0 startup_stm32f103xb.o(STACK) + SVC_Handler 0x08000105 Thumb Code 32 port.o(.emb_text) + __asm___6_port_c_39a90d8d__prvStartFirstTask 0x08000129 Thumb Code 28 port.o(.emb_text) + PendSV_Handler 0x08000149 Thumb Code 72 port.o(.emb_text) + vPortGetIPSR 0x08000195 Thumb Code 6 port.o(.emb_text) + Reset_Handler 0x0800019d Thumb Code 8 startup_stm32f103xb.o(.text) + ADC1_2_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + CAN1_RX1_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + CAN1_SCE_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + DMA1_Channel1_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + DMA1_Channel4_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + EXTI0_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + EXTI1_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + EXTI2_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + EXTI3_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + EXTI4_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + FLASH_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + I2C1_ER_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + I2C1_EV_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + I2C2_ER_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + I2C2_EV_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + PVD_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + RCC_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + RTC_Alarm_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + RTC_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + SPI1_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + SPI2_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + TAMPER_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + TIM1_BRK_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + TIM1_CC_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + TIM1_TRG_COM_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + TIM1_UP_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + TIM2_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + TIM3_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + TIM4_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + USART1_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + USART3_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + USBWakeUp_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + USB_HP_CAN1_TX_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + USB_LP_CAN1_RX0_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + WWDG_IRQHandler 0x080001b7 Thumb Code 0 startup_stm32f103xb.o(.text) + __aeabi_llsr 0x080001c1 Thumb Code 32 llushr.o(.text) + _ll_ushift_r 0x080001c1 Thumb Code 0 llushr.o(.text) + __aeabi_memcpy 0x080001e1 Thumb Code 36 memcpya.o(.text) + __aeabi_memcpy4 0x080001e1 Thumb Code 0 memcpya.o(.text) + __aeabi_memcpy8 0x080001e1 Thumb Code 0 memcpya.o(.text) + __aeabi_memset 0x08000205 Thumb Code 14 memseta.o(.text) + __aeabi_memset4 0x08000205 Thumb Code 0 memseta.o(.text) + __aeabi_memset8 0x08000205 Thumb Code 0 memseta.o(.text) + __aeabi_memclr 0x08000213 Thumb Code 4 memseta.o(.text) + __aeabi_memclr4 0x08000213 Thumb Code 0 memseta.o(.text) + __aeabi_memclr8 0x08000213 Thumb Code 0 memseta.o(.text) + memset 0x08000217 Thumb Code 18 memseta.o(.text) + strncpy 0x08000229 Thumb Code 24 strncpy.o(.text) + strlen 0x08000241 Thumb Code 14 strlen.o(.text) + strcmp 0x0800024f Thumb Code 28 strcmp.o(.text) + strcpy 0x0800026b Thumb Code 18 strcpy.o(.text) + strncmp 0x0800027d Thumb Code 30 strncmp.o(.text) + strcasecmp 0x0800029b Thumb Code 42 strcasecmp.o(.text) + __0sscanf 0x080002c5 Thumb Code 48 __0sscanf.o(.text) + _scanf_int 0x080002fd Thumb Code 332 _scanf_int.o(.text) + __aeabi_dmul 0x08000449 Thumb Code 228 dmul.o(.text) + __aeabi_ddiv 0x0800052d Thumb Code 222 ddiv.o(.text) + __aeabi_i2d 0x0800060b Thumb Code 34 dflti.o(.text) + __aeabi_ui2d 0x0800062d Thumb Code 26 dfltui.o(.text) + __aeabi_d2uiz 0x08000647 Thumb Code 50 dfixui.o(.text) + __aeabi_uidiv 0x08000679 Thumb Code 0 uidiv.o(.text) + __aeabi_uidivmod 0x08000679 Thumb Code 44 uidiv.o(.text) + __aeabi_uldivmod 0x080006a5 Thumb Code 98 uldiv.o(.text) + tolower 0x08000707 Thumb Code 12 tolower.o(.text) + _chval 0x08000713 Thumb Code 28 _chval.o(.text) + __vfscanf_char 0x0800073d Thumb Code 20 scanf_char.o(.text) + _sgetc 0x08000759 Thumb Code 30 _sgetc.o(.text) + _sbackspace 0x08000777 Thumb Code 34 _sgetc.o(.text) + __I$use$fp 0x08000799 Thumb Code 0 iusefp.o(.text) + _double_round 0x08000799 Thumb Code 30 depilogue.o(.text) + _double_epilogue 0x080007b7 Thumb Code 156 depilogue.o(.text) + __aeabi_dadd 0x08000853 Thumb Code 322 dadd.o(.text) + __aeabi_dsub 0x08000995 Thumb Code 6 dadd.o(.text) + __aeabi_drsub 0x0800099b Thumb Code 6 dadd.o(.text) + __aeabi_d2ulz 0x080009a1 Thumb Code 48 dfixul.o(.text) + __aeabi_cdrcmple 0x080009d1 Thumb Code 48 cdrcmple.o(.text) + __scatterload 0x08000a01 Thumb Code 28 init.o(.text) + __scatterload_rt2 0x08000a01 Thumb Code 0 init.o(.text) + __aeabi_llsl 0x08000a25 Thumb Code 30 llshl.o(.text) + _ll_shift_l 0x08000a25 Thumb Code 0 llshl.o(.text) + __aeabi_lasr 0x08000a43 Thumb Code 36 llsshr.o(.text) + _ll_sshift_r 0x08000a43 Thumb Code 0 llsshr.o(.text) + isspace 0x08000a67 Thumb Code 10 isspace_c.o(.text) + __vfscanf 0x08000a71 Thumb Code 810 _scanf.o(.text) + __ctype_lookup 0x08000da1 Thumb Code 34 ctype_c.o(.text) + BSP_SPI_GetHandle 0x08000dc9 Thumb Code 18 spi_1.o(i.BSP_SPI_GetHandle) + BSP_SPI_GetState 0x08000de5 Thumb Code 24 spi_1.o(i.BSP_SPI_GetState) + BSP_SPI_RegisterCallback 0x08000dfd Thumb Code 22 spi_1.o(i.BSP_SPI_RegisterCallback) + BSP_SPI_Transmit 0x08000e19 Thumb Code 42 spi_1.o(i.BSP_SPI_Transmit) + BSP_SPI_TransmitReceive 0x08000e43 Thumb Code 46 spi_1.o(i.BSP_SPI_TransmitReceive) + BSP_UART_GetHandle 0x08000e71 Thumb Code 18 uart.o(i.BSP_UART_GetHandle) + BusFault_Handler 0x08000e8d Thumb Code 2 stm32f1xx_it.o(i.BusFault_Handler) + DMA1_Channel2_IRQHandler 0x08000e91 Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel2_IRQHandler) + DMA1_Channel3_IRQHandler 0x08000e9d Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel3_IRQHandler) + DMA1_Channel5_IRQHandler 0x08000ea9 Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel5_IRQHandler) + DMA1_Channel6_IRQHandler 0x08000eb5 Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel6_IRQHandler) + DMA1_Channel7_IRQHandler 0x08000ec1 Thumb Code 6 stm32f1xx_it.o(i.DMA1_Channel7_IRQHandler) + DebugMon_Handler 0x08000ef7 Thumb Code 2 stm32f1xx_it.o(i.DebugMon_Handler) + EXTI15_10_IRQHandler 0x08000ef9 Thumb Code 8 stm32f1xx_it.o(i.EXTI15_10_IRQHandler) + EXTI9_5_IRQHandler 0x08000f01 Thumb Code 24 stm32f1xx_it.o(i.EXTI9_5_IRQHandler) + Error_Handler 0x08000f19 Thumb Code 4 main.o(i.Error_Handler) + FreeRTOS_CLIGetParameter 0x08000f1d Thumb Code 70 freertos_cli.o(i.FreeRTOS_CLIGetParameter) + FreeRTOS_CLIProcessCommand 0x08000f65 Thumb Code 194 freertos_cli.o(i.FreeRTOS_CLIProcessCommand) + FreeRTOS_CLIRegisterCommand 0x08001035 Thumb Code 74 freertos_cli.o(i.FreeRTOS_CLIRegisterCommand) + GpioGetBitPos 0x08001085 Thumb Code 48 sx1281_driver_gpio.o(i.GpioGetBitPos) + GpioInit 0x080010b5 Thumb Code 2 sx1281_driver_gpio.o(i.GpioInit) + GpioRead 0x080010b7 Thumb Code 4 sx1281_driver_gpio.o(i.GpioRead) + GpioSetIrq 0x080010bd Thumb Code 50 sx1281_driver_gpio.o(i.GpioSetIrq) + GpioWrite 0x080010f5 Thumb Code 6 sx1281_driver_gpio.o(i.GpioWrite) + HAL_DMA_Abort 0x080010fb Thumb Code 70 stm32f1xx_hal_dma.o(i.HAL_DMA_Abort) + HAL_DMA_Abort_IT 0x08001141 Thumb Code 148 stm32f1xx_hal_dma.o(i.HAL_DMA_Abort_IT) + HAL_DMA_IRQHandler 0x080011d9 Thumb Code 316 stm32f1xx_hal_dma.o(i.HAL_DMA_IRQHandler) + HAL_DMA_Init 0x0800132d Thumb Code 84 stm32f1xx_hal_dma.o(i.HAL_DMA_Init) + HAL_DMA_Start_IT 0x08001389 Thumb Code 112 stm32f1xx_hal_dma.o(i.HAL_DMA_Start_IT) + HAL_Delay 0x080013f9 Thumb Code 32 stm32f1xx_hal.o(i.HAL_Delay) + HAL_GPIO_EXTI_Callback 0x0800141d Thumb Code 40 gpio_1.o(i.HAL_GPIO_EXTI_Callback) + HAL_GPIO_EXTI_IRQHandler 0x08001449 Thumb Code 18 stm32f1xx_hal_gpio.o(i.HAL_GPIO_EXTI_IRQHandler) + HAL_GPIO_Init 0x08001461 Thumb Code 446 stm32f1xx_hal_gpio.o(i.HAL_GPIO_Init) + HAL_GPIO_ReadPin 0x08001641 Thumb Code 10 stm32f1xx_hal_gpio.o(i.HAL_GPIO_ReadPin) + HAL_GPIO_WritePin 0x0800164b Thumb Code 10 stm32f1xx_hal_gpio.o(i.HAL_GPIO_WritePin) + HAL_GetTick 0x08001655 Thumb Code 6 stm32f1xx_hal.o(i.HAL_GetTick) + HAL_HalfDuplex_Init 0x08001661 Thumb Code 110 stm32f1xx_hal_uart.o(i.HAL_HalfDuplex_Init) + HAL_IncTick 0x080016d1 Thumb Code 12 stm32f1xx_hal.o(i.HAL_IncTick) + HAL_Init 0x080016e1 Thumb Code 32 stm32f1xx_hal.o(i.HAL_Init) + HAL_InitTick 0x08001705 Thumb Code 54 stm32f1xx_hal.o(i.HAL_InitTick) + HAL_MspInit 0x08001745 Thumb Code 62 stm32f1xx_hal_msp.o(i.HAL_MspInit) + HAL_NVIC_EnableIRQ 0x0800178d Thumb Code 26 stm32f1xx_hal_cortex.o(i.HAL_NVIC_EnableIRQ) + HAL_NVIC_SetPriority 0x080017a9 Thumb Code 60 stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriority) + HAL_NVIC_SetPriorityGrouping 0x080017e9 Thumb Code 26 stm32f1xx_hal_cortex.o(i.HAL_NVIC_SetPriorityGrouping) + HAL_RCC_ClockConfig 0x0800180d Thumb Code 280 stm32f1xx_hal_rcc.o(i.HAL_RCC_ClockConfig) + HAL_RCC_GetPCLK1Freq 0x08001939 Thumb Code 20 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq) + HAL_RCC_GetPCLK2Freq 0x08001959 Thumb Code 20 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq) + HAL_RCC_GetSysClockFreq 0x08001979 Thumb Code 64 stm32f1xx_hal_rcc.o(i.HAL_RCC_GetSysClockFreq) + HAL_RCC_OscConfig 0x080019cd Thumb Code 778 stm32f1xx_hal_rcc.o(i.HAL_RCC_OscConfig) + HAL_SPI_ErrorCallback 0x08001ced Thumb Code 50 spi_1.o(i.HAL_SPI_ErrorCallback) + HAL_SPI_GetState 0x08001d25 Thumb Code 6 stm32f1xx_hal_spi.o(i.HAL_SPI_GetState) + HAL_SPI_Init 0x08001d2b Thumb Code 178 stm32f1xx_hal_spi.o(i.HAL_SPI_Init) + HAL_SPI_MspInit 0x08001ddd Thumb Code 284 spi.o(i.HAL_SPI_MspInit) + HAL_SPI_RxCpltCallback 0x08001f15 Thumb Code 50 spi_1.o(i.HAL_SPI_RxCpltCallback) + HAL_SPI_RxHalfCpltCallback 0x08001f4d Thumb Code 50 spi_1.o(i.HAL_SPI_RxHalfCpltCallback) + HAL_SPI_Transmit 0x08001f85 Thumb Code 358 stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit) + HAL_SPI_TransmitReceive 0x080020eb Thumb Code 496 stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive) + HAL_SPI_TransmitReceive_DMA 0x080022dd Thumb Code 252 stm32f1xx_hal_spi.o(i.HAL_SPI_TransmitReceive_DMA) + HAL_SPI_Transmit_DMA 0x080023ed Thumb Code 190 stm32f1xx_hal_spi.o(i.HAL_SPI_Transmit_DMA) + HAL_SPI_TxCpltCallback 0x080024b9 Thumb Code 30 spi_1.o(i.HAL_SPI_TxCpltCallback) + HAL_SPI_TxHalfCpltCallback 0x080024dd Thumb Code 50 spi_1.o(i.HAL_SPI_TxHalfCpltCallback) + HAL_SPI_TxRxCpltCallback 0x08002515 Thumb Code 50 spi_1.o(i.HAL_SPI_TxRxCpltCallback) + HAL_SPI_TxRxHalfCpltCallback 0x0800254d Thumb Code 50 spi_1.o(i.HAL_SPI_TxRxHalfCpltCallback) + HAL_SYSTICK_Config 0x08002585 Thumb Code 40 stm32f1xx_hal_cortex.o(i.HAL_SYSTICK_Config) + HAL_TIMEx_ConfigBreakDeadTime 0x080025ad Thumb Code 84 stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_ConfigBreakDeadTime) + HAL_TIMEx_MasterConfigSynchronization 0x08002601 Thumb Code 92 stm32f1xx_hal_tim_ex.o(i.HAL_TIMEx_MasterConfigSynchronization) + HAL_TIM_Base_Init 0x08002669 Thumb Code 90 stm32f1xx_hal_tim.o(i.HAL_TIM_Base_Init) + HAL_TIM_Base_MspInit 0x080026c5 Thumb Code 30 tim.o(i.HAL_TIM_Base_MspInit) + HAL_TIM_ConfigClockSource 0x080026ed Thumb Code 220 stm32f1xx_hal_tim.o(i.HAL_TIM_ConfigClockSource) + HAL_TIM_MspPostInit 0x080027c9 Thumb Code 64 tim.o(i.HAL_TIM_MspPostInit) + HAL_TIM_PWM_ConfigChannel 0x08002815 Thumb Code 204 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_ConfigChannel) + HAL_TIM_PWM_Init 0x080028e1 Thumb Code 90 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_Init) + HAL_TIM_PWM_MspInit 0x0800293b Thumb Code 2 stm32f1xx_hal_tim.o(i.HAL_TIM_PWM_MspInit) + HAL_UARTEx_RxEventCallback 0x0800293d Thumb Code 2 stm32f1xx_hal_uart.o(i.HAL_UARTEx_RxEventCallback) + HAL_UART_DMAStop 0x0800293f Thumb Code 112 stm32f1xx_hal_uart.o(i.HAL_UART_DMAStop) + HAL_UART_ErrorCallback 0x080029b1 Thumb Code 34 uart.o(i.HAL_UART_ErrorCallback) + HAL_UART_IRQHandler 0x080029d9 Thumb Code 616 stm32f1xx_hal_uart.o(i.HAL_UART_IRQHandler) + HAL_UART_Init 0x08002c45 Thumb Code 100 stm32f1xx_hal_uart.o(i.HAL_UART_Init) + HAL_UART_MspInit 0x08002ca9 Thumb Code 254 usart.o(i.HAL_UART_MspInit) + HAL_UART_Receive_DMA 0x08002dc1 Thumb Code 28 stm32f1xx_hal_uart.o(i.HAL_UART_Receive_DMA) + HAL_UART_RxCpltCallback 0x08002ddd Thumb Code 34 uart.o(i.HAL_UART_RxCpltCallback) + HAL_UART_RxHalfCpltCallback 0x08002e05 Thumb Code 34 uart.o(i.HAL_UART_RxHalfCpltCallback) + HAL_UART_Transmit 0x08002e2d Thumb Code 160 stm32f1xx_hal_uart.o(i.HAL_UART_Transmit) + HAL_UART_TxCpltCallback 0x08002ecd Thumb Code 34 uart.o(i.HAL_UART_TxCpltCallback) + HardFault_Handler 0x08002ef5 Thumb Code 2 stm32f1xx_it.o(i.HardFault_Handler) + LCD_Clear 0x08002ef7 Thumb Code 82 lcd.o(i.LCD_Clear) + LCD_DrawBitmap 0x08002f49 Thumb Code 128 lcd.o(i.LCD_DrawBitmap) + LCD_DrawChar 0x08002fc9 Thumb Code 342 lcd.o(i.LCD_DrawChar) + LCD_DrawPoint 0x0800312d Thumb Code 88 lcd.o(i.LCD_DrawPoint) + LCD_DrawString 0x08003189 Thumb Code 110 lcd.o(i.LCD_DrawString) + LCD_Init 0x080031f9 Thumb Code 304 lcd.o(i.LCD_Init) + MR16_CLI_Init 0x080034dd Thumb Code 20 mr16.o(i.MR16_CLI_Init) + MR16_Init 0x080034f5 Thumb Code 90 mr16.o(i.MR16_Init) + MR16_Main 0x08003565 Thumb Code 224 mr16.o(i.MR16_Main) + MR16_NotifyUARTIdle 0x08003661 Thumb Code 8 mr16.o(i.MR16_NotifyUARTIdle) + MSP_GetIRQn 0x0800366d Thumb Code 58 sx1281_driver_gpio.o(i.MSP_GetIRQn) + MX_DMA_Init 0x080036a9 Thumb Code 104 dma.o(i.MX_DMA_Init) + MX_FREERTOS_Init 0x08003715 Thumb Code 30 freertos.o(i.MX_FREERTOS_Init) + MX_GPIO_Init 0x08003749 Thumb Code 258 gpio.o(i.MX_GPIO_Init) + MX_SPI1_Init 0x08003861 Thumb Code 62 spi.o(i.MX_SPI1_Init) + MX_SPI2_Init 0x080038a9 Thumb Code 62 spi.o(i.MX_SPI2_Init) + MX_TIM1_Init 0x080038f1 Thumb Code 188 tim.o(i.MX_TIM1_Init) + MX_USART1_UART_Init 0x080039b5 Thumb Code 48 usart.o(i.MX_USART1_UART_Init) + MX_USART2_UART_Init 0x080039ed Thumb Code 48 usart.o(i.MX_USART2_UART_Init) + MemManage_Handler 0x08003a25 Thumb Code 2 stm32f1xx_it.o(i.MemManage_Handler) + NMI_Handler 0x08003a27 Thumb Code 2 stm32f1xx_it.o(i.NMI_Handler) + OnRxDone 0x08003a29 Thumb Code 14 sx1281.o(i.OnRxDone) + OnRxError 0x08003a3d Thumb Code 14 sx1281.o(i.OnRxError) + OnRxTimeout 0x08003a51 Thumb Code 14 sx1281.o(i.OnRxTimeout) + OnTxDone 0x08003a65 Thumb Code 14 sx1281.o(i.OnTxDone) + OnTxTimeout 0x08003a79 Thumb Code 14 sx1281.o(i.OnTxTimeout) + SX1281Calibrate 0x08003d61 Thumb Code 62 sx1281_driver.o(i.SX1281Calibrate) + SX1281ClearIrqStatus 0x08003d9f Thumb Code 24 sx1281_driver.o(i.SX1281ClearIrqStatus) + SX1281GetFirmwareVersion 0x08003db7 Thumb Code 26 sx1281_driver.o(i.SX1281GetFirmwareVersion) + SX1281GetFrequencyError 0x08003dd1 Thumb Code 132 sx1281_driver.o(i.SX1281GetFrequencyError) + SX1281GetIrqStatus 0x08003e69 Thumb Code 20 sx1281_driver.o(i.SX1281GetIrqStatus) + SX1281GetLoRaBandwidth 0x08003e7d Thumb Code 38 sx1281_driver.o(i.SX1281GetLoRaBandwidth) + SX1281GetOpMode 0x08003eb9 Thumb Code 6 sx1281_driver.o(i.SX1281GetOpMode) + SX1281GetPacketStatus 0x08003ec5 Thumb Code 526 sx1281_driver.o(i.SX1281GetPacketStatus) + SX1281GetPacketType 0x080040d9 Thumb Code 6 sx1281_driver.o(i.SX1281GetPacketType) + SX1281GetPayload 0x080040e5 Thumb Code 40 sx1281_driver.o(i.SX1281GetPayload) + SX1281GetRssiInst 0x0800410d Thumb Code 34 sx1281_driver.o(i.SX1281GetRssiInst) + SX1281GetRxBufferStatus 0x08004131 Thumb Code 68 sx1281_driver.o(i.SX1281GetRxBufferStatus) + SX1281GetStatus 0x08004179 Thumb Code 24 sx1281_driver.o(i.SX1281GetStatus) + SX1281HalGetDioStatus 0x08004191 Thumb Code 32 sx1281_driver_hal.o(i.SX1281HalGetDioStatus) + SX1281HalInit 0x080041b5 Thumb Code 18 sx1281_driver_hal.o(i.SX1281HalInit) + SX1281HalIoIrqInit 0x080041c9 Thumb Code 12 sx1281_driver_hal.o(i.SX1281HalIoIrqInit) + SX1281HalReadBuffer 0x080041d9 Thumb Code 96 sx1281_driver_hal.o(i.SX1281HalReadBuffer) + SX1281HalReadCommand 0x08004245 Thumb Code 94 sx1281_driver_hal.o(i.SX1281HalReadCommand) + SX1281HalReadRegister 0x080042b1 Thumb Code 16 sx1281_driver_hal.o(i.SX1281HalReadRegister) + SX1281HalReadRegisters 0x080042c1 Thumb Code 100 sx1281_driver_hal.o(i.SX1281HalReadRegisters) + SX1281HalReset 0x08004331 Thumb Code 46 sx1281_driver_hal.o(i.SX1281HalReset) + SX1281HalWaitOnBusy 0x08004365 Thumb Code 22 sx1281_driver_hal.o(i.SX1281HalWaitOnBusy) + SX1281HalWriteBuffer 0x08004381 Thumb Code 64 sx1281_driver_hal.o(i.SX1281HalWriteBuffer) + SX1281HalWriteCommand 0x080043c9 Thumb Code 78 sx1281_driver_hal.o(i.SX1281HalWriteCommand) + SX1281HalWriteRegister 0x08004421 Thumb Code 12 sx1281_driver_hal.o(i.SX1281HalWriteRegister) + SX1281HalWriteRegisters 0x0800442d Thumb Code 72 sx1281_driver_hal.o(i.SX1281HalWriteRegisters) + SX1281Init 0x0800447d Thumb Code 12 sx1281_driver.o(i.SX1281Init) + SX1281OnDioIrq 0x0800448d Thumb Code 16 sx1281_driver.o(i.SX1281OnDioIrq) + SX1281ProcessIrqs 0x080044a1 Thumb Code 328 sx1281_driver.o(i.SX1281ProcessIrqs) + SX1281SendPayload 0x080045ed Thumb Code 18 sx1281_driver.o(i.SX1281SendPayload) + SX1281SetAutoFS 0x080045ff Thumb Code 14 sx1281_driver.o(i.SX1281SetAutoFS) + SX1281SetAutoTx 0x0800460d Thumb Code 26 sx1281_driver.o(i.SX1281SetAutoTx) + SX1281SetBleAccessAddress 0x08004627 Thumb Code 52 sx1281_driver.o(i.SX1281SetBleAccessAddress) + SX1281SetBleAdvertizerAccessAddress 0x0800465d Thumb Code 6 sx1281_driver.o(i.SX1281SetBleAdvertizerAccessAddress) + SX1281SetBufferBaseAddresses 0x08004669 Thumb Code 22 sx1281_driver.o(i.SX1281SetBufferBaseAddresses) + SX1281SetCad 0x08004681 Thumb Code 20 sx1281_driver.o(i.SX1281SetCad) + SX1281SetCadParams 0x08004699 Thumb Code 20 sx1281_driver.o(i.SX1281SetCadParams) + SX1281SetCrcPolynomial 0x080046b1 Thumb Code 36 sx1281_driver.o(i.SX1281SetCrcPolynomial) + SX1281SetCrcSeed 0x080046d9 Thumb Code 36 sx1281_driver.o(i.SX1281SetCrcSeed) + SX1281SetDioIrqParams 0x08004701 Thumb Code 54 sx1281_driver.o(i.SX1281SetDioIrqParams) + SX1281SetFs 0x08004739 Thumb Code 20 sx1281_driver.o(i.SX1281SetFs) + SX1281SetInterruptMode 0x08004751 Thumb Code 8 sx1281_driver.o(i.SX1281SetInterruptMode) + SX1281SetLongPreamble 0x0800475d Thumb Code 14 sx1281_driver.o(i.SX1281SetLongPreamble) + SX1281SetModulationParams 0x0800476d Thumb Code 142 sx1281_driver.o(i.SX1281SetModulationParams) + SX1281SetPacketParams 0x08004801 Thumb Code 212 sx1281_driver.o(i.SX1281SetPacketParams) + SX1281SetPacketType 0x080048d9 Thumb Code 22 sx1281_driver.o(i.SX1281SetPacketType) + SX1281SetPayload 0x080048f5 Thumb Code 10 sx1281_driver.o(i.SX1281SetPayload) + SX1281SetPollingMode 0x08004901 Thumb Code 8 sx1281_driver.o(i.SX1281SetPollingMode) + SX1281SetRegistersDefault 0x0800490d Thumb Code 32 sx1281_driver.o(i.SX1281SetRegistersDefault) + SX1281SetRegulatorMode 0x08004931 Thumb Code 14 sx1281_driver.o(i.SX1281SetRegulatorMode) + SX1281SetRfFrequency 0x08004941 Thumb Code 46 sx1281_driver.o(i.SX1281SetRfFrequency) + SX1281SetRx 0x08004975 Thumb Code 44 sx1281_driver.o(i.SX1281SetRx) + SX1281SetRxDutyCycle 0x080049a5 Thumb Code 44 sx1281_driver.o(i.SX1281SetRxDutyCycle) + SX1281SetSaveContext 0x080049d5 Thumb Code 10 sx1281_driver.o(i.SX1281SetSaveContext) + SX1281SetSleep 0x080049e1 Thumb Code 50 sx1281_driver.o(i.SX1281SetSleep) + SX1281SetStandby 0x08004a19 Thumb Code 30 sx1281_driver.o(i.SX1281SetStandby) + SX1281SetSyncWord 0x08004a3d Thumb Code 104 sx1281_driver.o(i.SX1281SetSyncWord) + SX1281SetSyncWordErrorTolerance 0x08004aa9 Thumb Code 34 sx1281_driver.o(i.SX1281SetSyncWordErrorTolerance) + SX1281SetTx 0x08004acd Thumb Code 44 sx1281_driver.o(i.SX1281SetTx) + SX1281SetTxContinuousPreamble 0x08004afd Thumb Code 10 sx1281_driver.o(i.SX1281SetTxContinuousPreamble) + SX1281SetTxContinuousWave 0x08004b07 Thumb Code 10 sx1281_driver.o(i.SX1281SetTxContinuousWave) + SX1281SetTxParams 0x08004b11 Thumb Code 24 sx1281_driver.o(i.SX1281SetTxParams) + SX1281SetWhiteningSeed 0x08004b29 Thumb Code 26 sx1281_driver.o(i.SX1281SetWhiteningSeed) + SX1281_BSPInit 0x08004b49 Thumb Code 14 sx1281_header.o(i.SX1281_BSPInit) + SX1281_Callback 0x08004b59 Thumb Code 166 mr16.o(i.SX1281_Callback) + SX1281_GetState 0x08004c99 Thumb Code 20 sx1281.o(i.SX1281_GetState) + SX1281_Init 0x08004cb1 Thumb Code 590 sx1281.o(i.SX1281_Init) + SX1281_Running 0x08004ffd Thumb Code 18 sx1281.o(i.SX1281_Running) + SX1281_SetRXSuccessive 0x08005011 Thumb Code 34 sx1281.o(i.SX1281_SetRXSuccessive) + SX1281_SetTX 0x08005041 Thumb Code 46 sx1281.o(i.SX1281_SetTX) + SpiIn 0x0800507d Thumb Code 18 sx1281_driver_spi.o(i.SpiIn) + SpiInOut 0x08005095 Thumb Code 26 sx1281_driver_spi.o(i.SpiInOut) + SpiInit 0x080050b5 Thumb Code 26 sx1281_driver_spi.o(i.SpiInit) + StartDefaultTask 0x080050d9 Thumb Code 14 freertos.o(i.StartDefaultTask) + SysTick_Handler 0x080050e7 Thumb Code 24 stm32f1xx_it.o(i.SysTick_Handler) + SystemClock_Config 0x080050ff Thumb Code 96 main.o(i.SystemClock_Config) + SystemInit 0x0800515f Thumb Code 2 system_stm32f1xx.o(i.SystemInit) + TIM_Base_SetConfig 0x08005161 Thumb Code 108 stm32f1xx_hal_tim.o(i.TIM_Base_SetConfig) + TIM_ETR_SetConfig 0x080051d9 Thumb Code 20 stm32f1xx_hal_tim.o(i.TIM_ETR_SetConfig) + TIM_OC2_SetConfig 0x0800524d Thumb Code 84 stm32f1xx_hal_tim.o(i.TIM_OC2_SetConfig) + Task_Init 0x08005389 Thumb Code 48 init.o(i.Task_Init) + Task_radio 0x080053c5 Thumb Code 100 radio.o(i.Task_radio) + UART_Start_Receive_DMA 0x08005741 Thumb Code 130 stm32f1xx_hal_uart.o(i.UART_Start_Receive_DMA) + USART2_IRQHandler 0x08005845 Thumb Code 18 stm32f1xx_it.o(i.USART2_IRQHandler) + USAR_UART_IDLECallback 0x0800585d Thumb Code 104 usart.o(i.USAR_UART_IDLECallback) + USER_UART_IRQHandler 0x080058f1 Thumb Code 46 usart.o(i.USER_UART_IRQHandler) + UsageFault_Handler 0x08005941 Thumb Code 2 stm32f1xx_it.o(i.UsageFault_Handler) + __0printf 0x08005945 Thumb Code 22 printfa.o(i.__0printf) + __1printf 0x08005945 Thumb Code 0 printfa.o(i.__0printf) + __2printf 0x08005945 Thumb Code 0 printfa.o(i.__0printf) + __c89printf 0x08005945 Thumb Code 0 printfa.o(i.__0printf) + printf 0x08005945 Thumb Code 0 printfa.o(i.__0printf) + __0snprintf 0x08005965 Thumb Code 48 printfa.o(i.__0snprintf) + __1snprintf 0x08005965 Thumb Code 0 printfa.o(i.__0snprintf) + __2snprintf 0x08005965 Thumb Code 0 printfa.o(i.__0snprintf) + __c89snprintf 0x08005965 Thumb Code 0 printfa.o(i.__0snprintf) + snprintf 0x08005965 Thumb Code 0 printfa.o(i.__0snprintf) + __scatterload_copy 0x080059b9 Thumb Code 14 handlers.o(i.__scatterload_copy) + __scatterload_null 0x080059c7 Thumb Code 2 handlers.o(i.__scatterload_null) + __scatterload_zeroinit 0x080059c9 Thumb Code 14 handlers.o(i.__scatterload_zeroinit) + eTaskGetState 0x08006279 Thumb Code 106 tasks.o(i.eTaskGetState) + fputc 0x080062ed Thumb Code 24 sx1281_header.o(i.fputc) + free 0x08006305 Thumb Code 76 malloc.o(i.free) + main 0x08006355 Thumb Code 50 main.o(i.main) + malloc 0x08006389 Thumb Code 92 malloc.o(i.malloc) + osDelay 0x080065d5 Thumb Code 26 cmsis_os2.o(i.osDelay) + osDelayUntil 0x080065ef Thumb Code 46 cmsis_os2.o(i.osDelayUntil) + osKernelGetTickCount 0x0800661d Thumb Code 14 cmsis_os2.o(i.osKernelGetTickCount) + osKernelGetTickFreq 0x0800662b Thumb Code 6 cmsis_os2.o(i.osKernelGetTickFreq) + osKernelInitialize 0x08006631 Thumb Code 32 cmsis_os2.o(i.osKernelInitialize) + osKernelLock 0x08006655 Thumb Code 42 cmsis_os2.o(i.osKernelLock) + osKernelStart 0x08006681 Thumb Code 48 cmsis_os2.o(i.osKernelStart) + osKernelUnlock 0x080066b9 Thumb Code 58 cmsis_os2.o(i.osKernelUnlock) + osMessageQueueNew 0x080066f3 Thumb Code 88 cmsis_os2.o(i.osMessageQueueNew) + osThreadGetId 0x0800674b Thumb Code 4 cmsis_os2.o(i.osThreadGetId) + osThreadNew 0x08006751 Thumb Code 138 cmsis_os2.o(i.osThreadNew) + osThreadTerminate 0x080067db Thumb Code 52 cmsis_os2.o(i.osThreadTerminate) + pvPortMalloc 0x08006fd1 Thumb Code 216 heap_4.o(i.pvPortMalloc) + pxPortInitialiseStack 0x080070ad Thumb Code 32 port.o(i.pxPortInitialiseStack) + uxListRemove 0x080071a1 Thumb Code 38 list.o(i.uxListRemove) + vApplicationGetIdleTaskMemory 0x080071c9 Thumb Code 16 cmsis_os2.o(i.vApplicationGetIdleTaskMemory) + vApplicationGetTimerTaskMemory 0x080071dd Thumb Code 18 cmsis_os2.o(i.vApplicationGetTimerTaskMemory) + vListInitialise 0x080071f5 Thumb Code 22 list.o(i.vListInitialise) + vListInitialiseItem 0x0800720b Thumb Code 6 list.o(i.vListInitialiseItem) + vListInsert 0x08007211 Thumb Code 48 list.o(i.vListInsert) + vListInsertEnd 0x08007241 Thumb Code 24 list.o(i.vListInsertEnd) + vPortEnterCritical 0x08007259 Thumb Code 54 port.o(i.vPortEnterCritical) + vPortExitCritical 0x08007299 Thumb Code 34 port.o(i.vPortExitCritical) + vPortFree 0x080072c1 Thumb Code 94 heap_4.o(i.vPortFree) + vPortSetupTimerInterrupt 0x08007325 Thumb Code 32 port.o(i.vPortSetupTimerInterrupt) + vPortValidateInterruptPriority 0x08007349 Thumb Code 74 port.o(i.vPortValidateInterruptPriority) + vQueueAddToRegistry 0x0800739d Thumb Code 34 queue.o(i.vQueueAddToRegistry) + vQueueWaitForMessageRestricted 0x080073c5 Thumb Code 68 queue.o(i.vQueueWaitForMessageRestricted) + vTaskDelay 0x08007409 Thumb Code 66 tasks.o(i.vTaskDelay) + vTaskDelayUntil 0x08007455 Thumb Code 132 tasks.o(i.vTaskDelayUntil) + vTaskDelete 0x080074e1 Thumb Code 130 tasks.o(i.vTaskDelete) + vTaskInternalSetTimeOutState 0x08007571 Thumb Code 12 tasks.o(i.vTaskInternalSetTimeOutState) + vTaskMissedYield 0x08007581 Thumb Code 8 tasks.o(i.vTaskMissedYield) + vTaskPlaceOnEventList 0x0800758d Thumb Code 44 tasks.o(i.vTaskPlaceOnEventList) + vTaskPlaceOnEventListRestricted 0x080075bd Thumb Code 52 tasks.o(i.vTaskPlaceOnEventListRestricted) + vTaskStartScheduler 0x080075f5 Thumb Code 118 tasks.o(i.vTaskStartScheduler) + vTaskSuspendAll 0x0800767d Thumb Code 10 tasks.o(i.vTaskSuspendAll) + vTaskSwitchContext 0x0800768d Thumb Code 90 tasks.o(i.vTaskSwitchContext) + xPortStartScheduler 0x080076f1 Thumb Code 154 port.o(i.xPortStartScheduler) + xPortSysTickHandler 0x08007799 Thumb Code 38 port.o(i.xPortSysTickHandler) + xQueueGenericCreate 0x080077c5 Thumb Code 66 queue.o(i.xQueueGenericCreate) + xQueueGenericCreateStatic 0x08007807 Thumb Code 102 queue.o(i.xQueueGenericCreateStatic) + xQueueGenericReset 0x0800786d Thumb Code 132 queue.o(i.xQueueGenericReset) + xQueueGenericSend 0x080078f5 Thumb Code 346 queue.o(i.xQueueGenericSend) + xQueueGenericSendFromISR 0x08007a55 Thumb Code 190 queue.o(i.xQueueGenericSendFromISR) + xQueueReceive 0x08007b15 Thumb Code 308 queue.o(i.xQueueReceive) + xTaskCheckForTimeOut 0x08007c4d Thumb Code 112 tasks.o(i.xTaskCheckForTimeOut) + xTaskCreate 0x08007cc1 Thumb Code 90 tasks.o(i.xTaskCreate) + xTaskCreateStatic 0x08007d1b Thumb Code 86 tasks.o(i.xTaskCreateStatic) + xTaskGetCurrentTaskHandle 0x08007d71 Thumb Code 6 tasks.o(i.xTaskGetCurrentTaskHandle) + xTaskGetSchedulerState 0x08007d7d Thumb Code 22 tasks.o(i.xTaskGetSchedulerState) + xTaskGetTickCount 0x08007d99 Thumb Code 6 tasks.o(i.xTaskGetTickCount) + xTaskGetTickCountFromISR 0x08007da5 Thumb Code 12 tasks.o(i.xTaskGetTickCountFromISR) + xTaskIncrementTick 0x08007db5 Thumb Code 192 tasks.o(i.xTaskIncrementTick) + xTaskPriorityDisinherit 0x08007e7d Thumb Code 118 tasks.o(i.xTaskPriorityDisinherit) + xTaskRemoveFromEventList 0x08007efd Thumb Code 98 tasks.o(i.xTaskRemoveFromEventList) + xTaskResumeAll 0x08007f6d Thumb Code 182 tasks.o(i.xTaskResumeAll) + xTimerCreateTimerTask 0x08008031 Thumb Code 78 timers.o(i.xTimerCreateTimerTask) + xTimerGenericCommand 0x08008091 Thumb Code 98 timers.o(i.xTimerGenericCommand) + defaultTask_attributes 0x080080f8 Data 36 freertos.o(.constdata) + AHBPrescTable 0x0800812e Data 16 system_stm32f1xx.o(.constdata) + APBPrescTable 0x0800813e Data 8 system_stm32f1xx.o(.constdata) + ascii_1608 0x08008146 Data 1520 lcd.o(.constdata) + ascii_2412 0x08008736 Data 4560 lcd.o(.constdata) + ascii_3216 0x08009906 Data 6080 lcd.o(.constdata) + logo_M 0x0800b0c6 Data 512 lcd.o(.constdata) + bleConfigList 0x0800b2d8 Data 9 sx1281.o(.constdata) + loraConfigList 0x0800b2e1 Data 24 sx1281.o(.constdata) + gfskConfigList 0x0800b2f9 Data 12 sx1281.o(.constdata) + flrcConfigList 0x0800b305 Data 12 sx1281.o(.constdata) + RadioRegsInit 0x0800b312 Data 4 sx1281_driver.o(.constdata) + Radio 0x0800b318 Data 228 sx1281_driver_hal.o(.constdata) + attr_init 0x0800b430 Data 36 user_task.o(.constdata) + attr_radio 0x0800b454 Data 36 user_task.o(.constdata) + __ctype_categories 0x0800b478 Data 64 ctype_c.o(.constdata) + Region$$Table$$Base 0x0800b630 Number 0 anon$$obj.o(Region$$Table) + Region$$Table$$Limit 0x0800b650 Number 0 anon$$obj.o(Region$$Table) + defaultTaskHandle 0x20000000 Data 4 freertos.o(.data) + uart2_datalength 0x20000004 Data 1 usart.o(.data) + uwTickFreq 0x20000008 Data 1 stm32f1xx_hal.o(.data) + uwTickPrio 0x2000000c Data 4 stm32f1xx_hal.o(.data) + uwTick 0x20000010 Data 4 stm32f1xx_hal.o(.data) + SystemCoreClock 0x20000014 Data 4 system_stm32f1xx.o(.data) + pxCurrentTCB 0x20000018 Data 4 tasks.o(.data) + sx1281_state 0x2000009c Data 1 sx1281.o(.data) + RxIrqMask 0x2000009e Data 2 sx1281.o(.data) + TxIrqMask 0x200000a0 Data 2 sx1281.o(.data) + Callbacks 0x200000a4 Data 32 sx1281.o(.data) + DioIrq 0x200000cc Data 4 sx1281_driver.o(.data) + UART2_IdleFlag 0x200000ee Data 1 mr16.o(.data) + radioRXSize 0x200000ef Data 1 mr16.o(.data) + txdata 0x200000f0 Data 1 radio.o(.data) + __stdout 0x200000f4 Data 4 stdout.o(.data) + __microlib_freelist 0x200000f8 Data 4 mvars.o(.data) + __microlib_freelist_initialised 0x200000fc Data 4 mvars.o(.data) + hspi1 0x20000100 Data 88 spi.o(.bss) + hspi2 0x20000158 Data 88 spi.o(.bss) + hdma_spi1_tx 0x200001b0 Data 68 spi.o(.bss) + hdma_spi1_rx 0x200001f4 Data 68 spi.o(.bss) + hdma_spi2_tx 0x20000238 Data 68 spi.o(.bss) + htim1 0x2000027c Data 72 tim.o(.bss) + huart1 0x200002c4 Data 72 usart.o(.bss) + huart2 0x2000030c Data 72 usart.o(.bss) + hdma_usart2_rx 0x20000354 Data 68 usart.o(.bss) + hdma_usart2_tx 0x20000398 Data 68 usart.o(.bss) + uart_buffer 0x200003dc Data 255 usart.o(.bss) + uart2_data 0x200004db Data 255 usart.o(.bss) + xQueueRegistry 0x200005dc Data 64 queue.o(.bss) + radio 0x20003fb8 Data 360 mr16.o(.bss) + radioRXBuffer 0x20004120 Data 255 mr16.o(.bss) + cInputBuffer 0x2000421f Data 256 mr16.o(.bss) + cOutputBuffer 0x2000431f Data 256 mr16.o(.bss) + task_runtime 0x20004420 Data 32 user_task.o(.bss) + mr16 0x20004440 Data 156 radio.o(.bss) + __heap_base 0x200044e0 Data 0 startup_stm32f103xb.o(HEAP) + __heap_limit 0x200046e0 Data 0 startup_stm32f103xb.o(HEAP) + __initial_sp 0x20004ae0 Data 0 startup_stm32f103xb.o(STACK) @@ -2715,338 +4043,505 @@ Memory Map of the image Image Entry point : 0x080000ed - Load Region LR_IROM1 (Base: 0x08000000, Size: 0x000053f4, Max: 0x00010000, ABSOLUTE) + Load Region LR_IROM1 (Base: 0x08000000, Size: 0x0000b750, Max: 0x00010000, ABSOLUTE) - Execution Region ER_IROM1 (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x00005398, Max: 0x00010000, ABSOLUTE) + Execution Region ER_IROM1 (Exec base: 0x08000000, Load base: 0x08000000, Size: 0x0000b650, Max: 0x00010000, ABSOLUTE) Exec Addr Load Addr Size Type Attr Idx E Section Name Object 0x08000000 0x08000000 0x000000ec Data RO 3 RESET startup_stm32f103xb.o - 0x080000ec 0x080000ec 0x00000000 Code RO 4685 * .ARM.Collect$$$$00000000 mc_w.l(entry.o) - 0x080000ec 0x080000ec 0x00000004 Code RO 5017 .ARM.Collect$$$$00000001 mc_w.l(entry2.o) - 0x080000f0 0x080000f0 0x00000004 Code RO 5020 .ARM.Collect$$$$00000004 mc_w.l(entry5.o) - 0x080000f4 0x080000f4 0x00000000 Code RO 5022 .ARM.Collect$$$$00000008 mc_w.l(entry7b.o) - 0x080000f4 0x080000f4 0x00000000 Code RO 5024 .ARM.Collect$$$$0000000A mc_w.l(entry8b.o) - 0x080000f4 0x080000f4 0x00000008 Code RO 5025 .ARM.Collect$$$$0000000B mc_w.l(entry9a.o) - 0x080000fc 0x080000fc 0x00000004 Code RO 5032 .ARM.Collect$$$$0000000E mc_w.l(entry12b.o) - 0x08000100 0x08000100 0x00000000 Code RO 5027 .ARM.Collect$$$$0000000F mc_w.l(entry10a.o) - 0x08000100 0x08000100 0x00000000 Code RO 5029 .ARM.Collect$$$$00000011 mc_w.l(entry11a.o) - 0x08000100 0x08000100 0x00000004 Code RO 5018 .ARM.Collect$$$$00002712 mc_w.l(entry2.o) - 0x08000104 0x08000104 0x00000024 Code RO 4 .text startup_stm32f103xb.o - 0x08000128 0x08000128 0x00000020 Code RO 4688 .text mc_w.l(llushr.o) - 0x08000148 0x08000148 0x00000024 Code RO 4690 .text mc_w.l(memcpya.o) - 0x0800016c 0x0800016c 0x00000024 Code RO 4692 .text mc_w.l(memseta.o) - 0x08000190 0x08000190 0x00000012 Code RO 4696 .text mc_w.l(strcpy.o) - 0x080001a2 0x080001a2 0x000000e4 Code RO 5001 .text mf_w.l(dmul.o) - 0x08000286 0x08000286 0x000000de Code RO 5003 .text mf_w.l(ddiv.o) - 0x08000364 0x08000364 0x00000022 Code RO 5005 .text mf_w.l(dflti.o) - 0x08000386 0x08000386 0x0000001a Code RO 5007 .text mf_w.l(dfltui.o) - 0x080003a0 0x080003a0 0x00000032 Code RO 5009 .text mf_w.l(dfixui.o) - 0x080003d2 0x080003d2 0x0000002c Code RO 5034 .text mc_w.l(uidiv.o) - 0x080003fe 0x080003fe 0x00000062 Code RO 5036 .text mc_w.l(uldiv.o) - 0x08000460 0x08000460 0x00000000 Code RO 5046 .text mc_w.l(iusefp.o) - 0x08000460 0x08000460 0x000000ba Code RO 5049 .text mf_w.l(depilogue.o) - 0x0800051a 0x0800051a 0x0000014e Code RO 5051 .text mf_w.l(dadd.o) - 0x08000668 0x08000668 0x00000030 Code RO 5053 .text mf_w.l(dfixul.o) - 0x08000698 0x08000698 0x00000030 Code RO 5055 .text mf_w.l(cdrcmple.o) - 0x080006c8 0x080006c8 0x00000024 Code RO 5057 .text mc_w.l(init.o) - 0x080006ec 0x080006ec 0x0000001e Code RO 5059 .text mc_w.l(llshl.o) - 0x0800070a 0x0800070a 0x00000024 Code RO 5061 .text mc_w.l(llsshr.o) + 0x080000ec 0x080000ec 0x00000000 Code RO 6839 * .ARM.Collect$$$$00000000 mc_w.l(entry.o) + 0x080000ec 0x080000ec 0x00000004 Code RO 7181 .ARM.Collect$$$$00000001 mc_w.l(entry2.o) + 0x080000f0 0x080000f0 0x00000004 Code RO 7184 .ARM.Collect$$$$00000004 mc_w.l(entry5.o) + 0x080000f4 0x080000f4 0x00000000 Code RO 7186 .ARM.Collect$$$$00000008 mc_w.l(entry7b.o) + 0x080000f4 0x080000f4 0x00000000 Code RO 7188 .ARM.Collect$$$$0000000A mc_w.l(entry8b.o) + 0x080000f4 0x080000f4 0x00000008 Code RO 7189 .ARM.Collect$$$$0000000B mc_w.l(entry9a.o) + 0x080000fc 0x080000fc 0x00000004 Code RO 7196 .ARM.Collect$$$$0000000E mc_w.l(entry12b.o) + 0x08000100 0x08000100 0x00000000 Code RO 7191 .ARM.Collect$$$$0000000F mc_w.l(entry10a.o) + 0x08000100 0x08000100 0x00000000 Code RO 7193 .ARM.Collect$$$$00000011 mc_w.l(entry11a.o) + 0x08000100 0x08000100 0x00000004 Code RO 7182 .ARM.Collect$$$$00002712 mc_w.l(entry2.o) + 0x08000104 0x08000104 0x00000096 Code RO 4973 .emb_text port.o + 0x0800019a 0x0800019a 0x00000002 PAD + 0x0800019c 0x0800019c 0x00000024 Code RO 4 .text startup_stm32f103xb.o + 0x080001c0 0x080001c0 0x00000020 Code RO 6842 .text mc_w.l(llushr.o) + 0x080001e0 0x080001e0 0x00000024 Code RO 6844 .text mc_w.l(memcpya.o) + 0x08000204 0x08000204 0x00000024 Code RO 6848 .text mc_w.l(memseta.o) + 0x08000228 0x08000228 0x00000018 Code RO 6850 .text mc_w.l(strncpy.o) + 0x08000240 0x08000240 0x0000000e Code RO 6852 .text mc_w.l(strlen.o) + 0x0800024e 0x0800024e 0x0000001c Code RO 6854 .text mc_w.l(strcmp.o) + 0x0800026a 0x0800026a 0x00000012 Code RO 6856 .text mc_w.l(strcpy.o) + 0x0800027c 0x0800027c 0x0000001e Code RO 6858 .text mc_w.l(strncmp.o) + 0x0800029a 0x0800029a 0x0000002a Code RO 6862 .text mc_w.l(strcasecmp.o) + 0x080002c4 0x080002c4 0x00000038 Code RO 7153 .text mc_w.l(__0sscanf.o) + 0x080002fc 0x080002fc 0x0000014c Code RO 7155 .text mc_w.l(_scanf_int.o) + 0x08000448 0x08000448 0x000000e4 Code RO 7165 .text mf_w.l(dmul.o) + 0x0800052c 0x0800052c 0x000000de Code RO 7167 .text mf_w.l(ddiv.o) + 0x0800060a 0x0800060a 0x00000022 Code RO 7169 .text mf_w.l(dflti.o) + 0x0800062c 0x0800062c 0x0000001a Code RO 7171 .text mf_w.l(dfltui.o) + 0x08000646 0x08000646 0x00000032 Code RO 7173 .text mf_w.l(dfixui.o) + 0x08000678 0x08000678 0x0000002c Code RO 7198 .text mc_w.l(uidiv.o) + 0x080006a4 0x080006a4 0x00000062 Code RO 7200 .text mc_w.l(uldiv.o) + 0x08000706 0x08000706 0x0000000c Code RO 7202 .text mc_w.l(tolower.o) + 0x08000712 0x08000712 0x0000001c Code RO 7206 .text mc_w.l(_chval.o) 0x0800072e 0x0800072e 0x00000002 PAD - 0x08000730 0x08000730 0x0000001c Code RO 3319 i.BSP_SPI_GetHandle spi_1.o - 0x0800074c 0x0800074c 0x0000001c Code RO 3326 i.BSP_SPI_RegisterCallback spi_1.o - 0x08000768 0x08000768 0x0000002a Code RO 3327 i.BSP_SPI_Transmit spi_1.o - 0x08000792 0x08000792 0x0000002e Code RO 3328 i.BSP_SPI_TransmitReceive spi_1.o - 0x080007c0 0x080007c0 0x00000010 Code RO 3455 i.BSP_UART_GetHandle uart.o - 0x080007d0 0x080007d0 0x00000002 Code RO 393 i.BusFault_Handler stm32f1xx_it.o - 0x080007d2 0x080007d2 0x00000002 PAD - 0x080007d4 0x080007d4 0x0000000c Code RO 394 i.DMA1_Channel2_IRQHandler stm32f1xx_it.o - 0x080007e0 0x080007e0 0x0000000c Code RO 395 i.DMA1_Channel3_IRQHandler stm32f1xx_it.o - 0x080007ec 0x080007ec 0x0000000c Code RO 396 i.DMA1_Channel5_IRQHandler stm32f1xx_it.o - 0x080007f8 0x080007f8 0x0000000c Code RO 397 i.DMA1_Channel6_IRQHandler stm32f1xx_it.o - 0x08000804 0x08000804 0x0000000c Code RO 398 i.DMA1_Channel7_IRQHandler stm32f1xx_it.o - 0x08000810 0x08000810 0x0000002a Code RO 1279 i.DMA_SetConfig stm32f1xx_hal_dma.o - 0x0800083a 0x0800083a 0x00000002 Code RO 399 i.DebugMon_Handler stm32f1xx_it.o - 0x0800083c 0x0800083c 0x00000008 Code RO 400 i.EXTI15_10_IRQHandler stm32f1xx_it.o - 0x08000844 0x08000844 0x00000018 Code RO 401 i.EXTI9_5_IRQHandler stm32f1xx_it.o - 0x0800085c 0x0800085c 0x00000004 Code RO 13 i.Error_Handler main.o - 0x08000860 0x08000860 0x00000030 Code RO 4223 i.GpioGetBitPos sx1281_driver_gpio.o - 0x08000890 0x08000890 0x00000002 Code RO 4224 i.GpioInit sx1281_driver_gpio.o - 0x08000892 0x08000892 0x00000004 Code RO 4226 i.GpioRead sx1281_driver_gpio.o - 0x08000896 0x08000896 0x00000002 PAD - 0x08000898 0x08000898 0x00000038 Code RO 4227 i.GpioSetIrq sx1281_driver_gpio.o - 0x080008d0 0x080008d0 0x00000006 Code RO 4228 i.GpioWrite sx1281_driver_gpio.o - 0x080008d6 0x080008d6 0x00000046 Code RO 1280 i.HAL_DMA_Abort stm32f1xx_hal_dma.o - 0x0800091c 0x0800091c 0x00000098 Code RO 1281 i.HAL_DMA_Abort_IT stm32f1xx_hal_dma.o - 0x080009b4 0x080009b4 0x00000154 Code RO 1285 i.HAL_DMA_IRQHandler stm32f1xx_hal_dma.o - 0x08000b08 0x08000b08 0x0000005c Code RO 1286 i.HAL_DMA_Init stm32f1xx_hal_dma.o - 0x08000b64 0x08000b64 0x00000070 Code RO 1290 i.HAL_DMA_Start_IT stm32f1xx_hal_dma.o - 0x08000bd4 0x08000bd4 0x00000024 Code RO 906 i.HAL_Delay stm32f1xx_hal.o - 0x08000bf8 0x08000bf8 0x0000002c Code RO 3256 i.HAL_GPIO_EXTI_Callback gpio_1.o - 0x08000c24 0x08000c24 0x00000018 Code RO 1215 i.HAL_GPIO_EXTI_IRQHandler stm32f1xx_hal_gpio.o - 0x08000c3c 0x08000c3c 0x000001e0 Code RO 1216 i.HAL_GPIO_Init stm32f1xx_hal_gpio.o - 0x08000e1c 0x08000e1c 0x0000000a Code RO 1218 i.HAL_GPIO_ReadPin stm32f1xx_hal_gpio.o - 0x08000e26 0x08000e26 0x0000000a Code RO 1220 i.HAL_GPIO_WritePin stm32f1xx_hal_gpio.o - 0x08000e30 0x08000e30 0x0000000c Code RO 910 i.HAL_GetTick stm32f1xx_hal.o - 0x08000e3c 0x08000e3c 0x0000006e Code RO 2851 i.HAL_HalfDuplex_Init stm32f1xx_hal_uart.o - 0x08000eaa 0x08000eaa 0x00000002 PAD - 0x08000eac 0x08000eac 0x00000010 Code RO 916 i.HAL_IncTick stm32f1xx_hal.o - 0x08000ebc 0x08000ebc 0x00000024 Code RO 917 i.HAL_Init stm32f1xx_hal.o - 0x08000ee0 0x08000ee0 0x00000040 Code RO 918 i.HAL_InitTick stm32f1xx_hal.o - 0x08000f20 0x08000f20 0x0000003c Code RO 517 i.HAL_MspInit stm32f1xx_hal_msp.o - 0x08000f5c 0x08000f5c 0x0000001a Code RO 1376 i.HAL_NVIC_EnableIRQ stm32f1xx_hal_cortex.o - 0x08000f76 0x08000f76 0x00000002 PAD - 0x08000f78 0x08000f78 0x00000040 Code RO 1382 i.HAL_NVIC_SetPriority stm32f1xx_hal_cortex.o - 0x08000fb8 0x08000fb8 0x00000024 Code RO 1383 i.HAL_NVIC_SetPriorityGrouping stm32f1xx_hal_cortex.o - 0x08000fdc 0x08000fdc 0x0000012c Code RO 1074 i.HAL_RCC_ClockConfig stm32f1xx_hal_rcc.o - 0x08001108 0x08001108 0x00000020 Code RO 1081 i.HAL_RCC_GetPCLK1Freq stm32f1xx_hal_rcc.o - 0x08001128 0x08001128 0x00000020 Code RO 1082 i.HAL_RCC_GetPCLK2Freq stm32f1xx_hal_rcc.o - 0x08001148 0x08001148 0x00000054 Code RO 1083 i.HAL_RCC_GetSysClockFreq stm32f1xx_hal_rcc.o - 0x0800119c 0x0800119c 0x00000320 Code RO 1086 i.HAL_RCC_OscConfig stm32f1xx_hal_rcc.o - 0x080014bc 0x080014bc 0x00000038 Code RO 3330 i.HAL_SPI_ErrorCallback spi_1.o - 0x080014f4 0x080014f4 0x000000b2 Code RO 588 i.HAL_SPI_Init stm32f1xx_hal_spi.o - 0x080015a6 0x080015a6 0x00000002 PAD - 0x080015a8 0x080015a8 0x00000138 Code RO 230 i.HAL_SPI_MspInit spi.o - 0x080016e0 0x080016e0 0x00000038 Code RO 3331 i.HAL_SPI_RxCpltCallback spi_1.o - 0x08001718 0x08001718 0x00000038 Code RO 3332 i.HAL_SPI_RxHalfCpltCallback spi_1.o - 0x08001750 0x08001750 0x00000166 Code RO 596 i.HAL_SPI_Transmit stm32f1xx_hal_spi.o - 0x080018b6 0x080018b6 0x000001f0 Code RO 597 i.HAL_SPI_TransmitReceive stm32f1xx_hal_spi.o - 0x08001aa6 0x08001aa6 0x00000002 PAD - 0x08001aa8 0x08001aa8 0x00000110 Code RO 598 i.HAL_SPI_TransmitReceive_DMA stm32f1xx_hal_spi.o - 0x08001bb8 0x08001bb8 0x000000cc Code RO 600 i.HAL_SPI_Transmit_DMA stm32f1xx_hal_spi.o - 0x08001c84 0x08001c84 0x00000024 Code RO 3333 i.HAL_SPI_TxCpltCallback spi_1.o - 0x08001ca8 0x08001ca8 0x00000038 Code RO 3334 i.HAL_SPI_TxHalfCpltCallback spi_1.o - 0x08001ce0 0x08001ce0 0x00000038 Code RO 3335 i.HAL_SPI_TxRxCpltCallback spi_1.o - 0x08001d18 0x08001d18 0x00000038 Code RO 3336 i.HAL_SPI_TxRxHalfCpltCallback spi_1.o - 0x08001d50 0x08001d50 0x00000028 Code RO 1387 i.HAL_SYSTICK_Config stm32f1xx_hal_cortex.o - 0x08001d78 0x08001d78 0x00000054 Code RO 2585 i.HAL_TIMEx_ConfigBreakDeadTime stm32f1xx_hal_tim_ex.o - 0x08001dcc 0x08001dcc 0x00000068 Code RO 2601 i.HAL_TIMEx_MasterConfigSynchronization stm32f1xx_hal_tim_ex.o - 0x08001e34 0x08001e34 0x0000005a Code RO 1878 i.HAL_TIM_Base_Init stm32f1xx_hal_tim.o - 0x08001e8e 0x08001e8e 0x00000002 PAD - 0x08001e90 0x08001e90 0x00000028 Code RO 278 i.HAL_TIM_Base_MspInit tim.o - 0x08001eb8 0x08001eb8 0x000000dc Code RO 1887 i.HAL_TIM_ConfigClockSource stm32f1xx_hal_tim.o - 0x08001f94 0x08001f94 0x0000004c Code RO 279 i.HAL_TIM_MspPostInit tim.o - 0x08001fe0 0x08001fe0 0x000000cc Code RO 1950 i.HAL_TIM_PWM_ConfigChannel stm32f1xx_hal_tim.o - 0x080020ac 0x080020ac 0x0000005a Code RO 1953 i.HAL_TIM_PWM_Init stm32f1xx_hal_tim.o - 0x08002106 0x08002106 0x00000002 Code RO 1955 i.HAL_TIM_PWM_MspInit stm32f1xx_hal_tim.o - 0x08002108 0x08002108 0x00000002 Code RO 2861 i.HAL_UARTEx_RxEventCallback stm32f1xx_hal_uart.o - 0x0800210a 0x0800210a 0x00000070 Code RO 2873 i.HAL_UART_DMAStop stm32f1xx_hal_uart.o - 0x0800217a 0x0800217a 0x00000002 PAD - 0x0800217c 0x0800217c 0x00000028 Code RO 3463 i.HAL_UART_ErrorCallback uart.o - 0x080021a4 0x080021a4 0x0000026c Code RO 2878 i.HAL_UART_IRQHandler stm32f1xx_hal_uart.o - 0x08002410 0x08002410 0x00000064 Code RO 2879 i.HAL_UART_Init stm32f1xx_hal_uart.o - 0x08002474 0x08002474 0x00000118 Code RO 326 i.HAL_UART_MspInit usart.o - 0x0800258c 0x0800258c 0x0000001c Code RO 2883 i.HAL_UART_Receive_DMA stm32f1xx_hal_uart.o - 0x080025a8 0x080025a8 0x00000028 Code RO 3464 i.HAL_UART_RxCpltCallback uart.o - 0x080025d0 0x080025d0 0x00000028 Code RO 3465 i.HAL_UART_RxHalfCpltCallback uart.o - 0x080025f8 0x080025f8 0x000000a0 Code RO 2887 i.HAL_UART_Transmit stm32f1xx_hal_uart.o - 0x08002698 0x08002698 0x00000028 Code RO 3466 i.HAL_UART_TxCpltCallback uart.o - 0x080026c0 0x080026c0 0x00000002 Code RO 402 i.HardFault_Handler stm32f1xx_it.o + 0x08000730 0x08000730 0x00000028 Code RO 7208 .text mc_w.l(scanf_char.o) + 0x08000758 0x08000758 0x00000040 Code RO 7210 .text mc_w.l(_sgetc.o) + 0x08000798 0x08000798 0x00000000 Code RO 7212 .text mc_w.l(iusefp.o) + 0x08000798 0x08000798 0x000000ba Code RO 7215 .text mf_w.l(depilogue.o) + 0x08000852 0x08000852 0x0000014e Code RO 7217 .text mf_w.l(dadd.o) + 0x080009a0 0x080009a0 0x00000030 Code RO 7219 .text mf_w.l(dfixul.o) + 0x080009d0 0x080009d0 0x00000030 Code RO 7221 .text mf_w.l(cdrcmple.o) + 0x08000a00 0x08000a00 0x00000024 Code RO 7223 .text mc_w.l(init.o) + 0x08000a24 0x08000a24 0x0000001e Code RO 7225 .text mc_w.l(llshl.o) + 0x08000a42 0x08000a42 0x00000024 Code RO 7227 .text mc_w.l(llsshr.o) + 0x08000a66 0x08000a66 0x0000000a Code RO 7229 .text mc_w.l(isspace_c.o) + 0x08000a70 0x08000a70 0x00000330 Code RO 7231 .text mc_w.l(_scanf.o) + 0x08000da0 0x08000da0 0x00000028 Code RO 7233 .text mc_w.l(ctype_c.o) + 0x08000dc8 0x08000dc8 0x0000001c Code RO 5125 i.BSP_SPI_GetHandle spi_1.o + 0x08000de4 0x08000de4 0x00000018 Code RO 5126 i.BSP_SPI_GetState spi_1.o + 0x08000dfc 0x08000dfc 0x0000001c Code RO 5132 i.BSP_SPI_RegisterCallback spi_1.o + 0x08000e18 0x08000e18 0x0000002a Code RO 5133 i.BSP_SPI_Transmit spi_1.o + 0x08000e42 0x08000e42 0x0000002e Code RO 5134 i.BSP_SPI_TransmitReceive spi_1.o + 0x08000e70 0x08000e70 0x0000001c Code RO 5261 i.BSP_UART_GetHandle uart.o + 0x08000e8c 0x08000e8c 0x00000002 Code RO 456 i.BusFault_Handler stm32f1xx_it.o + 0x08000e8e 0x08000e8e 0x00000002 PAD + 0x08000e90 0x08000e90 0x0000000c Code RO 457 i.DMA1_Channel2_IRQHandler stm32f1xx_it.o + 0x08000e9c 0x08000e9c 0x0000000c Code RO 458 i.DMA1_Channel3_IRQHandler stm32f1xx_it.o + 0x08000ea8 0x08000ea8 0x0000000c Code RO 459 i.DMA1_Channel5_IRQHandler stm32f1xx_it.o + 0x08000eb4 0x08000eb4 0x0000000c Code RO 460 i.DMA1_Channel6_IRQHandler stm32f1xx_it.o + 0x08000ec0 0x08000ec0 0x0000000c Code RO 461 i.DMA1_Channel7_IRQHandler stm32f1xx_it.o + 0x08000ecc 0x08000ecc 0x0000002a Code RO 1008 i.DMA_SetConfig stm32f1xx_hal_dma.o + 0x08000ef6 0x08000ef6 0x00000002 Code RO 462 i.DebugMon_Handler stm32f1xx_it.o + 0x08000ef8 0x08000ef8 0x00000008 Code RO 463 i.EXTI15_10_IRQHandler stm32f1xx_it.o + 0x08000f00 0x08000f00 0x00000018 Code RO 464 i.EXTI9_5_IRQHandler stm32f1xx_it.o + 0x08000f18 0x08000f18 0x00000004 Code RO 13 i.Error_Handler main.o + 0x08000f1c 0x08000f1c 0x00000046 Code RO 6537 i.FreeRTOS_CLIGetParameter freertos_cli.o + 0x08000f62 0x08000f62 0x00000002 PAD + 0x08000f64 0x08000f64 0x000000d0 Code RO 6538 i.FreeRTOS_CLIProcessCommand freertos_cli.o + 0x08001034 0x08001034 0x00000050 Code RO 6539 i.FreeRTOS_CLIRegisterCommand freertos_cli.o + 0x08001084 0x08001084 0x00000030 Code RO 6116 i.GpioGetBitPos sx1281_driver_gpio.o + 0x080010b4 0x080010b4 0x00000002 Code RO 6117 i.GpioInit sx1281_driver_gpio.o + 0x080010b6 0x080010b6 0x00000004 Code RO 6119 i.GpioRead sx1281_driver_gpio.o + 0x080010ba 0x080010ba 0x00000002 PAD + 0x080010bc 0x080010bc 0x00000038 Code RO 6120 i.GpioSetIrq sx1281_driver_gpio.o + 0x080010f4 0x080010f4 0x00000006 Code RO 6121 i.GpioWrite sx1281_driver_gpio.o + 0x080010fa 0x080010fa 0x00000046 Code RO 1009 i.HAL_DMA_Abort stm32f1xx_hal_dma.o + 0x08001140 0x08001140 0x00000098 Code RO 1010 i.HAL_DMA_Abort_IT stm32f1xx_hal_dma.o + 0x080011d8 0x080011d8 0x00000154 Code RO 1014 i.HAL_DMA_IRQHandler stm32f1xx_hal_dma.o + 0x0800132c 0x0800132c 0x0000005c Code RO 1015 i.HAL_DMA_Init stm32f1xx_hal_dma.o + 0x08001388 0x08001388 0x00000070 Code RO 1019 i.HAL_DMA_Start_IT stm32f1xx_hal_dma.o + 0x080013f8 0x080013f8 0x00000024 Code RO 635 i.HAL_Delay stm32f1xx_hal.o + 0x0800141c 0x0800141c 0x0000002c Code RO 5059 i.HAL_GPIO_EXTI_Callback gpio_1.o + 0x08001448 0x08001448 0x00000018 Code RO 944 i.HAL_GPIO_EXTI_IRQHandler stm32f1xx_hal_gpio.o + 0x08001460 0x08001460 0x000001e0 Code RO 945 i.HAL_GPIO_Init stm32f1xx_hal_gpio.o + 0x08001640 0x08001640 0x0000000a Code RO 947 i.HAL_GPIO_ReadPin stm32f1xx_hal_gpio.o + 0x0800164a 0x0800164a 0x0000000a Code RO 949 i.HAL_GPIO_WritePin stm32f1xx_hal_gpio.o + 0x08001654 0x08001654 0x0000000c Code RO 639 i.HAL_GetTick stm32f1xx_hal.o + 0x08001660 0x08001660 0x0000006e Code RO 2902 i.HAL_HalfDuplex_Init stm32f1xx_hal_uart.o + 0x080016ce 0x080016ce 0x00000002 PAD + 0x080016d0 0x080016d0 0x00000010 Code RO 645 i.HAL_IncTick stm32f1xx_hal.o + 0x080016e0 0x080016e0 0x00000024 Code RO 646 i.HAL_Init stm32f1xx_hal.o + 0x08001704 0x08001704 0x00000040 Code RO 647 i.HAL_InitTick stm32f1xx_hal.o + 0x08001744 0x08001744 0x00000048 Code RO 568 i.HAL_MspInit stm32f1xx_hal_msp.o + 0x0800178c 0x0800178c 0x0000001a Code RO 1105 i.HAL_NVIC_EnableIRQ stm32f1xx_hal_cortex.o + 0x080017a6 0x080017a6 0x00000002 PAD + 0x080017a8 0x080017a8 0x00000040 Code RO 1111 i.HAL_NVIC_SetPriority stm32f1xx_hal_cortex.o + 0x080017e8 0x080017e8 0x00000024 Code RO 1112 i.HAL_NVIC_SetPriorityGrouping stm32f1xx_hal_cortex.o + 0x0800180c 0x0800180c 0x0000012c Code RO 803 i.HAL_RCC_ClockConfig stm32f1xx_hal_rcc.o + 0x08001938 0x08001938 0x00000020 Code RO 810 i.HAL_RCC_GetPCLK1Freq stm32f1xx_hal_rcc.o + 0x08001958 0x08001958 0x00000020 Code RO 811 i.HAL_RCC_GetPCLK2Freq stm32f1xx_hal_rcc.o + 0x08001978 0x08001978 0x00000054 Code RO 812 i.HAL_RCC_GetSysClockFreq stm32f1xx_hal_rcc.o + 0x080019cc 0x080019cc 0x00000320 Code RO 815 i.HAL_RCC_OscConfig stm32f1xx_hal_rcc.o + 0x08001cec 0x08001cec 0x00000038 Code RO 5136 i.HAL_SPI_ErrorCallback spi_1.o + 0x08001d24 0x08001d24 0x00000006 Code RO 1614 i.HAL_SPI_GetState stm32f1xx_hal_spi.o + 0x08001d2a 0x08001d2a 0x000000b2 Code RO 1616 i.HAL_SPI_Init stm32f1xx_hal_spi.o + 0x08001ddc 0x08001ddc 0x00000138 Code RO 287 i.HAL_SPI_MspInit spi.o + 0x08001f14 0x08001f14 0x00000038 Code RO 5137 i.HAL_SPI_RxCpltCallback spi_1.o + 0x08001f4c 0x08001f4c 0x00000038 Code RO 5138 i.HAL_SPI_RxHalfCpltCallback spi_1.o + 0x08001f84 0x08001f84 0x00000166 Code RO 1624 i.HAL_SPI_Transmit stm32f1xx_hal_spi.o + 0x080020ea 0x080020ea 0x000001f0 Code RO 1625 i.HAL_SPI_TransmitReceive stm32f1xx_hal_spi.o + 0x080022da 0x080022da 0x00000002 PAD + 0x080022dc 0x080022dc 0x00000110 Code RO 1626 i.HAL_SPI_TransmitReceive_DMA stm32f1xx_hal_spi.o + 0x080023ec 0x080023ec 0x000000cc Code RO 1628 i.HAL_SPI_Transmit_DMA stm32f1xx_hal_spi.o + 0x080024b8 0x080024b8 0x00000024 Code RO 5139 i.HAL_SPI_TxCpltCallback spi_1.o + 0x080024dc 0x080024dc 0x00000038 Code RO 5140 i.HAL_SPI_TxHalfCpltCallback spi_1.o + 0x08002514 0x08002514 0x00000038 Code RO 5141 i.HAL_SPI_TxRxCpltCallback spi_1.o + 0x0800254c 0x0800254c 0x00000038 Code RO 5142 i.HAL_SPI_TxRxHalfCpltCallback spi_1.o + 0x08002584 0x08002584 0x00000028 Code RO 1116 i.HAL_SYSTICK_Config stm32f1xx_hal_cortex.o + 0x080025ac 0x080025ac 0x00000054 Code RO 2636 i.HAL_TIMEx_ConfigBreakDeadTime stm32f1xx_hal_tim_ex.o + 0x08002600 0x08002600 0x00000068 Code RO 2652 i.HAL_TIMEx_MasterConfigSynchronization stm32f1xx_hal_tim_ex.o + 0x08002668 0x08002668 0x0000005a Code RO 1929 i.HAL_TIM_Base_Init stm32f1xx_hal_tim.o 0x080026c2 0x080026c2 0x00000002 PAD - 0x080026c4 0x080026c4 0x00000018 Code RO 4646 i.MR16_Init mr16.o - 0x080026dc 0x080026dc 0x0000003a Code RO 4229 i.MSP_GetIRQn sx1281_driver_gpio.o - 0x08002716 0x08002716 0x00000002 PAD - 0x08002718 0x08002718 0x0000006c Code RO 205 i.MX_DMA_Init dma.o - 0x08002784 0x08002784 0x00000118 Code RO 181 i.MX_GPIO_Init gpio.o - 0x0800289c 0x0800289c 0x00000048 Code RO 231 i.MX_SPI1_Init spi.o - 0x080028e4 0x080028e4 0x00000048 Code RO 232 i.MX_SPI2_Init spi.o - 0x0800292c 0x0800292c 0x000000c4 Code RO 280 i.MX_TIM1_Init tim.o - 0x080029f0 0x080029f0 0x00000038 Code RO 327 i.MX_USART1_UART_Init usart.o - 0x08002a28 0x08002a28 0x00000038 Code RO 328 i.MX_USART2_UART_Init usart.o - 0x08002a60 0x08002a60 0x00000002 Code RO 403 i.MemManage_Handler stm32f1xx_it.o - 0x08002a62 0x08002a62 0x00000002 Code RO 404 i.NMI_Handler stm32f1xx_it.o - 0x08002a64 0x08002a64 0x00000014 Code RO 3697 i.OnRxDone sx1281.o - 0x08002a78 0x08002a78 0x00000014 Code RO 3698 i.OnRxError sx1281.o - 0x08002a8c 0x08002a8c 0x00000014 Code RO 3699 i.OnRxTimeout sx1281.o - 0x08002aa0 0x08002aa0 0x00000014 Code RO 3700 i.OnTxDone sx1281.o - 0x08002ab4 0x08002ab4 0x00000014 Code RO 3701 i.OnTxTimeout sx1281.o - 0x08002ac8 0x08002ac8 0x00000002 Code RO 405 i.PendSV_Handler stm32f1xx_it.o - 0x08002aca 0x08002aca 0x00000022 Code RO 616 i.SPI_DMAError stm32f1xx_hal_spi.o - 0x08002aec 0x08002aec 0x0000000a Code RO 617 i.SPI_DMAHalfReceiveCplt stm32f1xx_hal_spi.o - 0x08002af6 0x08002af6 0x0000000a Code RO 618 i.SPI_DMAHalfTransmitCplt stm32f1xx_hal_spi.o - 0x08002b00 0x08002b00 0x0000000a Code RO 619 i.SPI_DMAHalfTransmitReceiveCplt stm32f1xx_hal_spi.o - 0x08002b0a 0x08002b0a 0x0000006a Code RO 620 i.SPI_DMAReceiveCplt stm32f1xx_hal_spi.o - 0x08002b74 0x08002b74 0x00000064 Code RO 622 i.SPI_DMATransmitCplt stm32f1xx_hal_spi.o - 0x08002bd8 0x08002bd8 0x0000005a Code RO 623 i.SPI_DMATransmitReceiveCplt stm32f1xx_hal_spi.o - 0x08002c32 0x08002c32 0x0000005c Code RO 625 i.SPI_EndRxTransaction stm32f1xx_hal_spi.o - 0x08002c8e 0x08002c8e 0x00000034 Code RO 626 i.SPI_EndRxTxTransaction stm32f1xx_hal_spi.o - 0x08002cc2 0x08002cc2 0x00000002 PAD - 0x08002cc4 0x08002cc4 0x00000024 Code RO 3337 i.SPI_Get spi_1.o - 0x08002ce8 0x08002ce8 0x000000b8 Code RO 631 i.SPI_WaitFlagStateUntilTimeout stm32f1xx_hal_spi.o - 0x08002da0 0x08002da0 0x00000002 Code RO 406 i.SVC_Handler stm32f1xx_it.o - 0x08002da2 0x08002da2 0x0000003e Code RO 3887 i.SX1281Calibrate sx1281_driver.o - 0x08002de0 0x08002de0 0x00000018 Code RO 3888 i.SX1281ClearIrqStatus sx1281_driver.o - 0x08002df8 0x08002df8 0x0000001a Code RO 3889 i.SX1281GetFirmwareVersion sx1281_driver.o - 0x08002e12 0x08002e12 0x00000002 PAD - 0x08002e14 0x08002e14 0x00000098 Code RO 3890 i.SX1281GetFrequencyError sx1281_driver.o - 0x08002eac 0x08002eac 0x00000014 Code RO 3892 i.SX1281GetIrqStatus sx1281_driver.o - 0x08002ec0 0x08002ec0 0x0000003c Code RO 3893 i.SX1281GetLoRaBandwidth sx1281_driver.o - 0x08002efc 0x08002efc 0x0000000c Code RO 3894 i.SX1281GetOpMode sx1281_driver.o - 0x08002f08 0x08002f08 0x00000214 Code RO 3895 i.SX1281GetPacketStatus sx1281_driver.o - 0x0800311c 0x0800311c 0x0000000c Code RO 3896 i.SX1281GetPacketType sx1281_driver.o - 0x08003128 0x08003128 0x00000028 Code RO 3897 i.SX1281GetPayload sx1281_driver.o - 0x08003150 0x08003150 0x00000022 Code RO 3898 i.SX1281GetRssiInst sx1281_driver.o - 0x08003172 0x08003172 0x00000002 PAD - 0x08003174 0x08003174 0x00000048 Code RO 3899 i.SX1281GetRxBufferStatus sx1281_driver.o - 0x080031bc 0x080031bc 0x00000018 Code RO 3900 i.SX1281GetStatus sx1281_driver.o - 0x080031d4 0x080031d4 0x00000024 Code RO 4299 i.SX1281HalGetDioStatus sx1281_driver_hal.o - 0x080031f8 0x080031f8 0x00000012 Code RO 4300 i.SX1281HalInit sx1281_driver_hal.o - 0x0800320a 0x0800320a 0x00000002 PAD - 0x0800320c 0x0800320c 0x00000010 Code RO 4301 i.SX1281HalIoIrqInit sx1281_driver_hal.o - 0x0800321c 0x0800321c 0x0000006c Code RO 4302 i.SX1281HalReadBuffer sx1281_driver_hal.o - 0x08003288 0x08003288 0x0000006c Code RO 4303 i.SX1281HalReadCommand sx1281_driver_hal.o - 0x080032f4 0x080032f4 0x00000010 Code RO 4304 i.SX1281HalReadRegister sx1281_driver_hal.o - 0x08003304 0x08003304 0x00000070 Code RO 4305 i.SX1281HalReadRegisters sx1281_driver_hal.o - 0x08003374 0x08003374 0x00000034 Code RO 4306 i.SX1281HalReset sx1281_driver_hal.o - 0x080033a8 0x080033a8 0x0000001c Code RO 4307 i.SX1281HalWaitOnBusy sx1281_driver_hal.o - 0x080033c4 0x080033c4 0x00000048 Code RO 4308 i.SX1281HalWriteBuffer sx1281_driver_hal.o - 0x0800340c 0x0800340c 0x00000058 Code RO 4309 i.SX1281HalWriteCommand sx1281_driver_hal.o - 0x08003464 0x08003464 0x0000000c Code RO 4310 i.SX1281HalWriteRegister sx1281_driver_hal.o - 0x08003470 0x08003470 0x00000050 Code RO 4311 i.SX1281HalWriteRegisters sx1281_driver_hal.o - 0x080034c0 0x080034c0 0x00000010 Code RO 3901 i.SX1281Init sx1281_driver.o - 0x080034d0 0x080034d0 0x00000014 Code RO 3902 i.SX1281OnDioIrq sx1281_driver.o - 0x080034e4 0x080034e4 0x0000014c Code RO 3904 i.SX1281ProcessIrqs sx1281_driver.o - 0x08003630 0x08003630 0x00000012 Code RO 3905 i.SX1281SendPayload sx1281_driver.o - 0x08003642 0x08003642 0x0000000e Code RO 3906 i.SX1281SetAutoFS sx1281_driver.o - 0x08003650 0x08003650 0x0000001a Code RO 3907 i.SX1281SetAutoTx sx1281_driver.o - 0x0800366a 0x0800366a 0x00000034 Code RO 3908 i.SX1281SetBleAccessAddress sx1281_driver.o - 0x0800369e 0x0800369e 0x00000002 PAD - 0x080036a0 0x080036a0 0x0000000c Code RO 3909 i.SX1281SetBleAdvertizerAccessAddress sx1281_driver.o - 0x080036ac 0x080036ac 0x00000016 Code RO 3910 i.SX1281SetBufferBaseAddresses sx1281_driver.o - 0x080036c2 0x080036c2 0x00000002 PAD - 0x080036c4 0x080036c4 0x00000018 Code RO 3911 i.SX1281SetCad sx1281_driver.o - 0x080036dc 0x080036dc 0x00000018 Code RO 3912 i.SX1281SetCadParams sx1281_driver.o - 0x080036f4 0x080036f4 0x00000028 Code RO 3913 i.SX1281SetCrcPolynomial sx1281_driver.o - 0x0800371c 0x0800371c 0x00000028 Code RO 3914 i.SX1281SetCrcSeed sx1281_driver.o - 0x08003744 0x08003744 0x00000036 Code RO 3915 i.SX1281SetDioIrqParams sx1281_driver.o - 0x0800377a 0x0800377a 0x00000002 PAD - 0x0800377c 0x0800377c 0x00000018 Code RO 3916 i.SX1281SetFs sx1281_driver.o - 0x08003794 0x08003794 0x0000000c Code RO 3917 i.SX1281SetInterruptMode sx1281_driver.o - 0x080037a0 0x080037a0 0x0000000e Code RO 3918 i.SX1281SetLongPreamble sx1281_driver.o - 0x080037ae 0x080037ae 0x00000002 PAD - 0x080037b0 0x080037b0 0x00000094 Code RO 3919 i.SX1281SetModulationParams sx1281_driver.o - 0x08003844 0x08003844 0x000000d8 Code RO 3920 i.SX1281SetPacketParams sx1281_driver.o - 0x0800391c 0x0800391c 0x0000001c Code RO 3921 i.SX1281SetPacketType sx1281_driver.o - 0x08003938 0x08003938 0x0000000a Code RO 3922 i.SX1281SetPayload sx1281_driver.o - 0x08003942 0x08003942 0x00000002 PAD - 0x08003944 0x08003944 0x0000000c Code RO 3923 i.SX1281SetPollingMode sx1281_driver.o - 0x08003950 0x08003950 0x00000024 Code RO 3924 i.SX1281SetRegistersDefault sx1281_driver.o - 0x08003974 0x08003974 0x0000000e Code RO 3925 i.SX1281SetRegulatorMode sx1281_driver.o - 0x08003982 0x08003982 0x00000002 PAD - 0x08003984 0x08003984 0x00000034 Code RO 3926 i.SX1281SetRfFrequency sx1281_driver.o - 0x080039b8 0x080039b8 0x00000030 Code RO 3927 i.SX1281SetRx sx1281_driver.o - 0x080039e8 0x080039e8 0x00000030 Code RO 3928 i.SX1281SetRxDutyCycle sx1281_driver.o - 0x08003a18 0x08003a18 0x0000000a Code RO 3929 i.SX1281SetSaveContext sx1281_driver.o - 0x08003a22 0x08003a22 0x00000002 PAD - 0x08003a24 0x08003a24 0x00000038 Code RO 3930 i.SX1281SetSleep sx1281_driver.o - 0x08003a5c 0x08003a5c 0x00000024 Code RO 3931 i.SX1281SetStandby sx1281_driver.o - 0x08003a80 0x08003a80 0x0000006c Code RO 3932 i.SX1281SetSyncWord sx1281_driver.o - 0x08003aec 0x08003aec 0x00000022 Code RO 3933 i.SX1281SetSyncWordErrorTolerance sx1281_driver.o - 0x08003b0e 0x08003b0e 0x00000002 PAD - 0x08003b10 0x08003b10 0x00000030 Code RO 3934 i.SX1281SetTx sx1281_driver.o - 0x08003b40 0x08003b40 0x0000000a Code RO 3935 i.SX1281SetTxContinuousPreamble sx1281_driver.o - 0x08003b4a 0x08003b4a 0x0000000a Code RO 3936 i.SX1281SetTxContinuousWave sx1281_driver.o - 0x08003b54 0x08003b54 0x00000018 Code RO 3937 i.SX1281SetTxParams sx1281_driver.o - 0x08003b6c 0x08003b6c 0x00000020 Code RO 3938 i.SX1281SetWhiteningSeed sx1281_driver.o - 0x08003b8c 0x08003b8c 0x0000000e Code RO 4493 i.SX1281_BSPInit sx1281_header.o - 0x08003b9a 0x08003b9a 0x00000002 PAD - 0x08003b9c 0x08003b9c 0x00000148 Code RO 4648 i.SX1281_Callback mr16.o - 0x08003ce4 0x08003ce4 0x00000018 Code RO 3703 i.SX1281_GetState sx1281.o - 0x08003cfc 0x08003cfc 0x00000344 Code RO 3704 i.SX1281_Init sx1281.o - 0x08004040 0x08004040 0x00000018 Code RO 3705 i.SX1281_Running sx1281.o - 0x08004058 0x08004058 0x0000002c Code RO 3714 i.SX1281_SetRXSuccessive sx1281.o - 0x08004084 0x08004084 0x00000038 Code RO 3716 i.SX1281_SetTX sx1281.o - 0x080040bc 0x080040bc 0x00000018 Code RO 4421 i.SpiIn sx1281_driver_spi.o - 0x080040d4 0x080040d4 0x00000020 Code RO 4422 i.SpiInOut sx1281_driver_spi.o - 0x080040f4 0x080040f4 0x00000024 Code RO 4423 i.SpiInit sx1281_driver_spi.o - 0x08004118 0x08004118 0x00000004 Code RO 407 i.SysTick_Handler stm32f1xx_it.o - 0x0800411c 0x0800411c 0x00000060 Code RO 14 i.SystemClock_Config main.o - 0x0800417c 0x0800417c 0x00000002 Code RO 3213 i.SystemInit system_stm32f1xx.o - 0x0800417e 0x0800417e 0x00000002 PAD - 0x08004180 0x08004180 0x00000078 Code RO 1971 i.TIM_Base_SetConfig stm32f1xx_hal_tim.o - 0x080041f8 0x080041f8 0x00000014 Code RO 1982 i.TIM_ETR_SetConfig stm32f1xx_hal_tim.o - 0x0800420c 0x0800420c 0x00000010 Code RO 1983 i.TIM_ITRx_SetConfig stm32f1xx_hal_tim.o - 0x0800421c 0x0800421c 0x00000050 Code RO 1984 i.TIM_OC1_SetConfig stm32f1xx_hal_tim.o - 0x0800426c 0x0800426c 0x00000058 Code RO 1985 i.TIM_OC2_SetConfig stm32f1xx_hal_tim.o - 0x080042c4 0x080042c4 0x00000058 Code RO 1986 i.TIM_OC3_SetConfig stm32f1xx_hal_tim.o - 0x0800431c 0x0800431c 0x00000044 Code RO 1987 i.TIM_OC4_SetConfig stm32f1xx_hal_tim.o - 0x08004360 0x08004360 0x00000022 Code RO 1989 i.TIM_TI1_ConfigInputStage stm32f1xx_hal_tim.o - 0x08004382 0x08004382 0x00000024 Code RO 1991 i.TIM_TI2_ConfigInputStage stm32f1xx_hal_tim.o - 0x080043a6 0x080043a6 0x00000010 Code RO 2892 i.UART_DMAAbortOnError stm32f1xx_hal_uart.o - 0x080043b6 0x080043b6 0x0000004a Code RO 2893 i.UART_DMAError stm32f1xx_hal_uart.o - 0x08004400 0x08004400 0x00000086 Code RO 2894 i.UART_DMAReceiveCplt stm32f1xx_hal_uart.o - 0x08004486 0x08004486 0x0000001e Code RO 2896 i.UART_DMARxHalfCplt stm32f1xx_hal_uart.o - 0x080044a4 0x080044a4 0x0000004e Code RO 2902 i.UART_EndRxTransfer stm32f1xx_hal_uart.o - 0x080044f2 0x080044f2 0x0000001c Code RO 2903 i.UART_EndTxTransfer stm32f1xx_hal_uart.o - 0x0800450e 0x0800450e 0x00000002 PAD - 0x08004510 0x08004510 0x00000014 Code RO 3468 i.UART_Get uart.o - 0x08004524 0x08004524 0x000000c2 Code RO 2904 i.UART_Receive_IT stm32f1xx_hal_uart.o - 0x080045e6 0x080045e6 0x00000002 PAD - 0x080045e8 0x080045e8 0x000000b8 Code RO 2905 i.UART_SetConfig stm32f1xx_hal_uart.o - 0x080046a0 0x080046a0 0x00000090 Code RO 2906 i.UART_Start_Receive_DMA stm32f1xx_hal_uart.o - 0x08004730 0x08004730 0x00000072 Code RO 2908 i.UART_WaitOnFlagUntilTimeout stm32f1xx_hal_uart.o - 0x080047a2 0x080047a2 0x00000002 PAD - 0x080047a4 0x080047a4 0x00000018 Code RO 408 i.USART2_IRQHandler stm32f1xx_it.o - 0x080047bc 0x080047bc 0x00000094 Code RO 329 i.USAR_UART_IDLECallback usart.o - 0x08004850 0x08004850 0x00000050 Code RO 330 i.USER_UART_IRQHandler usart.o - 0x080048a0 0x080048a0 0x00000002 Code RO 409 i.UsageFault_Handler stm32f1xx_it.o - 0x080048a2 0x080048a2 0x00000002 PAD - 0x080048a4 0x080048a4 0x00000020 Code RO 4933 i.__0printf mc_w.l(printfa.o) - 0x080048c4 0x080048c4 0x00000020 Code RO 1389 i.__NVIC_SetPriority stm32f1xx_hal_cortex.o - 0x080048e4 0x080048e4 0x0000000e Code RO 5072 i.__scatterload_copy mc_w.l(handlers.o) - 0x080048f2 0x080048f2 0x00000002 Code RO 5073 i.__scatterload_null mc_w.l(handlers.o) - 0x080048f4 0x080048f4 0x0000000e Code RO 5074 i.__scatterload_zeroinit mc_w.l(handlers.o) - 0x08004902 0x08004902 0x00000002 PAD - 0x08004904 0x08004904 0x00000184 Code RO 4940 i._fp_digits mc_w.l(printfa.o) - 0x08004a88 0x08004a88 0x000006b4 Code RO 4941 i._printf_core mc_w.l(printfa.o) - 0x0800513c 0x0800513c 0x00000024 Code RO 4942 i._printf_post_padding mc_w.l(printfa.o) - 0x08005160 0x08005160 0x0000002e Code RO 4943 i._printf_pre_padding mc_w.l(printfa.o) - 0x0800518e 0x0800518e 0x00000018 Code RO 4494 i.fputc sx1281_header.o - 0x080051a6 0x080051a6 0x00000002 PAD - 0x080051a8 0x080051a8 0x00000044 Code RO 15 i.main main.o - 0x080051ec 0x080051ec 0x0000000c Code RO 4424 i.tx_cplt_cb sx1281_driver_spi.o - 0x080051f8 0x080051f8 0x0000000c Code RO 4425 i.txrx_cplt_cb sx1281_driver_spi.o - 0x08005204 0x08005204 0x00000012 Data RO 1087 .constdata stm32f1xx_hal_rcc.o - 0x08005216 0x08005216 0x00000010 Data RO 3214 .constdata system_stm32f1xx.o - 0x08005226 0x08005226 0x00000008 Data RO 3215 .constdata system_stm32f1xx.o - 0x0800522e 0x0800522e 0x00000002 PAD - 0x08005230 0x08005230 0x00000055 Data RO 3719 .constdata sx1281.o - 0x08005285 0x08005285 0x00000001 PAD - 0x08005286 0x08005286 0x00000004 Data RO 3939 .constdata sx1281_driver.o - 0x0800528a 0x0800528a 0x00000002 PAD - 0x0800528c 0x0800528c 0x000000e4 Data RO 4313 .constdata sx1281_driver_hal.o - 0x08005370 0x08005370 0x00000008 Data RO 4650 .constdata mr16.o - 0x08005378 0x08005378 0x00000020 Data RO 5070 Region$$Table anon$$obj.o + 0x080026c4 0x080026c4 0x00000028 Code RO 335 i.HAL_TIM_Base_MspInit tim.o + 0x080026ec 0x080026ec 0x000000dc Code RO 1938 i.HAL_TIM_ConfigClockSource stm32f1xx_hal_tim.o + 0x080027c8 0x080027c8 0x0000004c Code RO 336 i.HAL_TIM_MspPostInit tim.o + 0x08002814 0x08002814 0x000000cc Code RO 2001 i.HAL_TIM_PWM_ConfigChannel stm32f1xx_hal_tim.o + 0x080028e0 0x080028e0 0x0000005a Code RO 2004 i.HAL_TIM_PWM_Init stm32f1xx_hal_tim.o + 0x0800293a 0x0800293a 0x00000002 Code RO 2006 i.HAL_TIM_PWM_MspInit stm32f1xx_hal_tim.o + 0x0800293c 0x0800293c 0x00000002 Code RO 2912 i.HAL_UARTEx_RxEventCallback stm32f1xx_hal_uart.o + 0x0800293e 0x0800293e 0x00000070 Code RO 2924 i.HAL_UART_DMAStop stm32f1xx_hal_uart.o + 0x080029ae 0x080029ae 0x00000002 PAD + 0x080029b0 0x080029b0 0x00000028 Code RO 5269 i.HAL_UART_ErrorCallback uart.o + 0x080029d8 0x080029d8 0x0000026c Code RO 2929 i.HAL_UART_IRQHandler stm32f1xx_hal_uart.o + 0x08002c44 0x08002c44 0x00000064 Code RO 2930 i.HAL_UART_Init stm32f1xx_hal_uart.o + 0x08002ca8 0x08002ca8 0x00000118 Code RO 383 i.HAL_UART_MspInit usart.o + 0x08002dc0 0x08002dc0 0x0000001c Code RO 2934 i.HAL_UART_Receive_DMA stm32f1xx_hal_uart.o + 0x08002ddc 0x08002ddc 0x00000028 Code RO 5270 i.HAL_UART_RxCpltCallback uart.o + 0x08002e04 0x08002e04 0x00000028 Code RO 5271 i.HAL_UART_RxHalfCpltCallback uart.o + 0x08002e2c 0x08002e2c 0x000000a0 Code RO 2938 i.HAL_UART_Transmit stm32f1xx_hal_uart.o + 0x08002ecc 0x08002ecc 0x00000028 Code RO 5272 i.HAL_UART_TxCpltCallback uart.o + 0x08002ef4 0x08002ef4 0x00000002 Code RO 465 i.HardFault_Handler stm32f1xx_it.o + 0x08002ef6 0x08002ef6 0x00000052 Code RO 5454 i.LCD_Clear lcd.o + 0x08002f48 0x08002f48 0x00000080 Code RO 5455 i.LCD_DrawBitmap lcd.o + 0x08002fc8 0x08002fc8 0x00000164 Code RO 5456 i.LCD_DrawChar lcd.o + 0x0800312c 0x0800312c 0x0000005c Code RO 5461 i.LCD_DrawPoint lcd.o + 0x08003188 0x08003188 0x0000006e Code RO 5465 i.LCD_DrawString lcd.o + 0x080031f6 0x080031f6 0x00000002 PAD + 0x080031f8 0x080031f8 0x00000160 Code RO 5466 i.LCD_Init lcd.o + 0x08003358 0x08003358 0x00000064 Code RO 5467 i.LCD_SetAddressWindow lcd.o + 0x080033bc 0x080033bc 0x00000040 Code RO 5468 i.LCD_WriteCommand lcd.o + 0x080033fc 0x080033fc 0x00000040 Code RO 5469 i.LCD_WriteData lcd.o + 0x0800343c 0x0800343c 0x00000050 Code RO 5470 i.LCD_WriteDataBuffer lcd.o + 0x0800348c 0x0800348c 0x00000050 Code RO 5471 i.LCD_WriteDataBuffer_DMA lcd.o + 0x080034dc 0x080034dc 0x00000018 Code RO 6680 i.MR16_CLI_Init mr16.o + 0x080034f4 0x080034f4 0x00000070 Code RO 6681 i.MR16_Init mr16.o + 0x08003564 0x08003564 0x000000fc Code RO 6682 i.MR16_Main mr16.o + 0x08003660 0x08003660 0x0000000c Code RO 6683 i.MR16_NotifyUARTIdle mr16.o + 0x0800366c 0x0800366c 0x0000003a Code RO 6122 i.MSP_GetIRQn sx1281_driver_gpio.o + 0x080036a6 0x080036a6 0x00000002 PAD + 0x080036a8 0x080036a8 0x0000006c Code RO 262 i.MX_DMA_Init dma.o + 0x08003714 0x08003714 0x00000034 Code RO 215 i.MX_FREERTOS_Init freertos.o + 0x08003748 0x08003748 0x00000118 Code RO 191 i.MX_GPIO_Init gpio.o + 0x08003860 0x08003860 0x00000048 Code RO 288 i.MX_SPI1_Init spi.o + 0x080038a8 0x080038a8 0x00000048 Code RO 289 i.MX_SPI2_Init spi.o + 0x080038f0 0x080038f0 0x000000c4 Code RO 337 i.MX_TIM1_Init tim.o + 0x080039b4 0x080039b4 0x00000038 Code RO 385 i.MX_USART1_UART_Init usart.o + 0x080039ec 0x080039ec 0x00000038 Code RO 386 i.MX_USART2_UART_Init usart.o + 0x08003a24 0x08003a24 0x00000002 Code RO 466 i.MemManage_Handler stm32f1xx_it.o + 0x08003a26 0x08003a26 0x00000002 Code RO 467 i.NMI_Handler stm32f1xx_it.o + 0x08003a28 0x08003a28 0x00000014 Code RO 5593 i.OnRxDone sx1281.o + 0x08003a3c 0x08003a3c 0x00000014 Code RO 5594 i.OnRxError sx1281.o + 0x08003a50 0x08003a50 0x00000014 Code RO 5595 i.OnRxTimeout sx1281.o + 0x08003a64 0x08003a64 0x00000014 Code RO 5596 i.OnTxDone sx1281.o + 0x08003a78 0x08003a78 0x00000014 Code RO 5597 i.OnTxTimeout sx1281.o + 0x08003a8c 0x08003a8c 0x00000022 Code RO 1644 i.SPI_DMAError stm32f1xx_hal_spi.o + 0x08003aae 0x08003aae 0x0000000a Code RO 1645 i.SPI_DMAHalfReceiveCplt stm32f1xx_hal_spi.o + 0x08003ab8 0x08003ab8 0x0000000a Code RO 1646 i.SPI_DMAHalfTransmitCplt stm32f1xx_hal_spi.o + 0x08003ac2 0x08003ac2 0x0000000a Code RO 1647 i.SPI_DMAHalfTransmitReceiveCplt stm32f1xx_hal_spi.o + 0x08003acc 0x08003acc 0x0000006a Code RO 1648 i.SPI_DMAReceiveCplt stm32f1xx_hal_spi.o + 0x08003b36 0x08003b36 0x00000064 Code RO 1650 i.SPI_DMATransmitCplt stm32f1xx_hal_spi.o + 0x08003b9a 0x08003b9a 0x0000005a Code RO 1651 i.SPI_DMATransmitReceiveCplt stm32f1xx_hal_spi.o + 0x08003bf4 0x08003bf4 0x0000005c Code RO 1653 i.SPI_EndRxTransaction stm32f1xx_hal_spi.o + 0x08003c50 0x08003c50 0x00000034 Code RO 1654 i.SPI_EndRxTxTransaction stm32f1xx_hal_spi.o + 0x08003c84 0x08003c84 0x00000024 Code RO 5143 i.SPI_Get spi_1.o + 0x08003ca8 0x08003ca8 0x000000b8 Code RO 1659 i.SPI_WaitFlagStateUntilTimeout stm32f1xx_hal_spi.o + 0x08003d60 0x08003d60 0x0000003e Code RO 5780 i.SX1281Calibrate sx1281_driver.o + 0x08003d9e 0x08003d9e 0x00000018 Code RO 5781 i.SX1281ClearIrqStatus sx1281_driver.o + 0x08003db6 0x08003db6 0x0000001a Code RO 5782 i.SX1281GetFirmwareVersion sx1281_driver.o + 0x08003dd0 0x08003dd0 0x00000098 Code RO 5783 i.SX1281GetFrequencyError sx1281_driver.o + 0x08003e68 0x08003e68 0x00000014 Code RO 5785 i.SX1281GetIrqStatus sx1281_driver.o + 0x08003e7c 0x08003e7c 0x0000003c Code RO 5786 i.SX1281GetLoRaBandwidth sx1281_driver.o + 0x08003eb8 0x08003eb8 0x0000000c Code RO 5787 i.SX1281GetOpMode sx1281_driver.o + 0x08003ec4 0x08003ec4 0x00000214 Code RO 5788 i.SX1281GetPacketStatus sx1281_driver.o + 0x080040d8 0x080040d8 0x0000000c Code RO 5789 i.SX1281GetPacketType sx1281_driver.o + 0x080040e4 0x080040e4 0x00000028 Code RO 5790 i.SX1281GetPayload sx1281_driver.o + 0x0800410c 0x0800410c 0x00000022 Code RO 5791 i.SX1281GetRssiInst sx1281_driver.o + 0x0800412e 0x0800412e 0x00000002 PAD + 0x08004130 0x08004130 0x00000048 Code RO 5792 i.SX1281GetRxBufferStatus sx1281_driver.o + 0x08004178 0x08004178 0x00000018 Code RO 5793 i.SX1281GetStatus sx1281_driver.o + 0x08004190 0x08004190 0x00000024 Code RO 6192 i.SX1281HalGetDioStatus sx1281_driver_hal.o + 0x080041b4 0x080041b4 0x00000012 Code RO 6193 i.SX1281HalInit sx1281_driver_hal.o + 0x080041c6 0x080041c6 0x00000002 PAD + 0x080041c8 0x080041c8 0x00000010 Code RO 6194 i.SX1281HalIoIrqInit sx1281_driver_hal.o + 0x080041d8 0x080041d8 0x0000006c Code RO 6195 i.SX1281HalReadBuffer sx1281_driver_hal.o + 0x08004244 0x08004244 0x0000006c Code RO 6196 i.SX1281HalReadCommand sx1281_driver_hal.o + 0x080042b0 0x080042b0 0x00000010 Code RO 6197 i.SX1281HalReadRegister sx1281_driver_hal.o + 0x080042c0 0x080042c0 0x00000070 Code RO 6198 i.SX1281HalReadRegisters sx1281_driver_hal.o + 0x08004330 0x08004330 0x00000034 Code RO 6199 i.SX1281HalReset sx1281_driver_hal.o + 0x08004364 0x08004364 0x0000001c Code RO 6200 i.SX1281HalWaitOnBusy sx1281_driver_hal.o + 0x08004380 0x08004380 0x00000048 Code RO 6201 i.SX1281HalWriteBuffer sx1281_driver_hal.o + 0x080043c8 0x080043c8 0x00000058 Code RO 6202 i.SX1281HalWriteCommand sx1281_driver_hal.o + 0x08004420 0x08004420 0x0000000c Code RO 6203 i.SX1281HalWriteRegister sx1281_driver_hal.o + 0x0800442c 0x0800442c 0x00000050 Code RO 6204 i.SX1281HalWriteRegisters sx1281_driver_hal.o + 0x0800447c 0x0800447c 0x00000010 Code RO 5794 i.SX1281Init sx1281_driver.o + 0x0800448c 0x0800448c 0x00000014 Code RO 5795 i.SX1281OnDioIrq sx1281_driver.o + 0x080044a0 0x080044a0 0x0000014c Code RO 5797 i.SX1281ProcessIrqs sx1281_driver.o + 0x080045ec 0x080045ec 0x00000012 Code RO 5798 i.SX1281SendPayload sx1281_driver.o + 0x080045fe 0x080045fe 0x0000000e Code RO 5799 i.SX1281SetAutoFS sx1281_driver.o + 0x0800460c 0x0800460c 0x0000001a Code RO 5800 i.SX1281SetAutoTx sx1281_driver.o + 0x08004626 0x08004626 0x00000034 Code RO 5801 i.SX1281SetBleAccessAddress sx1281_driver.o + 0x0800465a 0x0800465a 0x00000002 PAD + 0x0800465c 0x0800465c 0x0000000c Code RO 5802 i.SX1281SetBleAdvertizerAccessAddress sx1281_driver.o + 0x08004668 0x08004668 0x00000016 Code RO 5803 i.SX1281SetBufferBaseAddresses sx1281_driver.o + 0x0800467e 0x0800467e 0x00000002 PAD + 0x08004680 0x08004680 0x00000018 Code RO 5804 i.SX1281SetCad sx1281_driver.o + 0x08004698 0x08004698 0x00000018 Code RO 5805 i.SX1281SetCadParams sx1281_driver.o + 0x080046b0 0x080046b0 0x00000028 Code RO 5806 i.SX1281SetCrcPolynomial sx1281_driver.o + 0x080046d8 0x080046d8 0x00000028 Code RO 5807 i.SX1281SetCrcSeed sx1281_driver.o + 0x08004700 0x08004700 0x00000036 Code RO 5808 i.SX1281SetDioIrqParams sx1281_driver.o + 0x08004736 0x08004736 0x00000002 PAD + 0x08004738 0x08004738 0x00000018 Code RO 5809 i.SX1281SetFs sx1281_driver.o + 0x08004750 0x08004750 0x0000000c Code RO 5810 i.SX1281SetInterruptMode sx1281_driver.o + 0x0800475c 0x0800475c 0x0000000e Code RO 5811 i.SX1281SetLongPreamble sx1281_driver.o + 0x0800476a 0x0800476a 0x00000002 PAD + 0x0800476c 0x0800476c 0x00000094 Code RO 5812 i.SX1281SetModulationParams sx1281_driver.o + 0x08004800 0x08004800 0x000000d8 Code RO 5813 i.SX1281SetPacketParams sx1281_driver.o + 0x080048d8 0x080048d8 0x0000001c Code RO 5814 i.SX1281SetPacketType sx1281_driver.o + 0x080048f4 0x080048f4 0x0000000a Code RO 5815 i.SX1281SetPayload sx1281_driver.o + 0x080048fe 0x080048fe 0x00000002 PAD + 0x08004900 0x08004900 0x0000000c Code RO 5816 i.SX1281SetPollingMode sx1281_driver.o + 0x0800490c 0x0800490c 0x00000024 Code RO 5817 i.SX1281SetRegistersDefault sx1281_driver.o + 0x08004930 0x08004930 0x0000000e Code RO 5818 i.SX1281SetRegulatorMode sx1281_driver.o + 0x0800493e 0x0800493e 0x00000002 PAD + 0x08004940 0x08004940 0x00000034 Code RO 5819 i.SX1281SetRfFrequency sx1281_driver.o + 0x08004974 0x08004974 0x00000030 Code RO 5820 i.SX1281SetRx sx1281_driver.o + 0x080049a4 0x080049a4 0x00000030 Code RO 5821 i.SX1281SetRxDutyCycle sx1281_driver.o + 0x080049d4 0x080049d4 0x0000000a Code RO 5822 i.SX1281SetSaveContext sx1281_driver.o + 0x080049de 0x080049de 0x00000002 PAD + 0x080049e0 0x080049e0 0x00000038 Code RO 5823 i.SX1281SetSleep sx1281_driver.o + 0x08004a18 0x08004a18 0x00000024 Code RO 5824 i.SX1281SetStandby sx1281_driver.o + 0x08004a3c 0x08004a3c 0x0000006c Code RO 5825 i.SX1281SetSyncWord sx1281_driver.o + 0x08004aa8 0x08004aa8 0x00000022 Code RO 5826 i.SX1281SetSyncWordErrorTolerance sx1281_driver.o + 0x08004aca 0x08004aca 0x00000002 PAD + 0x08004acc 0x08004acc 0x00000030 Code RO 5827 i.SX1281SetTx sx1281_driver.o + 0x08004afc 0x08004afc 0x0000000a Code RO 5828 i.SX1281SetTxContinuousPreamble sx1281_driver.o + 0x08004b06 0x08004b06 0x0000000a Code RO 5829 i.SX1281SetTxContinuousWave sx1281_driver.o + 0x08004b10 0x08004b10 0x00000018 Code RO 5830 i.SX1281SetTxParams sx1281_driver.o + 0x08004b28 0x08004b28 0x00000020 Code RO 5831 i.SX1281SetWhiteningSeed sx1281_driver.o + 0x08004b48 0x08004b48 0x0000000e Code RO 6386 i.SX1281_BSPInit sx1281_header.o + 0x08004b56 0x08004b56 0x00000002 PAD + 0x08004b58 0x08004b58 0x00000140 Code RO 6687 i.SX1281_Callback mr16.o + 0x08004c98 0x08004c98 0x00000018 Code RO 5599 i.SX1281_GetState sx1281.o + 0x08004cb0 0x08004cb0 0x0000034c Code RO 5600 i.SX1281_Init sx1281.o + 0x08004ffc 0x08004ffc 0x00000012 Code RO 5601 i.SX1281_Running sx1281.o + 0x0800500e 0x0800500e 0x00000002 PAD + 0x08005010 0x08005010 0x00000030 Code RO 5610 i.SX1281_SetRXSuccessive sx1281.o + 0x08005040 0x08005040 0x0000003c Code RO 5612 i.SX1281_SetTX sx1281.o + 0x0800507c 0x0800507c 0x00000018 Code RO 6314 i.SpiIn sx1281_driver_spi.o + 0x08005094 0x08005094 0x00000020 Code RO 6315 i.SpiInOut sx1281_driver_spi.o + 0x080050b4 0x080050b4 0x00000024 Code RO 6316 i.SpiInit sx1281_driver_spi.o + 0x080050d8 0x080050d8 0x0000000e Code RO 216 i.StartDefaultTask freertos.o + 0x080050e6 0x080050e6 0x00000018 Code RO 468 i.SysTick_Handler stm32f1xx_it.o + 0x080050fe 0x080050fe 0x00000060 Code RO 14 i.SystemClock_Config main.o + 0x0800515e 0x0800515e 0x00000002 Code RO 3264 i.SystemInit system_stm32f1xx.o + 0x08005160 0x08005160 0x00000078 Code RO 2022 i.TIM_Base_SetConfig stm32f1xx_hal_tim.o + 0x080051d8 0x080051d8 0x00000014 Code RO 2033 i.TIM_ETR_SetConfig stm32f1xx_hal_tim.o + 0x080051ec 0x080051ec 0x00000010 Code RO 2034 i.TIM_ITRx_SetConfig stm32f1xx_hal_tim.o + 0x080051fc 0x080051fc 0x00000050 Code RO 2035 i.TIM_OC1_SetConfig stm32f1xx_hal_tim.o + 0x0800524c 0x0800524c 0x00000058 Code RO 2036 i.TIM_OC2_SetConfig stm32f1xx_hal_tim.o + 0x080052a4 0x080052a4 0x00000058 Code RO 2037 i.TIM_OC3_SetConfig stm32f1xx_hal_tim.o + 0x080052fc 0x080052fc 0x00000044 Code RO 2038 i.TIM_OC4_SetConfig stm32f1xx_hal_tim.o + 0x08005340 0x08005340 0x00000022 Code RO 2040 i.TIM_TI1_ConfigInputStage stm32f1xx_hal_tim.o + 0x08005362 0x08005362 0x00000024 Code RO 2042 i.TIM_TI2_ConfigInputStage stm32f1xx_hal_tim.o + 0x08005386 0x08005386 0x00000002 PAD + 0x08005388 0x08005388 0x0000003c Code RO 6776 i.Task_Init init.o + 0x080053c4 0x080053c4 0x00000074 Code RO 6811 i.Task_radio radio.o + 0x08005438 0x08005438 0x00000010 Code RO 2943 i.UART_DMAAbortOnError stm32f1xx_hal_uart.o + 0x08005448 0x08005448 0x0000004a Code RO 2944 i.UART_DMAError stm32f1xx_hal_uart.o + 0x08005492 0x08005492 0x00000086 Code RO 2945 i.UART_DMAReceiveCplt stm32f1xx_hal_uart.o + 0x08005518 0x08005518 0x0000001e Code RO 2947 i.UART_DMARxHalfCplt stm32f1xx_hal_uart.o + 0x08005536 0x08005536 0x0000004e Code RO 2953 i.UART_EndRxTransfer stm32f1xx_hal_uart.o + 0x08005584 0x08005584 0x0000001c Code RO 2954 i.UART_EndTxTransfer stm32f1xx_hal_uart.o + 0x080055a0 0x080055a0 0x00000024 Code RO 5274 i.UART_Get uart.o + 0x080055c4 0x080055c4 0x000000c2 Code RO 2955 i.UART_Receive_IT stm32f1xx_hal_uart.o + 0x08005686 0x08005686 0x00000002 PAD + 0x08005688 0x08005688 0x000000b8 Code RO 2956 i.UART_SetConfig stm32f1xx_hal_uart.o + 0x08005740 0x08005740 0x00000090 Code RO 2957 i.UART_Start_Receive_DMA stm32f1xx_hal_uart.o + 0x080057d0 0x080057d0 0x00000072 Code RO 2959 i.UART_WaitOnFlagUntilTimeout stm32f1xx_hal_uart.o + 0x08005842 0x08005842 0x00000002 PAD + 0x08005844 0x08005844 0x00000018 Code RO 469 i.USART2_IRQHandler stm32f1xx_it.o + 0x0800585c 0x0800585c 0x00000094 Code RO 387 i.USAR_UART_IDLECallback usart.o + 0x080058f0 0x080058f0 0x00000050 Code RO 388 i.USER_UART_IRQHandler usart.o + 0x08005940 0x08005940 0x00000002 Code RO 470 i.UsageFault_Handler stm32f1xx_it.o + 0x08005942 0x08005942 0x00000002 PAD + 0x08005944 0x08005944 0x00000020 Code RO 7097 i.__0printf mc_w.l(printfa.o) + 0x08005964 0x08005964 0x00000034 Code RO 7098 i.__0snprintf mc_w.l(printfa.o) + 0x08005998 0x08005998 0x00000020 Code RO 1118 i.__NVIC_SetPriority stm32f1xx_hal_cortex.o + 0x080059b8 0x080059b8 0x0000000e Code RO 7238 i.__scatterload_copy mc_w.l(handlers.o) + 0x080059c6 0x080059c6 0x00000002 Code RO 7239 i.__scatterload_null mc_w.l(handlers.o) + 0x080059c8 0x080059c8 0x0000000e Code RO 7240 i.__scatterload_zeroinit mc_w.l(handlers.o) + 0x080059d6 0x080059d6 0x00000002 PAD + 0x080059d8 0x080059d8 0x00000184 Code RO 7104 i._fp_digits mc_w.l(printfa.o) + 0x08005b5c 0x08005b5c 0x000006b4 Code RO 7105 i._printf_core mc_w.l(printfa.o) + 0x08006210 0x08006210 0x00000024 Code RO 7106 i._printf_post_padding mc_w.l(printfa.o) + 0x08006234 0x08006234 0x0000002e Code RO 7107 i._printf_pre_padding mc_w.l(printfa.o) + 0x08006262 0x08006262 0x00000016 Code RO 7108 i._snputc mc_w.l(printfa.o) + 0x08006278 0x08006278 0x00000074 Code RO 3870 i.eTaskGetState tasks.o + 0x080062ec 0x080062ec 0x00000018 Code RO 6387 i.fputc sx1281_header.o + 0x08006304 0x08006304 0x00000050 Code RO 7125 i.free mc_w.l(malloc.o) + 0x08006354 0x08006354 0x00000032 Code RO 15 i.main main.o + 0x08006386 0x08006386 0x00000002 PAD + 0x08006388 0x08006388 0x0000006c Code RO 7126 i.malloc mc_w.l(malloc.o) + 0x080063f4 0x080063f4 0x000001e0 Code RO 6688 i.mr16CommandHandler mr16.o + 0x080065d4 0x080065d4 0x0000001a Code RO 4412 i.osDelay cmsis_os2.o + 0x080065ee 0x080065ee 0x0000002e Code RO 4413 i.osDelayUntil cmsis_os2.o + 0x0800661c 0x0800661c 0x0000000e Code RO 4424 i.osKernelGetTickCount cmsis_os2.o + 0x0800662a 0x0800662a 0x00000006 Code RO 4425 i.osKernelGetTickFreq cmsis_os2.o + 0x08006630 0x08006630 0x00000024 Code RO 4426 i.osKernelInitialize cmsis_os2.o + 0x08006654 0x08006654 0x0000002a Code RO 4427 i.osKernelLock cmsis_os2.o + 0x0800667e 0x0800667e 0x00000002 PAD + 0x08006680 0x08006680 0x00000038 Code RO 4429 i.osKernelStart cmsis_os2.o + 0x080066b8 0x080066b8 0x0000003a Code RO 4430 i.osKernelUnlock cmsis_os2.o + 0x080066f2 0x080066f2 0x00000058 Code RO 4446 i.osMessageQueueNew cmsis_os2.o + 0x0800674a 0x0800674a 0x00000004 Code RO 4466 i.osThreadGetId cmsis_os2.o + 0x0800674e 0x0800674e 0x00000002 PAD + 0x08006750 0x08006750 0x0000008a Code RO 4471 i.osThreadNew cmsis_os2.o + 0x080067da 0x080067da 0x00000034 Code RO 4475 i.osThreadTerminate cmsis_os2.o + 0x0800680e 0x0800680e 0x00000002 PAD + 0x08006810 0x08006810 0x0000005c Code RO 3872 i.prvAddCurrentTaskToDelayedList tasks.o + 0x0800686c 0x0800686c 0x000000d0 Code RO 3873 i.prvAddNewTaskToReadyList tasks.o + 0x0800693c 0x0800693c 0x00000058 Code RO 4237 i.prvCheckForValidListAndQueue timers.o + 0x08006994 0x08006994 0x00000026 Code RO 3469 i.prvCopyDataFromQueue queue.o + 0x080069ba 0x080069ba 0x0000006c Code RO 3470 i.prvCopyDataToQueue queue.o + 0x08006a26 0x08006a26 0x00000034 Code RO 3874 i.prvDeleteTCB tasks.o + 0x08006a5a 0x08006a5a 0x00000002 PAD + 0x08006a5c 0x08006a5c 0x0000004c Code RO 4918 i.prvHeapInit heap_4.o + 0x08006aa8 0x08006aa8 0x0000002c Code RO 6540 i.prvHelpCommand freertos_cli.o + 0x08006ad4 0x08006ad4 0x00000060 Code RO 3875 i.prvIdleTask tasks.o + 0x08006b34 0x08006b34 0x00000022 Code RO 3472 i.prvInitialiseNewQueue queue.o + 0x08006b56 0x08006b56 0x00000002 PAD + 0x08006b58 0x08006b58 0x000000b0 Code RO 3876 i.prvInitialiseNewTask tasks.o + 0x08006c08 0x08006c08 0x0000004c Code RO 4919 i.prvInsertBlockIntoFreeList heap_4.o + 0x08006c54 0x08006c54 0x00000038 Code RO 4239 i.prvInsertTimerInActiveList timers.o + 0x08006c8c 0x08006c8c 0x0000001c Code RO 3473 i.prvIsQueueEmpty queue.o + 0x08006ca8 0x08006ca8 0x000000fc Code RO 4240 i.prvProcessReceivedCommands timers.o + 0x08006da4 0x08006da4 0x000000c0 Code RO 4241 i.prvProcessTimerOrBlockTask timers.o + 0x08006e64 0x08006e64 0x00000020 Code RO 3878 i.prvResetNextTaskUnblockTime tasks.o + 0x08006e84 0x08006e84 0x00000028 Code RO 4242 i.prvSampleTimeNow timers.o + 0x08006eac 0x08006eac 0x0000006c Code RO 4243 i.prvSwitchTimerLists timers.o + 0x08006f18 0x08006f18 0x00000028 Code RO 4974 i.prvTaskExitError port.o + 0x08006f40 0x08006f40 0x00000024 Code RO 4244 i.prvTimerTask timers.o + 0x08006f64 0x08006f64 0x0000006a Code RO 3474 i.prvUnlockQueue queue.o + 0x08006fce 0x08006fce 0x00000002 PAD + 0x08006fd0 0x08006fd0 0x000000dc Code RO 4920 i.pvPortMalloc heap_4.o + 0x080070ac 0x080070ac 0x00000024 Code RO 4975 i.pxPortInitialiseStack port.o + 0x080070d0 0x080070d0 0x000000b8 Code RO 6689 i.radioCommandHandler mr16.o + 0x08007188 0x08007188 0x0000000c Code RO 6317 i.tx_cplt_cb sx1281_driver_spi.o + 0x08007194 0x08007194 0x0000000c Code RO 6318 i.txrx_cplt_cb sx1281_driver_spi.o + 0x080071a0 0x080071a0 0x00000026 Code RO 3429 i.uxListRemove list.o + 0x080071c6 0x080071c6 0x00000002 PAD + 0x080071c8 0x080071c8 0x00000014 Code RO 4483 i.vApplicationGetIdleTaskMemory cmsis_os2.o + 0x080071dc 0x080071dc 0x00000018 Code RO 4484 i.vApplicationGetTimerTaskMemory cmsis_os2.o + 0x080071f4 0x080071f4 0x00000016 Code RO 3430 i.vListInitialise list.o + 0x0800720a 0x0800720a 0x00000006 Code RO 3431 i.vListInitialiseItem list.o + 0x08007210 0x08007210 0x00000030 Code RO 3432 i.vListInsert list.o + 0x08007240 0x08007240 0x00000018 Code RO 3433 i.vListInsertEnd list.o + 0x08007258 0x08007258 0x00000040 Code RO 4977 i.vPortEnterCritical port.o + 0x08007298 0x08007298 0x00000028 Code RO 4978 i.vPortExitCritical port.o + 0x080072c0 0x080072c0 0x00000064 Code RO 4921 i.vPortFree heap_4.o + 0x08007324 0x08007324 0x00000024 Code RO 4979 i.vPortSetupTimerInterrupt port.o + 0x08007348 0x08007348 0x00000054 Code RO 4980 i.vPortValidateInterruptPriority port.o + 0x0800739c 0x0800739c 0x00000028 Code RO 3480 i.vQueueAddToRegistry queue.o + 0x080073c4 0x080073c4 0x00000044 Code RO 3484 i.vQueueWaitForMessageRestricted queue.o + 0x08007408 0x08007408 0x0000004c Code RO 3891 i.vTaskDelay tasks.o + 0x08007454 0x08007454 0x0000008c Code RO 3892 i.vTaskDelayUntil tasks.o + 0x080074e0 0x080074e0 0x00000090 Code RO 3893 i.vTaskDelete tasks.o + 0x08007570 0x08007570 0x00000010 Code RO 3896 i.vTaskInternalSetTimeOutState tasks.o + 0x08007580 0x08007580 0x0000000c Code RO 3897 i.vTaskMissedYield tasks.o + 0x0800758c 0x0800758c 0x00000030 Code RO 3899 i.vTaskPlaceOnEventList tasks.o + 0x080075bc 0x080075bc 0x00000038 Code RO 3900 i.vTaskPlaceOnEventListRestricted tasks.o + 0x080075f4 0x080075f4 0x00000088 Code RO 3908 i.vTaskStartScheduler tasks.o + 0x0800767c 0x0800767c 0x00000010 Code RO 3910 i.vTaskSuspendAll tasks.o + 0x0800768c 0x0800768c 0x00000064 Code RO 3911 i.vTaskSwitchContext tasks.o + 0x080076f0 0x080076f0 0x000000a8 Code RO 4981 i.xPortStartScheduler port.o + 0x08007798 0x08007798 0x0000002c Code RO 4982 i.xPortSysTickHandler port.o + 0x080077c4 0x080077c4 0x00000042 Code RO 3489 i.xQueueGenericCreate queue.o + 0x08007806 0x08007806 0x00000066 Code RO 3490 i.xQueueGenericCreateStatic queue.o + 0x0800786c 0x0800786c 0x00000088 Code RO 3491 i.xQueueGenericReset queue.o + 0x080078f4 0x080078f4 0x00000160 Code RO 3492 i.xQueueGenericSend queue.o + 0x08007a54 0x08007a54 0x000000be Code RO 3493 i.xQueueGenericSendFromISR queue.o + 0x08007b12 0x08007b12 0x00000002 PAD + 0x08007b14 0x08007b14 0x00000138 Code RO 3502 i.xQueueReceive queue.o + 0x08007c4c 0x08007c4c 0x00000074 Code RO 3913 i.xTaskCheckForTimeOut tasks.o + 0x08007cc0 0x08007cc0 0x0000005a Code RO 3914 i.xTaskCreate tasks.o + 0x08007d1a 0x08007d1a 0x00000056 Code RO 3915 i.xTaskCreateStatic tasks.o + 0x08007d70 0x08007d70 0x0000000c Code RO 3918 i.xTaskGetCurrentTaskHandle tasks.o + 0x08007d7c 0x08007d7c 0x0000001c Code RO 3919 i.xTaskGetSchedulerState tasks.o + 0x08007d98 0x08007d98 0x0000000c Code RO 3920 i.xTaskGetTickCount tasks.o + 0x08007da4 0x08007da4 0x00000010 Code RO 3921 i.xTaskGetTickCountFromISR tasks.o + 0x08007db4 0x08007db4 0x000000c8 Code RO 3922 i.xTaskIncrementTick tasks.o + 0x08007e7c 0x08007e7c 0x00000080 Code RO 3925 i.xTaskPriorityDisinherit tasks.o + 0x08007efc 0x08007efc 0x00000070 Code RO 3927 i.xTaskRemoveFromEventList tasks.o + 0x08007f6c 0x08007f6c 0x000000c4 Code RO 3928 i.xTaskResumeAll tasks.o + 0x08008030 0x08008030 0x00000060 Code RO 4253 i.xTimerCreateTimerTask timers.o + 0x08008090 0x08008090 0x00000068 Code RO 4254 i.xTimerGenericCommand timers.o + 0x080080f8 0x080080f8 0x00000024 Data RO 217 .constdata freertos.o + 0x0800811c 0x0800811c 0x00000012 Data RO 816 .constdata stm32f1xx_hal_rcc.o + 0x0800812e 0x0800812e 0x00000010 Data RO 3265 .constdata system_stm32f1xx.o + 0x0800813e 0x0800813e 0x00000008 Data RO 3266 .constdata system_stm32f1xx.o + 0x08008146 0x08008146 0x00002f80 Data RO 5472 .constdata lcd.o + 0x0800b0c6 0x0800b0c6 0x00000200 Data RO 5473 .constdata lcd.o + 0x0800b2c6 0x0800b2c6 0x00000002 PAD + 0x0800b2c8 0x0800b2c8 0x00000049 Data RO 5614 .constdata sx1281.o + 0x0800b311 0x0800b311 0x00000001 PAD + 0x0800b312 0x0800b312 0x00000004 Data RO 5832 .constdata sx1281_driver.o + 0x0800b316 0x0800b316 0x00000002 PAD + 0x0800b318 0x0800b318 0x000000e4 Data RO 6206 .constdata sx1281_driver_hal.o + 0x0800b3fc 0x0800b3fc 0x00000010 Data RO 6542 .constdata freertos_cli.o + 0x0800b40c 0x0800b40c 0x00000024 Data RO 6691 .constdata mr16.o + 0x0800b430 0x0800b430 0x00000024 Data RO 6793 .constdata user_task.o + 0x0800b454 0x0800b454 0x00000024 Data RO 6794 .constdata user_task.o + 0x0800b478 0x0800b478 0x00000040 Data RO 7234 .constdata mc_w.l(ctype_c.o) + 0x0800b4b8 0x0800b4b8 0x0000000c Data RO 218 .conststring freertos.o + 0x0800b4c4 0x0800b4c4 0x00000035 Data RO 6543 .conststring freertos_cli.o + 0x0800b4f9 0x0800b4f9 0x00000003 PAD + 0x0800b4fc 0x0800b4fc 0x000000a8 Data RO 6544 .conststring freertos_cli.o + 0x0800b5a4 0x0800b5a4 0x0000007e Data RO 6692 .conststring mr16.o + 0x0800b622 0x0800b622 0x00000002 PAD + 0x0800b624 0x0800b624 0x0000000a Data RO 6795 .conststring user_task.o + 0x0800b62e 0x0800b62e 0x00000002 PAD + 0x0800b630 0x0800b630 0x00000020 Data RO 7236 Region$$Table anon$$obj.o - Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x08005398, Size: 0x00002c78, Max: 0x00005000, ABSOLUTE) + Execution Region RW_IRAM1 (Exec base: 0x20000000, Load base: 0x0800b650, Size: 0x00004ae0, Max: 0x00005000, ABSOLUTE) Exec Addr Load Addr Size Type Attr Idx E Section Name Object - 0x20000000 0x08005398 0x00000001 Data RW 332 .data usart.o - 0x20000001 0x08005399 0x00000003 PAD - 0x20000004 0x0800539c 0x0000000c Data RW 924 .data stm32f1xx_hal.o - 0x20000010 0x080053a8 0x00000004 Data RW 3216 .data system_stm32f1xx.o - 0x20000014 0x080053ac 0x00000028 Data RW 3720 .data sx1281.o - 0x2000003c 0x080053d4 0x00000010 Data RW 3940 .data sx1281_driver.o - 0x2000004c 0x080053e4 0x00000001 Data RW 4426 .data sx1281_driver_spi.o - 0x2000004d 0x080053e5 0x00000003 PAD - 0x20000050 0x080053e8 0x00000008 Data RW 4651 .data mr16.o - 0x20000058 0x080053f0 0x00000004 Data RW 5033 .data mc_w.l(stdout.o) - 0x2000005c - 0x0000017c Zero RW 233 .bss spi.o - 0x200001d8 - 0x00000048 Zero RW 281 .bss tim.o - 0x20000220 - 0x00000316 Zero RW 331 .bss usart.o - 0x20000536 0x080053f4 0x00000002 PAD - 0x20000538 - 0x00000040 Zero RW 3257 .bss gpio_1.o - 0x20000578 - 0x00000040 Zero RW 3338 .bss spi_1.o - 0x200005b8 - 0x00000024 Zero RW 3469 .bss uart.o - 0x200005dc - 0x000000ff Zero RW 3718 .bss sx1281.o - 0x200006db 0x080053f4 0x00000001 PAD - 0x200006dc - 0x00000040 Zero RW 4230 .bss sx1281_driver_gpio.o - 0x2000071c - 0x00001ffe Zero RW 4312 .bss sx1281_driver_hal.o - 0x2000271a 0x080053f4 0x00000006 PAD - 0x20002720 - 0x00000158 Zero RW 4649 .bss mr16.o - 0x20002878 - 0x00000400 Zero RW 1 STACK startup_stm32f103xb.o + 0x20000000 0x0800b650 0x00000004 Data RW 219 .data freertos.o + 0x20000004 0x0800b654 0x00000001 Data RW 390 .data usart.o + 0x20000005 0x0800b655 0x00000003 PAD + 0x20000008 0x0800b658 0x0000000c Data RW 653 .data stm32f1xx_hal.o + 0x20000014 0x0800b664 0x00000004 Data RW 3267 .data system_stm32f1xx.o + 0x20000018 0x0800b668 0x0000003c Data RW 3931 .data tasks.o + 0x20000054 0x0800b6a4 0x00000014 Data RW 4262 .data timers.o + 0x20000068 0x0800b6b8 0x00000004 Data RW 4486 .data cmsis_os2.o + 0x2000006c 0x0800b6bc 0x00000020 Data RW 4927 .data heap_4.o + 0x2000008c 0x0800b6dc 0x0000000c Data RW 4983 .data port.o + 0x20000098 0x0800b6e8 0x00000001 Data RW 5474 .data lcd.o + 0x20000099 0x0800b6e9 0x00000003 PAD + 0x2000009c 0x0800b6ec 0x00000028 Data RW 5615 .data sx1281.o + 0x200000c4 0x0800b714 0x00000010 Data RW 5833 .data sx1281_driver.o + 0x200000d4 0x0800b724 0x00000001 Data RW 6319 .data sx1281_driver_spi.o + 0x200000d5 0x0800b725 0x00000003 PAD + 0x200000d8 0x0800b728 0x00000014 Data RW 6545 .data freertos_cli.o + 0x200000ec 0x0800b73c 0x00000004 Data RW 6693 .data mr16.o + 0x200000f0 0x0800b740 0x00000001 Data RW 6813 .data radio.o + 0x200000f1 0x0800b741 0x00000003 PAD + 0x200000f4 0x0800b744 0x00000004 Data RW 7197 .data mc_w.l(stdout.o) + 0x200000f8 0x0800b748 0x00000004 Data RW 7204 .data mc_w.l(mvars.o) + 0x200000fc 0x0800b74c 0x00000004 Data RW 7205 .data mc_w.l(mvars.o) + 0x20000100 - 0x0000017c Zero RW 290 .bss spi.o + 0x2000027c - 0x00000048 Zero RW 338 .bss tim.o + 0x200002c4 - 0x00000316 Zero RW 389 .bss usart.o + 0x200005da 0x0800b750 0x00000002 PAD + 0x200005dc - 0x00000040 Zero RW 3506 .bss queue.o + 0x2000061c - 0x000004c4 Zero RW 3930 .bss tasks.o + 0x20000ae0 - 0x00000118 Zero RW 4261 .bss timers.o + 0x20000bf8 - 0x000006b8 Zero RW 4485 .bss cmsis_os2.o + 0x200012b0 - 0x00000c00 Zero RW 4926 .bss heap_4.o + 0x20001eb0 - 0x00000040 Zero RW 5060 .bss gpio_1.o + 0x20001ef0 - 0x00000040 Zero RW 5144 .bss spi_1.o + 0x20001f30 - 0x00000048 Zero RW 5275 .bss uart.o + 0x20001f78 - 0x00000040 Zero RW 6123 .bss sx1281_driver_gpio.o + 0x20001fb8 - 0x00001ffe Zero RW 6205 .bss sx1281_driver_hal.o + 0x20003fb6 0x0800b750 0x00000002 PAD + 0x20003fb8 - 0x00000467 Zero RW 6690 .bss mr16.o + 0x2000441f 0x0800b750 0x00000001 PAD + 0x20004420 - 0x00000020 Zero RW 6792 .bss user_task.o + 0x20004440 - 0x0000009c Zero RW 6812 .bss radio.o + 0x200044dc 0x0800b750 0x00000004 PAD + 0x200044e0 - 0x00000200 Zero RW 2 HEAP startup_stm32f103xb.o + 0x200046e0 - 0x00000400 Zero RW 1 STACK startup_stm32f103xb.o ============================================================================== @@ -3056,45 +4551,66 @@ Image component sizes Code (inc. data) RO Data RW Data ZI Data Debug Object Name + 610 22 0 4 1720 63109 cmsis_os2.o 108 4 0 0 0 714 dma.o + 0 0 0 0 0 19436 event_groups.o + 66 22 48 4 0 1601 freertos.o + 402 24 237 20 0 5462 freertos_cli.o 280 22 0 0 0 915 gpio.o 44 4 0 0 64 1109 gpio_1.o - 168 8 0 0 0 445730 main.o - 352 170 8 8 344 1356 mr16.o + 472 24 0 32 3072 4539 heap_4.o + 60 12 0 0 0 444 init.o + 1508 100 12672 1 0 13550 lcd.o + 138 0 0 0 0 3174 list.o + 150 0 0 0 0 444752 main.o + 1384 430 162 4 1127 20830 mr16.o + 662 70 0 12 0 10285 port.o + 1580 20 0 0 64 17454 queue.o + 116 16 0 1 156 1187 radio.o 456 48 0 0 380 2365 spi.o - 552 68 0 0 64 7930 spi_1.o - 36 8 236 0 1024 764 startup_stm32f103xb.o + 576 68 0 0 64 8481 spi_1.o + 36 8 236 0 1536 764 startup_stm32f103xb.o 164 28 0 12 0 5601 stm32f1xx_hal.o 198 14 0 0 0 28723 stm32f1xx_hal_cortex.o 808 36 0 0 0 4726 stm32f1xx_hal_dma.o 524 40 0 0 0 3922 stm32f1xx_hal_gpio.o - 60 8 0 0 0 798 stm32f1xx_hal_msp.o + 72 10 0 0 0 794 stm32f1xx_hal_msp.o 1248 86 18 0 0 4924 stm32f1xx_hal_rcc.o - 2196 38 0 0 0 12409 stm32f1xx_hal_spi.o + 2202 38 0 0 0 12928 stm32f1xx_hal_spi.o 1156 32 0 0 0 10388 stm32f1xx_hal_tim.o 188 12 0 0 0 2036 stm32f1xx_hal_tim_ex.o 2128 24 0 0 0 13304 stm32f1xx_hal_uart.o - 136 36 0 0 0 6889 stm32f1xx_it.o - 1084 316 85 40 255 20260 sx1281.o + 152 36 0 0 0 6182 stm32f1xx_it.o + 0 0 0 0 0 392 stream_buffer.o + 1094 316 73 40 0 20378 sx1281.o 2794 170 4 16 0 39275 sx1281_driver.o 174 6 0 0 64 5325 sx1281_driver_gpio.o 746 84 228 0 8190 21546 sx1281_driver_hal.o 116 30 0 1 0 2869 sx1281_driver_spi.o 38 0 0 0 0 949 sx1281_header.o 2 0 24 4 0 1007 system_stm32f1xx.o + 2512 210 0 60 1220 29223 tasks.o 312 30 0 0 72 2172 tim.o - 196 34 0 0 36 4288 uart.o - 620 120 0 1 790 3687 usart.o + 972 80 0 20 280 31411 timers.o + 224 44 0 0 72 4352 uart.o + 620 120 0 1 790 3669 usart.o + 0 0 82 0 32 1252 user_task.o ---------------------------------------------------------------------- - 16942 1476 640 88 11292 655981 Object Totals + 27164 2340 13828 244 18912 877519 Object Totals 0 0 32 0 0 0 (incl. Generated) - 58 0 5 6 9 0 (incl. Padding) + 72 0 12 12 9 0 (incl. Padding) ---------------------------------------------------------------------- Code (inc. data) RO Data RW Data ZI Data Debug Library Member Name + 56 8 0 0 0 84 __0sscanf.o + 28 0 0 0 0 68 _chval.o + 816 6 0 0 0 112 _scanf.o + 332 0 0 0 0 96 _scanf_int.o + 64 0 0 0 0 84 _sgetc.o + 40 6 64 0 0 68 ctype_c.o 0 0 0 0 0 0 entry.o 0 0 0 0 0 0 entry10a.o 0 0 0 0 0 0 entry11a.o @@ -3106,15 +4622,25 @@ Image component sizes 8 4 0 0 0 0 entry9a.o 30 0 0 0 0 0 handlers.o 36 8 0 0 0 68 init.o + 10 0 0 0 0 68 isspace_c.o 0 0 0 0 0 0 iusefp.o 30 0 0 0 0 68 llshl.o 36 0 0 0 0 68 llsshr.o 32 0 0 0 0 68 llushr.o + 188 20 0 0 0 160 malloc.o 36 0 0 0 0 68 memcpya.o 36 0 0 0 0 108 memseta.o - 2218 90 0 0 0 464 printfa.o + 0 0 0 8 0 0 mvars.o + 2292 94 0 0 0 620 printfa.o + 40 8 0 0 0 84 scanf_char.o 0 0 0 4 0 0 stdout.o + 42 0 0 0 0 84 strcasecmp.o + 28 0 0 0 0 76 strcmp.o 18 0 0 0 0 68 strcpy.o + 14 0 0 0 0 68 strlen.o + 30 0 0 0 0 80 strncmp.o + 24 0 0 0 0 76 strncpy.o + 12 0 0 0 0 68 tolower.o 44 0 0 0 0 80 uidiv.o 98 0 0 0 0 92 uldiv.o 48 0 0 0 0 68 cdrcmple.o @@ -3128,18 +4654,18 @@ Image component sizes 228 0 0 0 0 96 dmul.o ---------------------------------------------------------------------- - 3818 106 0 4 0 2036 Library Totals + 5616 158 64 12 0 3468 Library Totals 4 0 0 0 0 0 (incl. Padding) ---------------------------------------------------------------------- Code (inc. data) RO Data RW Data ZI Data Debug Library Name - 2638 106 0 4 0 1152 mc_w.l + 4436 158 64 12 0 2584 mc_w.l 1176 0 0 0 0 884 mf_w.l ---------------------------------------------------------------------- - 3818 106 0 4 0 2036 Library Totals + 5616 158 64 12 0 3468 Library Totals ---------------------------------------------------------------------- @@ -3148,15 +4674,15 @@ Image component sizes Code (inc. data) RO Data RW Data ZI Data Debug - 20760 1582 640 92 11292 646209 Grand Totals - 20760 1582 640 92 11292 646209 ELF Image Totals - 20760 1582 640 92 0 0 ROM Totals + 32780 2498 13892 256 18912 862731 Grand Totals + 32780 2498 13892 256 18912 862731 ELF Image Totals + 32780 2498 13892 256 0 0 ROM Totals ============================================================================== - Total RO Size (Code + RO Data) 21400 ( 20.90kB) - Total RW Size (RW Data + ZI Data) 11384 ( 11.12kB) - Total ROM Size (Code + RO Data + RW Data) 21492 ( 20.99kB) + Total RO Size (Code + RO Data) 46672 ( 45.58kB) + Total RW Size (RW Data + ZI Data) 19168 ( 18.72kB) + Total ROM Size (Code + RO Data + RW Data) 46928 ( 45.83kB) ============================================================================== diff --git a/MDK-ARM/MR16/MR16_MR16.dep b/MDK-ARM/MR16/MR16_MR16.dep index 2aee99d..c1ba6d5 100644 --- a/MDK-ARM/MR16/MR16_MR16.dep +++ b/MDK-ARM/MR16/MR16_MR16.dep @@ -1,7 +1,7 @@ Dependencies for Project 'MR16', Target 'MR16': (DO NOT MODIFY !) CompilerVersion: 5060960::V5.06 update 7 (build 960)::.\ARMCC -F (startup_stm32f103xb.s)(0x692B9FCE)(--cpu Cortex-M3 -g --apcs=interwork --pd "__MICROLIB SETA 1" -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include --pd "__UVISION_VERSION SETA 534" --pd "_RTE_ SETA 1" --pd "STM32F10X_MD SETA 1" --pd "_RTE_ SETA 1" --list startup_stm32f103xb.lst --xref -o mr16\startup_stm32f103xb.o --depend mr16\startup_stm32f103xb.d) -F (../Core/Src/main.c)(0x692C384A)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\main.o --omf_browse mr16\main.crf --depend mr16\main.d) +F (startup_stm32f103xb.s)(0x692FD41F)(--cpu Cortex-M3 -g --apcs=interwork --pd "__MICROLIB SETA 1" -I ../Drivers/CMSIS/Include -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include --pd "__UVISION_VERSION SETA 534" --pd "_RTE_ SETA 1" --pd "STM32F10X_MD SETA 1" --pd "_RTE_ SETA 1" --list startup_stm32f103xb.lst --xref -o mr16\startup_stm32f103xb.o --depend mr16\startup_stm32f103xb.d) +F (../Core/Src/main.c)(0x692EA2F7)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\main.o --omf_browse mr16\main.crf --depend mr16\main.d) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) @@ -31,19 +31,23 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) I (../Core/Inc/dma.h)(0x6925BA29) I (../Core/Inc/spi.h)(0x691B56EA) I (../Core/Inc/tim.h)(0x691B56EA) -I (../Core/Inc/usart.h)(0x691B56EA) +I (../Core/Inc/usart.h)(0x692EE31B) I (../Core/Inc/gpio.h)(0x691B56EA) -I (../User/module/mr16.h)(0x692C3830) -I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) -I (../User/device/sx1281_driver/radio.h)(0x692C10EB) -I (../User/device/sx1281_driver/sx1281_driver.h)(0x692BE260) -I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) -I (../User/device/sx1281_driver/sx1281.h)(0x692C17B9) -I (../User/device/device.h)(0x691D6BB5) -F (../Core/Src/gpio.c)(0x692B9ECD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\gpio.o --omf_browse mr16\gpio.crf --depend mr16\gpio.d) +F (../Core/Src/gpio.c)(0x692B9ECD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\gpio.o --omf_browse mr16\gpio.crf --depend mr16\gpio.d) I (../Core/Inc/gpio.h)(0x691B56EA) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) @@ -74,7 +78,49 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Core/Src/dma.c)(0x692B018D)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\dma.o --omf_browse mr16\dma.crf --depend mr16\dma.d) +F (../Core/Src/freertos.c)(0x692ED1B2)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\freertos.o --omf_browse mr16\freertos.crf --depend mr16\freertos.d) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Core/Inc/main.h)(0x6926BBE5) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) +I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x67480A20) +I (../Drivers/CMSIS/Include/core_cm3.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_version.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x67480A0A) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (../User/task/user_task.h)(0x692EA1CB) +F (../Core/Src/dma.c)(0x692EA045)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\dma.o --omf_browse mr16\dma.crf --depend mr16\dma.d) I (../Core/Inc/dma.h)(0x6925BA29) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) @@ -105,7 +151,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Core/Src/spi.c)(0x6926AA1B)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\spi.o --omf_browse mr16\spi.crf --depend mr16\spi.d) +F (../Core/Src/spi.c)(0x6926AA1B)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\spi.o --omf_browse mr16\spi.crf --depend mr16\spi.d) I (../Core/Inc/spi.h)(0x691B56EA) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) @@ -136,7 +182,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Core/Src/tim.c)(0x691B56EA)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\tim.o --omf_browse mr16\tim.crf --depend mr16\tim.d) +F (../Core/Src/tim.c)(0x691B56EA)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\tim.o --omf_browse mr16\tim.crf --depend mr16\tim.d) I (../Core/Inc/tim.h)(0x691B56EA) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) @@ -167,8 +213,8 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Core/Src/usart.c)(0x692BD8C8)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\usart.o --omf_browse mr16\usart.crf --depend mr16\usart.d) -I (../Core/Inc/usart.h)(0x691B56EA) +F (../Core/Src/usart.c)(0x692EE31B)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\usart.o --omf_browse mr16\usart.crf --depend mr16\usart.d) +I (../Core/Inc/usart.h)(0x692EE31B) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) @@ -198,9 +244,10 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdio.h)(0x5E8E3CC2) -F (../Core/Src/stm32f1xx_it.c)(0x692B043D)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_it.o --omf_browse mr16\stm32f1xx_it.crf --depend mr16\stm32f1xx_it.d) +F (../Core/Src/stm32f1xx_it.c)(0x692EA045)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_it.o --omf_browse mr16\stm32f1xx_it.crf --depend mr16\stm32f1xx_it.d) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) @@ -230,8 +277,17 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../Core/Inc/stm32f1xx_it.h)(0x692B018D) -F (../Core/Src/stm32f1xx_hal_msp.c)(0x691B56EB)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_msp.o --omf_browse mr16\stm32f1xx_hal_msp.crf --depend mr16\stm32f1xx_hal_msp.d) +I (../Core/Inc/stm32f1xx_it.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +F (../Core/Src/stm32f1xx_hal_msp.c)(0x692EA045)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_msp.o --omf_browse mr16\stm32f1xx_hal_msp.crf --depend mr16\stm32f1xx_hal_msp.d) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) @@ -261,7 +317,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_gpio_ex.o --omf_browse mr16\stm32f1xx_hal_gpio_ex.crf --depend mr16\stm32f1xx_hal_gpio_ex.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_gpio_ex.o --omf_browse mr16\stm32f1xx_hal_gpio_ex.crf --depend mr16\stm32f1xx_hal_gpio_ex.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -290,7 +346,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_spi.o --omf_browse mr16\stm32f1xx_hal_spi.crf --depend mr16\stm32f1xx_hal_spi.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal.o --omf_browse mr16\stm32f1xx_hal.crf --depend mr16\stm32f1xx_hal.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -319,7 +375,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal.o --omf_browse mr16\stm32f1xx_hal.crf --depend mr16\stm32f1xx_hal.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_rcc.o --omf_browse mr16\stm32f1xx_hal_rcc.crf --depend mr16\stm32f1xx_hal_rcc.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -348,7 +404,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_rcc.o --omf_browse mr16\stm32f1xx_hal_rcc.crf --depend mr16\stm32f1xx_hal_rcc.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_rcc_ex.o --omf_browse mr16\stm32f1xx_hal_rcc_ex.crf --depend mr16\stm32f1xx_hal_rcc_ex.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -377,7 +433,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_rcc_ex.o --omf_browse mr16\stm32f1xx_hal_rcc_ex.crf --depend mr16\stm32f1xx_hal_rcc_ex.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_gpio.o --omf_browse mr16\stm32f1xx_hal_gpio.crf --depend mr16\stm32f1xx_hal_gpio.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -406,7 +462,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_gpio.o --omf_browse mr16\stm32f1xx_hal_gpio.crf --depend mr16\stm32f1xx_hal_gpio.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_dma.o --omf_browse mr16\stm32f1xx_hal_dma.crf --depend mr16\stm32f1xx_hal_dma.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -435,7 +491,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_dma.o --omf_browse mr16\stm32f1xx_hal_dma.crf --depend mr16\stm32f1xx_hal_dma.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_cortex.o --omf_browse mr16\stm32f1xx_hal_cortex.crf --depend mr16\stm32f1xx_hal_cortex.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -464,7 +520,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_cortex.o --omf_browse mr16\stm32f1xx_hal_cortex.crf --depend mr16\stm32f1xx_hal_cortex.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_pwr.o --omf_browse mr16\stm32f1xx_hal_pwr.crf --depend mr16\stm32f1xx_hal_pwr.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -493,7 +549,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_pwr.o --omf_browse mr16\stm32f1xx_hal_pwr.crf --depend mr16\stm32f1xx_hal_pwr.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_flash.o --omf_browse mr16\stm32f1xx_hal_flash.crf --depend mr16\stm32f1xx_hal_flash.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -522,7 +578,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_flash.o --omf_browse mr16\stm32f1xx_hal_flash.crf --depend mr16\stm32f1xx_hal_flash.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_flash_ex.o --omf_browse mr16\stm32f1xx_hal_flash_ex.crf --depend mr16\stm32f1xx_hal_flash_ex.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -551,7 +607,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_flash_ex.o --omf_browse mr16\stm32f1xx_hal_flash_ex.crf --depend mr16\stm32f1xx_hal_flash_ex.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_exti.o --omf_browse mr16\stm32f1xx_hal_exti.crf --depend mr16\stm32f1xx_hal_exti.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -580,7 +636,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_exti.o --omf_browse mr16\stm32f1xx_hal_exti.crf --depend mr16\stm32f1xx_hal_exti.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_spi.o --omf_browse mr16\stm32f1xx_hal_spi.crf --depend mr16\stm32f1xx_hal_spi.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -609,7 +665,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_tim.o --omf_browse mr16\stm32f1xx_hal_tim.crf --depend mr16\stm32f1xx_hal_tim.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_tim.o --omf_browse mr16\stm32f1xx_hal_tim.crf --depend mr16\stm32f1xx_hal_tim.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -638,7 +694,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_tim_ex.o --omf_browse mr16\stm32f1xx_hal_tim_ex.crf --depend mr16\stm32f1xx_hal_tim_ex.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_tim_ex.o --omf_browse mr16\stm32f1xx_hal_tim_ex.crf --depend mr16\stm32f1xx_hal_tim_ex.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -667,7 +723,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_uart.o --omf_browse mr16\stm32f1xx_hal_uart.crf --depend mr16\stm32f1xx_hal_uart.d) +F (../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stm32f1xx_hal_uart.o --omf_browse mr16\stm32f1xx_hal_uart.crf --depend mr16\stm32f1xx_hal_uart.d) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) @@ -696,7 +752,7 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (../Core/Src/system_stm32f1xx.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\system_stm32f1xx.o --omf_browse mr16\system_stm32f1xx.crf --depend mr16\system_stm32f1xx.d) +F (../Core/Src/system_stm32f1xx.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\system_stm32f1xx.o --omf_browse mr16\system_stm32f1xx.crf --depend mr16\system_stm32f1xx.d) I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x67480A20) I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x67480A20) I (../Drivers/CMSIS/Include/core_cm3.h)(0x67480A0A) @@ -725,12 +781,183 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (..\User\bsp\bsp.h)(0x691D6BB5)() -F (..\User\bsp\gpio.c)(0x69211A67)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\gpio_1.o --omf_browse mr16\gpio_1.crf --depend mr16\gpio_1.d) -I (../User/bsp/gpio.h)(0x691D6BB5) +F (../Middlewares/Third_Party/FreeRTOS/Source/croutine.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\croutine.o --omf_browse mr16\croutine.crf --depend mr16\croutine.d) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h)(0x67480A20) +F (../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\event_groups.o --omf_browse mr16\event_groups.crf --depend mr16\event_groups.d) +I (D:\cangming\ARM\ARMCC\include\stdlib.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h)(0x67480A20) +F (../Middlewares/Third_Party/FreeRTOS/Source/list.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\list.o --omf_browse mr16\list.crf --depend mr16\list.d) +I (D:\cangming\ARM\ARMCC\include\stdlib.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +F (../Middlewares/Third_Party/FreeRTOS/Source/queue.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\queue.o --omf_browse mr16\queue.crf --depend mr16\queue.d) +I (D:\cangming\ARM\ARMCC\include\stdlib.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h)(0x67480A20) +F (../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\stream_buffer.o --omf_browse mr16\stream_buffer.crf --depend mr16\stream_buffer.d) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h)(0x67480A20) +F (../Middlewares/Third_Party/FreeRTOS/Source/tasks.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\tasks.o --omf_browse mr16\tasks.crf --depend mr16\tasks.d) +I (D:\cangming\ARM\ARMCC\include\stdlib.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h)(0x67480A20) +F (../Middlewares/Third_Party/FreeRTOS/Source/timers.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\timers.o --omf_browse mr16\timers.crf --depend mr16\timers.d) +I (D:\cangming\ARM\ARMCC\include\stdlib.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h)(0x67480A20) +F (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\cmsis_os2.o --omf_browse mr16\cmsis_os2.crf --depend mr16\cmsis_os2.d) +I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x67480A0A) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_mpool.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_os2.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x67480A20) +I (../Drivers/CMSIS/Include/core_cm3.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_version.h)(0x67480A0A) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) +I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) +F (../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\heap_4.o --omf_browse mr16\heap_4.crf --depend mr16\heap_4.d) +I (D:\cangming\ARM\ARMCC\include\stdlib.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +F (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/port.c)(0x67480A20)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\port.o --omf_browse mr16\port.crf --depend mr16\port.d) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +F (..\User\bsp\bsp.h)(0x692EA1CC)() +F (..\User\bsp\gpio.c)(0x692EA1CC)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\gpio_1.o --omf_browse mr16\gpio_1.crf --depend mr16\gpio_1.d) +I (../User/bsp/gpio.h)(0x692EA1CC) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) -I (../User/bsp/bsp.h)(0x691D6BB5) +I (../User/bsp/bsp.h)(0x692EA1CC) I (../Core/Inc/gpio.h)(0x691B56EA) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) @@ -760,8 +987,8 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -F (..\User\bsp\gpio.h)(0x691D6BB5)() -F (..\User\bsp\spi.c)(0x692ABE66)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\spi_1.o --omf_browse mr16\spi_1.crf --depend mr16\spi_1.d) +F (..\User\bsp\gpio.h)(0x692EA1CC)() +F (..\User\bsp\spi.c)(0x692ECA05)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\spi_1.o --omf_browse mr16\spi_1.crf --depend mr16\spi_1.d) I (../Core/Inc/spi.h)(0x691B56EA) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) @@ -792,12 +1019,12 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../User/bsp/spi.h)(0x692ABE66) +I (../User/bsp/spi.h)(0x692ECA05) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) -I (../User/bsp/bsp.h)(0x691D6BB5) -F (..\User\bsp\spi.h)(0x692ABE66)() -F (..\User\bsp\uart.c)(0x69249732)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\uart.o --omf_browse mr16\uart.crf --depend mr16\uart.d) -I (../Core/Inc/usart.h)(0x691B56EA) +I (../User/bsp/bsp.h)(0x692EA1CC) +F (..\User\bsp\spi.h)(0x692ECA05)() +F (..\User\bsp\uart.c)(0x692EA1CC)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\uart.o --omf_browse mr16\uart.crf --depend mr16\uart.d) +I (../Core/Inc/usart.h)(0x692EE31B) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) @@ -827,17 +1054,95 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../User/bsp/uart.h)(0x692496BB) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (../User/bsp/uart.h)(0x692EA1CC) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) -I (../User/bsp/bsp.h)(0x691D6BB5) -F (..\User\bsp\uart.h)(0x692496BB)() -F (..\User\device\device.h)(0x691D6BB5)() -F (..\User\device\lcd_driver\lcd.c)(0x692ABE66)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\lcd.o --omf_browse mr16\lcd.crf --depend mr16\lcd.d) +I (../User/bsp/bsp.h)(0x692EA1CC) +F (..\User\bsp\uart.h)(0x692EA1CC)() +F (..\User\bsp\time.c)(0x692EA1CD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\time.o --omf_browse mr16\time.crf --depend mr16\time.d) +I (../User/bsp/time.h)(0x692EA1CD) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../User/bsp/bsp.h)(0x692EA1CC) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Core/Inc/main.h)(0x6926BBE5) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) +I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x67480A20) +I (../Drivers/CMSIS/Include/core_cm3.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_version.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x67480A0A) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +F (..\User\bsp\time.h)(0x692EA1CD)() +F (..\User\bsp\flash.c)(0x69304D86)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\flash.o --omf_browse mr16\flash.crf --depend mr16\flash.d) +I (../User/bsp\flash.h)(0x69304D87) +I (../Core/Inc/main.h)(0x6926BBE5) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) +I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x67480A20) +I (../Drivers/CMSIS/Include/core_cm3.h)(0x67480A0A) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Drivers/CMSIS/Include/cmsis_version.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x67480A0A) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) +I (../User/bsp/bsp.h)(0x692EA1CC) +I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) +F (..\User\bsp\flash.h)(0x69304D87)() +F (..\User\device\device.h)(0x692EA1CD)() +F (..\User\device\lcd_driver\lcd.c)(0x692ABE66)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\lcd.o --omf_browse mr16\lcd.crf --depend mr16\lcd.d) I (../User/device/lcd_driver/lcd.h)(0x692ABE66) -I (../User/device/device.h)(0x691D6BB5) +I (../User/device/device.h)(0x692EA1CD) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) -I (../User/bsp/spi.h)(0x692ABE66) +I (../User/bsp/spi.h)(0x692ECA05) I (../Core/Inc/spi.h)(0x691B56EA) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) @@ -867,23 +1172,23 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../User/bsp/bsp.h)(0x691D6BB5) -I (../User/bsp/gpio.h)(0x691D6BB5) +I (../User/bsp/bsp.h)(0x692EA1CC) +I (../User/bsp/gpio.h)(0x692EA1CC) I (../User/device/lcd_driver/lcd_lib.h)(0x692ABE66) I (D:\cangming\ARM\ARMCC\include\stdlib.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdio.h)(0x5E8E3CC2) F (..\User\device\lcd_driver\lcd.h)(0x692ABE66)() F (..\User\device\lcd_driver\lcd_lib.h)(0x692ABE66)() F (..\User\device\sx1281_driver\radio.h)(0x692C10EB)() -F (..\User\device\sx1281_driver\sx1281.c)(0x692C386D)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281.o --omf_browse mr16\sx1281.crf --depend mr16\sx1281.d) -I (..\User\device\sx1281_driver\sx1281_driver.h)(0x692BE260) +F (..\User\device\sx1281_driver\sx1281.c)(0x692FD9D0)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281.o --omf_browse mr16\sx1281.crf --depend mr16\sx1281.d) +I (..\User\device\sx1281_driver\sx1281_driver.h)(0x692DCACF) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdio.h)(0x5E8E3CC2) I (../User/device/sx1281_driver/radio.h)(0x692C10EB) -I (../Core/Inc/usart.h)(0x691B56EA) +I (../Core/Inc/usart.h)(0x692EE31B) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) @@ -912,21 +1217,22 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../User/bsp/uart.h)(0x692496BB) -I (../User/bsp/bsp.h)(0x691D6BB5) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (../User/bsp/uart.h)(0x692EA1CC) +I (../User/bsp/bsp.h)(0x692EA1CC) I (../User/device/sx1281_driver/sx1281_header.h)(0x692B9D2E) -I (../Core/Inc/stm32f1xx_it.h)(0x692B018D) +I (../Core/Inc/stm32f1xx_it.h)(0x692EA045) I (../User/device/sx1281_driver/sx1281_boards.h)(0x69248C05) I (../User/device/sx1281_driver/sx1281_driver_gpio.h)(0x691D7D06) I (../User/device/sx1281_driver/sx1281_driver_spi.h)(0x5ACC746C) I (../User/device/sx1281_driver/sx1281_driver_uart.h)(0x692B9B3E) -I (../User/device/sx1281_driver/sx1281.h)(0x692C17B9) -I (../User/device/device.h)(0x691D6BB5) -F (..\User\device\sx1281_driver\sx1281.h)(0x692C17B9)() +I (../User/device/sx1281_driver/sx1281.h)(0x69303977) +I (../User/device/device.h)(0x692EA1CD) +F (..\User\device\sx1281_driver\sx1281.h)(0x69303977)() F (..\User\device\sx1281_driver\sx1281_boards.h)(0x69248C05)() -F (..\User\device\sx1281_driver\sx1281_driver.c)(0x692C1006)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver.o --omf_browse mr16\sx1281_driver.crf --depend mr16\sx1281_driver.d) +F (..\User\device\sx1281_driver\sx1281_driver.c)(0x692C1006)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver.o --omf_browse mr16\sx1281_driver.crf --depend mr16\sx1281_driver.d) I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) -I (../User/device/sx1281_driver/sx1281_driver.h)(0x692BE260) +I (../User/device/sx1281_driver/sx1281_driver.h)(0x692DCACF) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) @@ -960,53 +1266,14 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../Core/Inc/stm32f1xx_it.h)(0x692B018D) +I (../Core/Inc/stm32f1xx_it.h)(0x692EA045) I (../User/device/sx1281_driver/sx1281_boards.h)(0x69248C05) I (../User/device/sx1281_driver/sx1281_driver_gpio.h)(0x691D7D06) I (../Core/Inc/main.h)(0x6926BBE5) I (../User/device/sx1281_driver/sx1281_driver_spi.h)(0x5ACC746C) I (../User/device/sx1281_driver/sx1281_driver_uart.h)(0x692B9B3E) -F (..\User\device\sx1281_driver\sx1281_driver.h)(0x692BE260)() -F (..\User\device\sx1281_driver\sx1281_driver_gpio.c)(0x692C1006)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver_gpio.o --omf_browse mr16\sx1281_driver_gpio.crf --depend mr16\sx1281_driver_gpio.d) -I (..\User\device\sx1281_driver\sx1281_header.h)(0x692B9D2E) -I (D:\cangming\ARM\ARMCC\include\stdio.h)(0x5E8E3CC2) -I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) -I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) -I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x67480A20) -I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x67480A20) -I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x67480A20) -I (../Drivers/CMSIS/Include/core_cm3.h)(0x67480A0A) -I (../Drivers/CMSIS/Include/cmsis_version.h)(0x67480A0A) -I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x67480A0A) -I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x67480A0A) -I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x67480A20) -I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) -I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../Core/Inc/stm32f1xx_it.h)(0x692B018D) -I (..\User\device\sx1281_driver\sx1281_boards.h)(0x69248C05) -I (..\User\device\sx1281_driver\sx1281_driver_gpio.h)(0x691D7D06) -I (../Core/Inc/main.h)(0x6926BBE5) -I (..\User\device\sx1281_driver\sx1281_driver_spi.h)(0x5ACC746C) -I (..\User\device\sx1281_driver\sx1281_driver_uart.h)(0x692B9B3E) -F (..\User\device\sx1281_driver\sx1281_driver_gpio.h)(0x691D7D06)() -F (..\User\device\sx1281_driver\sx1281_driver_hal.c)(0x692C1006)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver_hal.o --omf_browse mr16\sx1281_driver_hal.crf --depend mr16\sx1281_driver_hal.d) +F (..\User\device\sx1281_driver\sx1281_driver.h)(0x692DCACF)() +F (..\User\device\sx1281_driver\sx1281_driver_gpio.c)(0x692C1006)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver_gpio.o --omf_browse mr16\sx1281_driver_gpio.crf --depend mr16\sx1281_driver_gpio.d) I (../User/device/sx1281_driver/sx1281_header.h)(0x692B9D2E) I (D:\cangming\ARM\ARMCC\include\stdio.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) @@ -1038,20 +1305,59 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../Core/Inc/stm32f1xx_it.h)(0x692B018D) +I (../Core/Inc/stm32f1xx_it.h)(0x692EA045) +I (../User/device/sx1281_driver/sx1281_boards.h)(0x69248C05) +I (../User/device/sx1281_driver/sx1281_driver_gpio.h)(0x691D7D06) +I (../Core/Inc/main.h)(0x6926BBE5) +I (../User/device/sx1281_driver/sx1281_driver_spi.h)(0x5ACC746C) +I (../User/device/sx1281_driver/sx1281_driver_uart.h)(0x692B9B3E) +F (..\User\device\sx1281_driver\sx1281_driver_gpio.h)(0x691D7D06)() +F (..\User\device\sx1281_driver\sx1281_driver_hal.c)(0x692C1006)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver_hal.o --omf_browse mr16\sx1281_driver_hal.crf --depend mr16\sx1281_driver_hal.d) +I (../User/device/sx1281_driver/sx1281_header.h)(0x692B9D2E) +I (D:\cangming\ARM\ARMCC\include\stdio.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) +I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x67480A20) +I (../Drivers/CMSIS/Include/core_cm3.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_version.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x67480A0A) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) +I (../Core/Inc/stm32f1xx_it.h)(0x692EA045) I (../User/device/sx1281_driver/sx1281_boards.h)(0x69248C05) I (../User/device/sx1281_driver/sx1281_driver_gpio.h)(0x691D7D06) I (../Core/Inc/main.h)(0x6926BBE5) I (../User/device/sx1281_driver/sx1281_driver_spi.h)(0x5ACC746C) I (../User/device/sx1281_driver/sx1281_driver_uart.h)(0x692B9B3E) I (../User/device/sx1281_driver/sx1281_driver_hal.h)(0x692C1006) -I (../User/device/sx1281_driver/sx1281_driver.h)(0x692BE260) +I (../User/device/sx1281_driver/sx1281_driver.h)(0x692DCACF) I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) I (../User/device/sx1281_driver/radio.h)(0x692C10EB) I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) F (..\User\device\sx1281_driver\sx1281_driver_hal.h)(0x692C1006)() -F (..\User\device\sx1281_driver\sx1281_driver_spi.c)(0x6925BEAD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver_spi.o --omf_browse mr16\sx1281_driver_spi.crf --depend mr16\sx1281_driver_spi.d) -I (../User/bsp/spi.h)(0x692ABE66) +F (..\User\device\sx1281_driver\sx1281_driver_spi.c)(0x6925BEAD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver_spi.o --omf_browse mr16\sx1281_driver_spi.crf --depend mr16\sx1281_driver_spi.d) +I (../User/bsp/spi.h)(0x692ECA05) I (../Core/Inc/spi.h)(0x691B56EA) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) @@ -1083,10 +1389,10 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) -I (../User/bsp/bsp.h)(0x691D6BB5) +I (../User/bsp/bsp.h)(0x692EA1CC) F (..\User\device\sx1281_driver\sx1281_driver_spi.h)(0x5ACC746C)() -F (..\User\device\sx1281_driver\sx1281_driver_uart.c)(0x692B9B3E)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver_uart.o --omf_browse mr16\sx1281_driver_uart.crf --depend mr16\sx1281_driver_uart.d) -I (../Core/Inc/usart.h)(0x691B56EA) +F (..\User\device\sx1281_driver\sx1281_driver_uart.c)(0x692B9B3E)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_driver_uart.o --omf_browse mr16\sx1281_driver_uart.crf --depend mr16\sx1281_driver_uart.d) +I (../Core/Inc/usart.h)(0x692EE31B) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) @@ -1116,12 +1422,13 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../User/bsp/uart.h)(0x692496BB) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (../User/bsp/uart.h)(0x692EA1CC) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) -I (../User/bsp/bsp.h)(0x691D6BB5) +I (../User/bsp/bsp.h)(0x692EA1CC) F (..\User\device\sx1281_driver\sx1281_driver_uart.h)(0x692B9B3E)() -F (..\User\device\sx1281_driver\sx1281_header.c)(0x692C1006)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_header.o --omf_browse mr16\sx1281_header.crf --depend mr16\sx1281_header.d) -I (..\User\device\sx1281_driver\sx1281_header.h)(0x692B9D2E) +F (..\User\device\sx1281_driver\sx1281_header.c)(0x692C1006)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\sx1281_header.o --omf_browse mr16\sx1281_header.crf --depend mr16\sx1281_header.d) +I (../User/device/sx1281_driver/sx1281_header.h)(0x692B9D2E) I (D:\cangming\ARM\ARMCC\include\stdio.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) @@ -1152,44 +1459,84 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) -I (../Core/Inc/stm32f1xx_it.h)(0x692B018D) -I (..\User\device\sx1281_driver\sx1281_boards.h)(0x69248C05) -I (..\User\device\sx1281_driver\sx1281_driver_gpio.h)(0x691D7D06) +I (../Core/Inc/stm32f1xx_it.h)(0x692EA045) +I (../User/device/sx1281_driver/sx1281_boards.h)(0x69248C05) +I (../User/device/sx1281_driver/sx1281_driver_gpio.h)(0x691D7D06) I (../Core/Inc/main.h)(0x6926BBE5) -I (..\User\device\sx1281_driver\sx1281_driver_spi.h)(0x5ACC746C) -I (..\User\device\sx1281_driver\sx1281_driver_uart.h)(0x692B9B3E) -I (../User/bsp/uart.h)(0x692496BB) -I (../Core/Inc/usart.h)(0x691B56EA) -I (../User/bsp/bsp.h)(0x691D6BB5) +I (../User/device/sx1281_driver/sx1281_driver_spi.h)(0x5ACC746C) +I (../User/device/sx1281_driver/sx1281_driver_uart.h)(0x692B9B3E) +I (../User/bsp/uart.h)(0x692EA1CC) +I (../Core/Inc/usart.h)(0x692EE31B) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (../User/bsp/bsp.h)(0x692EA1CC) F (..\User\device\sx1281_driver\sx1281_header.h)(0x692B9D2E)() -F (..\User\component\crc8.c)(0x691D6BB5)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\crc8.o --omf_browse mr16\crc8.crf --depend mr16\crc8.d) -I (..\User\component\crc8.h)(0x691D6BB5) +F (..\User\component\crc8.c)(0x692EA1CD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\crc8.o --omf_browse mr16\crc8.crf --depend mr16\crc8.d) +I (..\User\component\crc8.h)(0x692EA1CD) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) -F (..\User\component\crc8.h)(0x691D6BB5)() -F (..\User\component\crc16.c)(0x691D6BB5)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\crc16.o --omf_browse mr16\crc16.crf --depend mr16\crc16.d) -I (..\User\component\crc16.h)(0x691D6BB5) +F (..\User\component\crc8.h)(0x692EA1CD)() +F (..\User\component\crc16.c)(0x692EA1CD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\crc16.o --omf_browse mr16\crc16.crf --depend mr16\crc16.d) +I (..\User\component\crc16.h)(0x692EA1CD) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) -I (..\User\component\user_math.h)(0x691D6BB5) +I (..\User\component\user_math.h)(0x692EA1CD) I (D:\cangming\ARM\ARMCC\include\float.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) -F (..\User\component\crc16.h)(0x691D6BB5)() -F (..\User\component\user_math.c)(0x691D6BB5)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\user_math.o --omf_browse mr16\user_math.crf --depend mr16\user_math.d) -I (..\User\component\user_math.h)(0x691D6BB5) +F (..\User\component\crc16.h)(0x692EA1CD)() +F (..\User\component\user_math.c)(0x692EA1CD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\user_math.o --omf_browse mr16\user_math.crf --depend mr16\user_math.d) +I (..\User\component\user_math.h)(0x692EA1CD) I (D:\cangming\ARM\ARMCC\include\float.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) -F (..\User\component\user_math.h)(0x691D6BB5)() -F (..\User\module\mr16.c)(0x692C4435)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\mr16.o --omf_browse mr16\mr16.crf --depend mr16\mr16.d) -I (../User/module/mr16.h)(0x692C3830) +F (..\User\component\user_math.h)(0x692EA1CD)() +F (..\User\component\freertos_cli.c)(0x692EA1CD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\freertos_cli.o --omf_browse mr16\freertos_cli.crf --depend mr16\freertos_cli.d) +I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (..\User\component\FreeRTOS_CLI.h)(0x692ECE2B) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +F (..\User\component\freertos_cli.h)(0x692ECE2B)() +F (..\User\component\keyStatusCheck.c)(0x692D81DA)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\keystatuscheck.o --omf_browse mr16\keystatuscheck.crf --depend mr16\keystatuscheck.d) +I (..\User\component\keyStatusCheck.h)(0x692EC8B5) +I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (../User/bsp/time.h)(0x692EA1CD) +I (../User/bsp/bsp.h)(0x692EA1CC) +F (..\User\component\keyStatusCheck.h)(0x692EC8B5)() +F (..\User\component\ui.c)(0x692EA1CD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\ui.o --omf_browse mr16\ui.crf --depend mr16\ui.d) +I (../User/component/ui.h)(0x692EA1CD) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) +I (../User/component/user_math.h)(0x692EA1CD) +I (D:\cangming\ARM\ARMCC\include\float.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stdio.h)(0x5E8E3CC2) +F (..\User\component\ui.h)(0x692EA1CD)() +F (..\User\module\mr16.c)(0x69303CFD)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\mr16.o --omf_browse mr16\mr16.crf --depend mr16\mr16.d) +I (../User/module/mr16.h)(0x692FE6F1) I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) +I (../User/device/sx1281_driver/sx1281.h)(0x69303977) +I (../User/device/sx1281_driver/sx1281_driver.h)(0x692DCACF) +I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) +I (../User/device/device.h)(0x692EA1CD) I (../Core/Inc/main.h)(0x6926BBE5) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) @@ -1220,14 +1567,101 @@ I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) I (D:\cangming\ARM\ARMCC\include\string.h)(0x5E8E3CC2) I (D:\cangming\ARM\ARMCC\include\stdio.h)(0x5E8E3CC2) +I (../Core/Inc/usart.h)(0x692EE31B) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) I (../User/device/sx1281_driver/radio.h)(0x692C10EB) -I (../User/device/sx1281_driver/sx1281_driver.h)(0x692BE260) -I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) -I (../User/device/sx1281_driver/sx1281.h)(0x692C17B9) -I (../User/device/device.h)(0x691D6BB5) I (../User/device/lcd_driver/lcd.h)(0x692ABE66) -I (../User/bsp/spi.h)(0x692ABE66) +I (../User/bsp/spi.h)(0x692ECA05) I (../Core/Inc/spi.h)(0x691B56EA) -I (../User/bsp/bsp.h)(0x691D6BB5) -I (../User/bsp/gpio.h)(0x691D6BB5) -F (..\User\module\mr16.h)(0x692C3830)() +I (../User/bsp/bsp.h)(0x692EA1CC) +I (../User/bsp/gpio.h)(0x692EA1CC) +I (../User/component/FreeRTOS_CLI.h)(0x692ECE2B) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +F (..\User\module\mr16.h)(0x692FE6F1)() +F (..\User\task\init.c)(0x692EA1CB)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\init.o --omf_browse mr16\init.crf --depend mr16\init.d) +I (../User/task/user_task.h)(0x692EA1CB) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +F (..\User\task\user_task.c)(0x692EA1CB)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\user_task.o --omf_browse mr16\user_task.crf --depend mr16\user_task.d) +I (../User/task/user_task.h)(0x692EA1CB) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +F (..\User\task\user_task.h)(0x692EA1CB)() +F (..\User\task\radio.c)(0x69304D86)(--c99 -c --cpu Cortex-M3 -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ../Core/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc -I ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy -I ../Drivers/CMSIS/Device/ST/STM32F1xx/Include -I ../Drivers/CMSIS/Include -I ../sx1281-driver-c -I ../User -I ../Middlewares/Third_Party/FreeRTOS/Source/include -I ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3 -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include -D__UVISION_VERSION="534" -D_RTE_ -DSTM32F10X_MD -D_RTE_ -DUSE_HAL_DRIVER -DSTM32F103xB -o mr16\radio.o --omf_browse mr16\radio.crf --depend mr16\radio.d) +I (../User/task/user_task.h)(0x692EA1CB) +I (../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h)(0x67480A20) +I (D:\cangming\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2) +I (D:\cangming\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h)(0x67480A20) +I (../Core/Inc/FreeRTOSConfig.h)(0x692EA045) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/task.h)(0x67480A20) +I (../Middlewares/Third_Party/FreeRTOS/Source/include/list.h)(0x67480A20) +I (../Core/Inc/dma.h)(0x6925BA29) +I (../Core/Inc/main.h)(0x6926BBE5) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h)(0x67480A20) +I (../Core/Inc/stm32f1xx_hal_conf.h)(0x6925BA2A) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h)(0x67480A20) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h)(0x67480A20) +I (../Drivers/CMSIS/Include/core_cm3.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_version.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_compiler.h)(0x67480A0A) +I (../Drivers/CMSIS/Include/cmsis_armcc.h)(0x67480A0A) +I (../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h)(0x67480A20) +I (../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h)(0x67480A20) +I (../Core/Inc/usart.h)(0x692EE31B) +I (../User/module/mr16.h)(0x692FE6F1) +I (D:\cangming\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2) +I (../User/device/sx1281_driver/sx1281.h)(0x69303977) +I (../User/device/sx1281_driver/sx1281_driver.h)(0x692DCACF) +I (D:\cangming\ARM\ARMCC\include\math.h)(0x5E8E3CC2) +I (../User/device/device.h)(0x692EA1CD) +I (../User/bsp/flash.h)(0x69304D87) +I (../User/bsp/bsp.h)(0x692EA1CC) +I (../User/device/sx1281_driver/radio.h)(0x692C10EB) diff --git a/MDK-ARM/MR16/cmsis_os2.crf b/MDK-ARM/MR16/cmsis_os2.crf new file mode 100644 index 0000000..87c25db Binary files /dev/null and b/MDK-ARM/MR16/cmsis_os2.crf differ diff --git a/MDK-ARM/MR16/cmsis_os2.d b/MDK-ARM/MR16/cmsis_os2.d new file mode 100644 index 0000000..582b33b --- /dev/null +++ b/MDK-ARM/MR16/cmsis_os2.d @@ -0,0 +1,47 @@ +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c +mr16\cmsis_os2.o: D:\cangming\ARM\ARMCC\Bin\..\include\string.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h +mr16\cmsis_os2.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\cmsis_os2.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\cmsis_os2.o: ../Drivers/CMSIS/Include/cmsis_compiler.h +mr16\cmsis_os2.o: ../Drivers/CMSIS/Include/cmsis_armcc.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\cmsis_os2.o: ../Core/Inc/FreeRTOSConfig.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_mpool.h +mr16\cmsis_os2.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_os2.h +mr16\cmsis_os2.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h +mr16\cmsis_os2.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h +mr16\cmsis_os2.o: ../Drivers/CMSIS/Include/core_cm3.h +mr16\cmsis_os2.o: ../Drivers/CMSIS/Include/cmsis_version.h +mr16\cmsis_os2.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h +mr16\cmsis_os2.o: ../Core/Inc/stm32f1xx_hal_conf.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h +mr16\cmsis_os2.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h +mr16\cmsis_os2.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h diff --git a/MDK-ARM/MR16/cmsis_os2.o b/MDK-ARM/MR16/cmsis_os2.o new file mode 100644 index 0000000..70697d1 Binary files /dev/null and b/MDK-ARM/MR16/cmsis_os2.o differ diff --git a/MDK-ARM/MR16/crc16.crf b/MDK-ARM/MR16/crc16.crf index 8b5c903..385b427 100644 Binary files a/MDK-ARM/MR16/crc16.crf and b/MDK-ARM/MR16/crc16.crf differ diff --git a/MDK-ARM/MR16/crc16.o b/MDK-ARM/MR16/crc16.o index 1e9313a..eaa96d2 100644 Binary files a/MDK-ARM/MR16/crc16.o and b/MDK-ARM/MR16/crc16.o differ diff --git a/MDK-ARM/MR16/crc8.crf b/MDK-ARM/MR16/crc8.crf index 426be25..4fe333f 100644 Binary files a/MDK-ARM/MR16/crc8.crf and b/MDK-ARM/MR16/crc8.crf differ diff --git a/MDK-ARM/MR16/crc8.o b/MDK-ARM/MR16/crc8.o index e54a7a2..ec201cb 100644 Binary files a/MDK-ARM/MR16/crc8.o and b/MDK-ARM/MR16/crc8.o differ diff --git a/MDK-ARM/MR16/croutine.crf b/MDK-ARM/MR16/croutine.crf new file mode 100644 index 0000000..ceaea5b Binary files /dev/null and b/MDK-ARM/MR16/croutine.crf differ diff --git a/MDK-ARM/MR16/croutine.d b/MDK-ARM/MR16/croutine.d new file mode 100644 index 0000000..7f9cc6c --- /dev/null +++ b/MDK-ARM/MR16/croutine.d @@ -0,0 +1,14 @@ +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/croutine.c +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\croutine.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\croutine.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\croutine.o: ../Core/Inc/FreeRTOSConfig.h +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h +mr16\croutine.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h diff --git a/MDK-ARM/MR16/croutine.o b/MDK-ARM/MR16/croutine.o new file mode 100644 index 0000000..9a32f59 Binary files /dev/null and b/MDK-ARM/MR16/croutine.o differ diff --git a/MDK-ARM/MR16/dma.crf b/MDK-ARM/MR16/dma.crf index 0f52811..f4d4243 100644 Binary files a/MDK-ARM/MR16/dma.crf and b/MDK-ARM/MR16/dma.crf differ diff --git a/MDK-ARM/MR16/dma.o b/MDK-ARM/MR16/dma.o index 946a419..f755ab3 100644 Binary files a/MDK-ARM/MR16/dma.o and b/MDK-ARM/MR16/dma.o differ diff --git a/MDK-ARM/MR16/event_groups.crf b/MDK-ARM/MR16/event_groups.crf new file mode 100644 index 0000000..2612f25 Binary files /dev/null and b/MDK-ARM/MR16/event_groups.crf differ diff --git a/MDK-ARM/MR16/event_groups.d b/MDK-ARM/MR16/event_groups.d new file mode 100644 index 0000000..a55510c --- /dev/null +++ b/MDK-ARM/MR16/event_groups.d @@ -0,0 +1,15 @@ +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c +mr16\event_groups.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdlib.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\event_groups.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\event_groups.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\event_groups.o: ../Core/Inc/FreeRTOSConfig.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h +mr16\event_groups.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h diff --git a/MDK-ARM/MR16/event_groups.o b/MDK-ARM/MR16/event_groups.o new file mode 100644 index 0000000..e740d34 Binary files /dev/null and b/MDK-ARM/MR16/event_groups.o differ diff --git a/MDK-ARM/MR16/flash.crf b/MDK-ARM/MR16/flash.crf new file mode 100644 index 0000000..4a94d17 Binary files /dev/null and b/MDK-ARM/MR16/flash.crf differ diff --git a/MDK-ARM/MR16/flash.d b/MDK-ARM/MR16/flash.d new file mode 100644 index 0000000..1964877 --- /dev/null +++ b/MDK-ARM/MR16/flash.d @@ -0,0 +1,34 @@ +mr16\flash.o: ..\User\bsp\flash.c +mr16\flash.o: ../User/bsp\flash.h +mr16\flash.o: ../Core/Inc/main.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h +mr16\flash.o: ../Core/Inc/stm32f1xx_hal_conf.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h +mr16\flash.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h +mr16\flash.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h +mr16\flash.o: ../Drivers/CMSIS/Include/core_cm3.h +mr16\flash.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\flash.o: ../Drivers/CMSIS/Include/cmsis_version.h +mr16\flash.o: ../Drivers/CMSIS/Include/cmsis_compiler.h +mr16\flash.o: ../Drivers/CMSIS/Include/cmsis_armcc.h +mr16\flash.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h +mr16\flash.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h +mr16\flash.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h +mr16\flash.o: ../User/bsp/bsp.h +mr16\flash.o: D:\cangming\ARM\ARMCC\Bin\..\include\string.h diff --git a/MDK-ARM/MR16/flash.o b/MDK-ARM/MR16/flash.o new file mode 100644 index 0000000..82013b1 Binary files /dev/null and b/MDK-ARM/MR16/flash.o differ diff --git a/MDK-ARM/MR16/freertos.crf b/MDK-ARM/MR16/freertos.crf new file mode 100644 index 0000000..e260777 Binary files /dev/null and b/MDK-ARM/MR16/freertos.crf differ diff --git a/MDK-ARM/MR16/freertos.d b/MDK-ARM/MR16/freertos.d new file mode 100644 index 0000000..c03f7ea --- /dev/null +++ b/MDK-ARM/MR16/freertos.d @@ -0,0 +1,43 @@ +mr16\freertos.o: ../Core/Src/freertos.c +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\freertos.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\freertos.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\freertos.o: ../Core/Inc/FreeRTOSConfig.h +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\freertos.o: ../Core/Inc/main.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h +mr16\freertos.o: ../Core/Inc/stm32f1xx_hal_conf.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h +mr16\freertos.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h +mr16\freertos.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h +mr16\freertos.o: ../Drivers/CMSIS/Include/core_cm3.h +mr16\freertos.o: ../Drivers/CMSIS/Include/cmsis_version.h +mr16\freertos.o: ../Drivers/CMSIS/Include/cmsis_compiler.h +mr16\freertos.o: ../Drivers/CMSIS/Include/cmsis_armcc.h +mr16\freertos.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h +mr16\freertos.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h +mr16\freertos.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h +mr16\freertos.o: ../User/task/user_task.h diff --git a/MDK-ARM/MR16/freertos.o b/MDK-ARM/MR16/freertos.o new file mode 100644 index 0000000..b1d5c04 Binary files /dev/null and b/MDK-ARM/MR16/freertos.o differ diff --git a/MDK-ARM/MR16/freertos_cli.crf b/MDK-ARM/MR16/freertos_cli.crf new file mode 100644 index 0000000..bea656d Binary files /dev/null and b/MDK-ARM/MR16/freertos_cli.crf differ diff --git a/MDK-ARM/MR16/freertos_cli.d b/MDK-ARM/MR16/freertos_cli.d new file mode 100644 index 0000000..823178a --- /dev/null +++ b/MDK-ARM/MR16/freertos_cli.d @@ -0,0 +1,15 @@ +mr16\freertos_cli.o: ..\User\component\freertos_cli.c +mr16\freertos_cli.o: D:\cangming\ARM\ARMCC\Bin\..\include\string.h +mr16\freertos_cli.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\freertos_cli.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\freertos_cli.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\freertos_cli.o: ../Core/Inc/FreeRTOSConfig.h +mr16\freertos_cli.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\freertos_cli.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\freertos_cli.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\freertos_cli.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\freertos_cli.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\freertos_cli.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\freertos_cli.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\freertos_cli.o: ..\User\component\FreeRTOS_CLI.h +mr16\freertos_cli.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h diff --git a/MDK-ARM/MR16/freertos_cli.o b/MDK-ARM/MR16/freertos_cli.o new file mode 100644 index 0000000..522a90b Binary files /dev/null and b/MDK-ARM/MR16/freertos_cli.o differ diff --git a/MDK-ARM/MR16/gpio.o b/MDK-ARM/MR16/gpio.o index c079e26..f519526 100644 Binary files a/MDK-ARM/MR16/gpio.o and b/MDK-ARM/MR16/gpio.o differ diff --git a/MDK-ARM/MR16/gpio_1.crf b/MDK-ARM/MR16/gpio_1.crf index aa9264f..b26ad8e 100644 Binary files a/MDK-ARM/MR16/gpio_1.crf and b/MDK-ARM/MR16/gpio_1.crf differ diff --git a/MDK-ARM/MR16/gpio_1.o b/MDK-ARM/MR16/gpio_1.o index 31712c9..a65a43d 100644 Binary files a/MDK-ARM/MR16/gpio_1.o and b/MDK-ARM/MR16/gpio_1.o differ diff --git a/MDK-ARM/MR16/heap_4.crf b/MDK-ARM/MR16/heap_4.crf new file mode 100644 index 0000000..865bfc8 Binary files /dev/null and b/MDK-ARM/MR16/heap_4.crf differ diff --git a/MDK-ARM/MR16/heap_4.d b/MDK-ARM/MR16/heap_4.d new file mode 100644 index 0000000..54a3b8a --- /dev/null +++ b/MDK-ARM/MR16/heap_4.d @@ -0,0 +1,13 @@ +mr16\heap_4.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c +mr16\heap_4.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdlib.h +mr16\heap_4.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\heap_4.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\heap_4.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\heap_4.o: ../Core/Inc/FreeRTOSConfig.h +mr16\heap_4.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\heap_4.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\heap_4.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\heap_4.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\heap_4.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\heap_4.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\heap_4.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h diff --git a/MDK-ARM/MR16/heap_4.o b/MDK-ARM/MR16/heap_4.o new file mode 100644 index 0000000..23774f3 Binary files /dev/null and b/MDK-ARM/MR16/heap_4.o differ diff --git a/MDK-ARM/MR16/init.crf b/MDK-ARM/MR16/init.crf new file mode 100644 index 0000000..313faa9 Binary files /dev/null and b/MDK-ARM/MR16/init.crf differ diff --git a/MDK-ARM/MR16/init.d b/MDK-ARM/MR16/init.d new file mode 100644 index 0000000..f961840 --- /dev/null +++ b/MDK-ARM/MR16/init.d @@ -0,0 +1,14 @@ +mr16\init.o: ..\User\task\init.c +mr16\init.o: ../User/task/user_task.h +mr16\init.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h +mr16\init.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\init.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\init.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\init.o: ../Core/Inc/FreeRTOSConfig.h +mr16\init.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\init.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\init.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\init.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\init.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\init.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\init.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h diff --git a/MDK-ARM/MR16/init.o b/MDK-ARM/MR16/init.o new file mode 100644 index 0000000..1ed8367 Binary files /dev/null and b/MDK-ARM/MR16/init.o differ diff --git a/MDK-ARM/MR16/keystatuscheck.crf b/MDK-ARM/MR16/keystatuscheck.crf new file mode 100644 index 0000000..77711b6 Binary files /dev/null and b/MDK-ARM/MR16/keystatuscheck.crf differ diff --git a/MDK-ARM/MR16/keystatuscheck.d b/MDK-ARM/MR16/keystatuscheck.d new file mode 100644 index 0000000..a7fded8 --- /dev/null +++ b/MDK-ARM/MR16/keystatuscheck.d @@ -0,0 +1,7 @@ +mr16\keystatuscheck.o: ..\User\component\keyStatusCheck.c +mr16\keystatuscheck.o: ..\User\component\keyStatusCheck.h +mr16\keystatuscheck.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdbool.h +mr16\keystatuscheck.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\keystatuscheck.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\keystatuscheck.o: ../User/bsp/time.h +mr16\keystatuscheck.o: ../User/bsp/bsp.h diff --git a/MDK-ARM/MR16/keystatuscheck.o b/MDK-ARM/MR16/keystatuscheck.o new file mode 100644 index 0000000..2eaab3b Binary files /dev/null and b/MDK-ARM/MR16/keystatuscheck.o differ diff --git a/MDK-ARM/MR16/lcd.crf b/MDK-ARM/MR16/lcd.crf index c904f02..2adf4c0 100644 Binary files a/MDK-ARM/MR16/lcd.crf and b/MDK-ARM/MR16/lcd.crf differ diff --git a/MDK-ARM/MR16/lcd.o b/MDK-ARM/MR16/lcd.o index fadbfdc..6185ab9 100644 Binary files a/MDK-ARM/MR16/lcd.o and b/MDK-ARM/MR16/lcd.o differ diff --git a/MDK-ARM/MR16/list.crf b/MDK-ARM/MR16/list.crf new file mode 100644 index 0000000..aeb16bf Binary files /dev/null and b/MDK-ARM/MR16/list.crf differ diff --git a/MDK-ARM/MR16/list.d b/MDK-ARM/MR16/list.d new file mode 100644 index 0000000..6320df6 --- /dev/null +++ b/MDK-ARM/MR16/list.d @@ -0,0 +1,12 @@ +mr16\list.o: ../Middlewares/Third_Party/FreeRTOS/Source/list.c +mr16\list.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdlib.h +mr16\list.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\list.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\list.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\list.o: ../Core/Inc/FreeRTOSConfig.h +mr16\list.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\list.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\list.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\list.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\list.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\list.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h diff --git a/MDK-ARM/MR16/list.o b/MDK-ARM/MR16/list.o new file mode 100644 index 0000000..e62d31e Binary files /dev/null and b/MDK-ARM/MR16/list.o differ diff --git a/MDK-ARM/MR16/main.crf b/MDK-ARM/MR16/main.crf index 2cbd385..f6c8cf8 100644 Binary files a/MDK-ARM/MR16/main.crf and b/MDK-ARM/MR16/main.crf differ diff --git a/MDK-ARM/MR16/main.d b/MDK-ARM/MR16/main.d index f505f44..c726dd9 100644 --- a/MDK-ARM/MR16/main.d +++ b/MDK-ARM/MR16/main.d @@ -29,15 +29,19 @@ mr16\main.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h mr16\main.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h mr16\main.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h mr16\main.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\main.o: ../Core/Inc/FreeRTOSConfig.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\main.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h mr16\main.o: ../Core/Inc/dma.h mr16\main.o: ../Core/Inc/spi.h mr16\main.o: ../Core/Inc/tim.h mr16\main.o: ../Core/Inc/usart.h mr16\main.o: ../Core/Inc/gpio.h -mr16\main.o: ../User/module/mr16.h -mr16\main.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdbool.h -mr16\main.o: ../User/device/sx1281_driver/radio.h -mr16\main.o: ../User/device/sx1281_driver/sx1281_driver.h -mr16\main.o: D:\cangming\ARM\ARMCC\Bin\..\include\math.h -mr16\main.o: ../User/device/sx1281_driver/sx1281.h -mr16\main.o: ../User/device/device.h diff --git a/MDK-ARM/MR16/main.o b/MDK-ARM/MR16/main.o index ce76284..bea54b2 100644 Binary files a/MDK-ARM/MR16/main.o and b/MDK-ARM/MR16/main.o differ diff --git a/MDK-ARM/MR16/mr16.crf b/MDK-ARM/MR16/mr16.crf index c45d38f..40c3f48 100644 Binary files a/MDK-ARM/MR16/mr16.crf and b/MDK-ARM/MR16/mr16.crf differ diff --git a/MDK-ARM/MR16/mr16.d b/MDK-ARM/MR16/mr16.d index f60b61e..4a95075 100644 --- a/MDK-ARM/MR16/mr16.d +++ b/MDK-ARM/MR16/mr16.d @@ -2,6 +2,10 @@ mr16\mr16.o: ..\User\module\mr16.c mr16\mr16.o: ../User/module/mr16.h mr16\mr16.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h mr16\mr16.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdbool.h +mr16\mr16.o: ../User/device/sx1281_driver/sx1281.h +mr16\mr16.o: ../User/device/sx1281_driver/sx1281_driver.h +mr16\mr16.o: D:\cangming\ARM\ARMCC\Bin\..\include\math.h +mr16\mr16.o: ../User/device/device.h mr16\mr16.o: ../Core/Inc/main.h mr16\mr16.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h mr16\mr16.o: ../Core/Inc/stm32f1xx_hal_conf.h @@ -33,13 +37,19 @@ mr16\mr16.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h mr16\mr16.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h mr16\mr16.o: D:\cangming\ARM\ARMCC\Bin\..\include\string.h mr16\mr16.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdio.h +mr16\mr16.o: ../Core/Inc/usart.h +mr16\mr16.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h mr16\mr16.o: ../User/device/sx1281_driver/radio.h -mr16\mr16.o: ../User/device/sx1281_driver/sx1281_driver.h -mr16\mr16.o: D:\cangming\ARM\ARMCC\Bin\..\include\math.h -mr16\mr16.o: ../User/device/sx1281_driver/sx1281.h -mr16\mr16.o: ../User/device/device.h mr16\mr16.o: ../User/device/lcd_driver/lcd.h mr16\mr16.o: ../User/bsp/spi.h mr16\mr16.o: ../Core/Inc/spi.h mr16\mr16.o: ../User/bsp/bsp.h mr16\mr16.o: ../User/bsp/gpio.h +mr16\mr16.o: ../User/component/FreeRTOS_CLI.h +mr16\mr16.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\mr16.o: ../Core/Inc/FreeRTOSConfig.h +mr16\mr16.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\mr16.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\mr16.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\mr16.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\mr16.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h diff --git a/MDK-ARM/MR16/mr16.o b/MDK-ARM/MR16/mr16.o index 8cfa0ba..dfed657 100644 Binary files a/MDK-ARM/MR16/mr16.o and b/MDK-ARM/MR16/mr16.o differ diff --git a/MDK-ARM/MR16/port.crf b/MDK-ARM/MR16/port.crf new file mode 100644 index 0000000..bf58609 Binary files /dev/null and b/MDK-ARM/MR16/port.crf differ diff --git a/MDK-ARM/MR16/port.d b/MDK-ARM/MR16/port.d new file mode 100644 index 0000000..3bd25a9 --- /dev/null +++ b/MDK-ARM/MR16/port.d @@ -0,0 +1,12 @@ +mr16\port.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/port.c +mr16\port.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\port.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\port.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\port.o: ../Core/Inc/FreeRTOSConfig.h +mr16\port.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\port.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\port.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\port.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\port.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\port.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\port.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h diff --git a/MDK-ARM/MR16/port.o b/MDK-ARM/MR16/port.o new file mode 100644 index 0000000..122d5bd Binary files /dev/null and b/MDK-ARM/MR16/port.o differ diff --git a/MDK-ARM/MR16/queue.crf b/MDK-ARM/MR16/queue.crf new file mode 100644 index 0000000..3a0f574 Binary files /dev/null and b/MDK-ARM/MR16/queue.crf differ diff --git a/MDK-ARM/MR16/queue.d b/MDK-ARM/MR16/queue.d new file mode 100644 index 0000000..a608da3 --- /dev/null +++ b/MDK-ARM/MR16/queue.d @@ -0,0 +1,15 @@ +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/queue.c +mr16\queue.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdlib.h +mr16\queue.o: D:\cangming\ARM\ARMCC\Bin\..\include\string.h +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\queue.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\queue.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\queue.o: ../Core/Inc/FreeRTOSConfig.h +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\queue.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h diff --git a/MDK-ARM/MR16/queue.o b/MDK-ARM/MR16/queue.o new file mode 100644 index 0000000..01141fb Binary files /dev/null and b/MDK-ARM/MR16/queue.o differ diff --git a/MDK-ARM/MR16/radio.crf b/MDK-ARM/MR16/radio.crf new file mode 100644 index 0000000..ad321fc Binary files /dev/null and b/MDK-ARM/MR16/radio.crf differ diff --git a/MDK-ARM/MR16/radio.d b/MDK-ARM/MR16/radio.d new file mode 100644 index 0000000..ec9e118 --- /dev/null +++ b/MDK-ARM/MR16/radio.d @@ -0,0 +1,53 @@ +mr16\radio.o: ..\User\task\radio.c +mr16\radio.o: ../User/task/user_task.h +mr16\radio.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h +mr16\radio.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\radio.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\radio.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\radio.o: ../Core/Inc/FreeRTOSConfig.h +mr16\radio.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\radio.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\radio.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\radio.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\radio.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\radio.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\radio.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\radio.o: ../Core/Inc/dma.h +mr16\radio.o: ../Core/Inc/main.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h +mr16\radio.o: ../Core/Inc/stm32f1xx_hal_conf.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h +mr16\radio.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h +mr16\radio.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h +mr16\radio.o: ../Drivers/CMSIS/Include/core_cm3.h +mr16\radio.o: ../Drivers/CMSIS/Include/cmsis_version.h +mr16\radio.o: ../Drivers/CMSIS/Include/cmsis_compiler.h +mr16\radio.o: ../Drivers/CMSIS/Include/cmsis_armcc.h +mr16\radio.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h +mr16\radio.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h +mr16\radio.o: ../Core/Inc/usart.h +mr16\radio.o: ../User/module/mr16.h +mr16\radio.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdbool.h +mr16\radio.o: ../User/device/sx1281_driver/sx1281.h +mr16\radio.o: ../User/device/sx1281_driver/sx1281_driver.h +mr16\radio.o: D:\cangming\ARM\ARMCC\Bin\..\include\math.h +mr16\radio.o: ../User/device/device.h +mr16\radio.o: ../User/bsp/flash.h +mr16\radio.o: ../User/bsp/bsp.h +mr16\radio.o: ../User/device/sx1281_driver/radio.h diff --git a/MDK-ARM/MR16/radio.o b/MDK-ARM/MR16/radio.o new file mode 100644 index 0000000..60ae812 Binary files /dev/null and b/MDK-ARM/MR16/radio.o differ diff --git a/MDK-ARM/MR16/spi.o b/MDK-ARM/MR16/spi.o index 01a5c31..1bf7608 100644 Binary files a/MDK-ARM/MR16/spi.o and b/MDK-ARM/MR16/spi.o differ diff --git a/MDK-ARM/MR16/spi_1.crf b/MDK-ARM/MR16/spi_1.crf index 2d3bc52..9b37d5b 100644 Binary files a/MDK-ARM/MR16/spi_1.crf and b/MDK-ARM/MR16/spi_1.crf differ diff --git a/MDK-ARM/MR16/spi_1.o b/MDK-ARM/MR16/spi_1.o index 59e7565..8fdf401 100644 Binary files a/MDK-ARM/MR16/spi_1.o and b/MDK-ARM/MR16/spi_1.o differ diff --git a/MDK-ARM/MR16/startup_stm32f103xb.o b/MDK-ARM/MR16/startup_stm32f103xb.o index 05db2bf..f1bdd90 100644 Binary files a/MDK-ARM/MR16/startup_stm32f103xb.o and b/MDK-ARM/MR16/startup_stm32f103xb.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal.o b/MDK-ARM/MR16/stm32f1xx_hal.o index 2c58090..a2c1f5d 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal.o and b/MDK-ARM/MR16/stm32f1xx_hal.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_cortex.o b/MDK-ARM/MR16/stm32f1xx_hal_cortex.o index 2b6cfcd..53c5ff4 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_cortex.o and b/MDK-ARM/MR16/stm32f1xx_hal_cortex.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_dma.o b/MDK-ARM/MR16/stm32f1xx_hal_dma.o index 2a9e2fa..04ea979 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_dma.o and b/MDK-ARM/MR16/stm32f1xx_hal_dma.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_exti.o b/MDK-ARM/MR16/stm32f1xx_hal_exti.o index 70ca445..5277303 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_exti.o and b/MDK-ARM/MR16/stm32f1xx_hal_exti.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_flash.o b/MDK-ARM/MR16/stm32f1xx_hal_flash.o index 88f38e4..7e34ff9 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_flash.o and b/MDK-ARM/MR16/stm32f1xx_hal_flash.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_flash_ex.o b/MDK-ARM/MR16/stm32f1xx_hal_flash_ex.o index 5da4f9c..69fbc87 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_flash_ex.o and b/MDK-ARM/MR16/stm32f1xx_hal_flash_ex.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_gpio.o b/MDK-ARM/MR16/stm32f1xx_hal_gpio.o index 8bb7659..36766c4 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_gpio.o and b/MDK-ARM/MR16/stm32f1xx_hal_gpio.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_gpio_ex.o b/MDK-ARM/MR16/stm32f1xx_hal_gpio_ex.o index c3dd4ae..4d1fb6f 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_gpio_ex.o and b/MDK-ARM/MR16/stm32f1xx_hal_gpio_ex.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_msp.crf b/MDK-ARM/MR16/stm32f1xx_hal_msp.crf index 56f9cf9..614d87a 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_msp.crf and b/MDK-ARM/MR16/stm32f1xx_hal_msp.crf differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_msp.o b/MDK-ARM/MR16/stm32f1xx_hal_msp.o index 45f3a30..d5690de 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_msp.o and b/MDK-ARM/MR16/stm32f1xx_hal_msp.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_pwr.o b/MDK-ARM/MR16/stm32f1xx_hal_pwr.o index 8d37068..46e1956 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_pwr.o and b/MDK-ARM/MR16/stm32f1xx_hal_pwr.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_rcc.o b/MDK-ARM/MR16/stm32f1xx_hal_rcc.o index 29a9aad..a94defc 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_rcc.o and b/MDK-ARM/MR16/stm32f1xx_hal_rcc.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_rcc_ex.o b/MDK-ARM/MR16/stm32f1xx_hal_rcc_ex.o index 68d5ec3..7fe0e4a 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_rcc_ex.o and b/MDK-ARM/MR16/stm32f1xx_hal_rcc_ex.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_spi.o b/MDK-ARM/MR16/stm32f1xx_hal_spi.o index 16d2575..1f8f6a1 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_spi.o and b/MDK-ARM/MR16/stm32f1xx_hal_spi.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_tim.o b/MDK-ARM/MR16/stm32f1xx_hal_tim.o index d2dd7e6..1f7e789 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_tim.o and b/MDK-ARM/MR16/stm32f1xx_hal_tim.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_tim_ex.o b/MDK-ARM/MR16/stm32f1xx_hal_tim_ex.o index 399aa3f..c49d63a 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_tim_ex.o and b/MDK-ARM/MR16/stm32f1xx_hal_tim_ex.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_hal_uart.o b/MDK-ARM/MR16/stm32f1xx_hal_uart.o index 5c7b643..082e4e0 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_hal_uart.o and b/MDK-ARM/MR16/stm32f1xx_hal_uart.o differ diff --git a/MDK-ARM/MR16/stm32f1xx_it.crf b/MDK-ARM/MR16/stm32f1xx_it.crf index 23b7eb4..4331ece 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_it.crf and b/MDK-ARM/MR16/stm32f1xx_it.crf differ diff --git a/MDK-ARM/MR16/stm32f1xx_it.d b/MDK-ARM/MR16/stm32f1xx_it.d index 6f7437d..c2a817a 100644 --- a/MDK-ARM/MR16/stm32f1xx_it.d +++ b/MDK-ARM/MR16/stm32f1xx_it.d @@ -30,3 +30,12 @@ mr16\stm32f1xx_it.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h mr16\stm32f1xx_it.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h mr16\stm32f1xx_it.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h mr16\stm32f1xx_it.o: ../Core/Inc/stm32f1xx_it.h +mr16\stm32f1xx_it.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\stm32f1xx_it.o: ../Core/Inc/FreeRTOSConfig.h +mr16\stm32f1xx_it.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\stm32f1xx_it.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\stm32f1xx_it.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\stm32f1xx_it.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\stm32f1xx_it.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\stm32f1xx_it.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\stm32f1xx_it.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h diff --git a/MDK-ARM/MR16/stm32f1xx_it.o b/MDK-ARM/MR16/stm32f1xx_it.o index f266307..f9ed825 100644 Binary files a/MDK-ARM/MR16/stm32f1xx_it.o and b/MDK-ARM/MR16/stm32f1xx_it.o differ diff --git a/MDK-ARM/MR16/stream_buffer.crf b/MDK-ARM/MR16/stream_buffer.crf new file mode 100644 index 0000000..a7bc410 Binary files /dev/null and b/MDK-ARM/MR16/stream_buffer.crf differ diff --git a/MDK-ARM/MR16/stream_buffer.d b/MDK-ARM/MR16/stream_buffer.d new file mode 100644 index 0000000..e1649a8 --- /dev/null +++ b/MDK-ARM/MR16/stream_buffer.d @@ -0,0 +1,14 @@ +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c +mr16\stream_buffer.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\stream_buffer.o: D:\cangming\ARM\ARMCC\Bin\..\include\string.h +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\stream_buffer.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\stream_buffer.o: ../Core/Inc/FreeRTOSConfig.h +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\stream_buffer.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h diff --git a/MDK-ARM/MR16/stream_buffer.o b/MDK-ARM/MR16/stream_buffer.o new file mode 100644 index 0000000..eb6bc42 Binary files /dev/null and b/MDK-ARM/MR16/stream_buffer.o differ diff --git a/MDK-ARM/MR16/sx1281.crf b/MDK-ARM/MR16/sx1281.crf index 0c89d2b..9775219 100644 Binary files a/MDK-ARM/MR16/sx1281.crf and b/MDK-ARM/MR16/sx1281.crf differ diff --git a/MDK-ARM/MR16/sx1281.d b/MDK-ARM/MR16/sx1281.d index bc15bde..c2e68ac 100644 --- a/MDK-ARM/MR16/sx1281.d +++ b/MDK-ARM/MR16/sx1281.d @@ -36,6 +36,7 @@ mr16\sx1281.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h mr16\sx1281.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h mr16\sx1281.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h mr16\sx1281.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h +mr16\sx1281.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h mr16\sx1281.o: ../User/bsp/uart.h mr16\sx1281.o: ../User/bsp/bsp.h mr16\sx1281.o: ../User/device/sx1281_driver/sx1281_header.h diff --git a/MDK-ARM/MR16/sx1281.o b/MDK-ARM/MR16/sx1281.o index bc60368..938997d 100644 Binary files a/MDK-ARM/MR16/sx1281.o and b/MDK-ARM/MR16/sx1281.o differ diff --git a/MDK-ARM/MR16/sx1281_driver.crf b/MDK-ARM/MR16/sx1281_driver.crf index d1a7869..c0501f8 100644 Binary files a/MDK-ARM/MR16/sx1281_driver.crf and b/MDK-ARM/MR16/sx1281_driver.crf differ diff --git a/MDK-ARM/MR16/sx1281_driver.o b/MDK-ARM/MR16/sx1281_driver.o index 1de9b42..eb33e6d 100644 Binary files a/MDK-ARM/MR16/sx1281_driver.o and b/MDK-ARM/MR16/sx1281_driver.o differ diff --git a/MDK-ARM/MR16/sx1281_driver_gpio.crf b/MDK-ARM/MR16/sx1281_driver_gpio.crf index 8dd03c0..0cf5dff 100644 Binary files a/MDK-ARM/MR16/sx1281_driver_gpio.crf and b/MDK-ARM/MR16/sx1281_driver_gpio.crf differ diff --git a/MDK-ARM/MR16/sx1281_driver_gpio.o b/MDK-ARM/MR16/sx1281_driver_gpio.o index 4815c88..f08ced4 100644 Binary files a/MDK-ARM/MR16/sx1281_driver_gpio.o and b/MDK-ARM/MR16/sx1281_driver_gpio.o differ diff --git a/MDK-ARM/MR16/sx1281_driver_hal.crf b/MDK-ARM/MR16/sx1281_driver_hal.crf index 0234d27..616a315 100644 Binary files a/MDK-ARM/MR16/sx1281_driver_hal.crf and b/MDK-ARM/MR16/sx1281_driver_hal.crf differ diff --git a/MDK-ARM/MR16/sx1281_driver_hal.o b/MDK-ARM/MR16/sx1281_driver_hal.o index 20fd091..2320a1b 100644 Binary files a/MDK-ARM/MR16/sx1281_driver_hal.o and b/MDK-ARM/MR16/sx1281_driver_hal.o differ diff --git a/MDK-ARM/MR16/sx1281_driver_spi.crf b/MDK-ARM/MR16/sx1281_driver_spi.crf index 14cf894..5d8ce76 100644 Binary files a/MDK-ARM/MR16/sx1281_driver_spi.crf and b/MDK-ARM/MR16/sx1281_driver_spi.crf differ diff --git a/MDK-ARM/MR16/sx1281_driver_spi.o b/MDK-ARM/MR16/sx1281_driver_spi.o index 59f0e8e..cd1f30a 100644 Binary files a/MDK-ARM/MR16/sx1281_driver_spi.o and b/MDK-ARM/MR16/sx1281_driver_spi.o differ diff --git a/MDK-ARM/MR16/sx1281_driver_uart.crf b/MDK-ARM/MR16/sx1281_driver_uart.crf index 5114d2e..3a7efec 100644 Binary files a/MDK-ARM/MR16/sx1281_driver_uart.crf and b/MDK-ARM/MR16/sx1281_driver_uart.crf differ diff --git a/MDK-ARM/MR16/sx1281_driver_uart.d b/MDK-ARM/MR16/sx1281_driver_uart.d index 9b26f13..33fb887 100644 --- a/MDK-ARM/MR16/sx1281_driver_uart.d +++ b/MDK-ARM/MR16/sx1281_driver_uart.d @@ -30,6 +30,7 @@ mr16\sx1281_driver_uart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi mr16\sx1281_driver_uart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h mr16\sx1281_driver_uart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h mr16\sx1281_driver_uart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h +mr16\sx1281_driver_uart.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h mr16\sx1281_driver_uart.o: ../User/bsp/uart.h mr16\sx1281_driver_uart.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdbool.h mr16\sx1281_driver_uart.o: ../User/bsp/bsp.h diff --git a/MDK-ARM/MR16/sx1281_driver_uart.o b/MDK-ARM/MR16/sx1281_driver_uart.o index 5f12950..f791d28 100644 Binary files a/MDK-ARM/MR16/sx1281_driver_uart.o and b/MDK-ARM/MR16/sx1281_driver_uart.o differ diff --git a/MDK-ARM/MR16/sx1281_header.crf b/MDK-ARM/MR16/sx1281_header.crf index c22bd46..3e900cf 100644 Binary files a/MDK-ARM/MR16/sx1281_header.crf and b/MDK-ARM/MR16/sx1281_header.crf differ diff --git a/MDK-ARM/MR16/sx1281_header.d b/MDK-ARM/MR16/sx1281_header.d index 3d86d3e..93fb365 100644 --- a/MDK-ARM/MR16/sx1281_header.d +++ b/MDK-ARM/MR16/sx1281_header.d @@ -39,4 +39,5 @@ mr16\sx1281_header.o: ../User/device/sx1281_driver/sx1281_driver_spi.h mr16\sx1281_header.o: ../User/device/sx1281_driver/sx1281_driver_uart.h mr16\sx1281_header.o: ../User/bsp/uart.h mr16\sx1281_header.o: ../Core/Inc/usart.h +mr16\sx1281_header.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h mr16\sx1281_header.o: ../User/bsp/bsp.h diff --git a/MDK-ARM/MR16/sx1281_header.o b/MDK-ARM/MR16/sx1281_header.o index 588680a..6a4a9d7 100644 Binary files a/MDK-ARM/MR16/sx1281_header.o and b/MDK-ARM/MR16/sx1281_header.o differ diff --git a/MDK-ARM/MR16/system_stm32f1xx.o b/MDK-ARM/MR16/system_stm32f1xx.o index 312f1ac..e7a49e9 100644 Binary files a/MDK-ARM/MR16/system_stm32f1xx.o and b/MDK-ARM/MR16/system_stm32f1xx.o differ diff --git a/MDK-ARM/MR16/tasks.crf b/MDK-ARM/MR16/tasks.crf new file mode 100644 index 0000000..dad7051 Binary files /dev/null and b/MDK-ARM/MR16/tasks.crf differ diff --git a/MDK-ARM/MR16/tasks.d b/MDK-ARM/MR16/tasks.d new file mode 100644 index 0000000..ba3b038 --- /dev/null +++ b/MDK-ARM/MR16/tasks.d @@ -0,0 +1,16 @@ +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/tasks.c +mr16\tasks.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdlib.h +mr16\tasks.o: D:\cangming\ARM\ARMCC\Bin\..\include\string.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\tasks.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\tasks.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\tasks.o: ../Core/Inc/FreeRTOSConfig.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h +mr16\tasks.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h diff --git a/MDK-ARM/MR16/tasks.o b/MDK-ARM/MR16/tasks.o new file mode 100644 index 0000000..dbb5c97 Binary files /dev/null and b/MDK-ARM/MR16/tasks.o differ diff --git a/MDK-ARM/MR16/tim.o b/MDK-ARM/MR16/tim.o index e104daa..89e6cb1 100644 Binary files a/MDK-ARM/MR16/tim.o and b/MDK-ARM/MR16/tim.o differ diff --git a/MDK-ARM/MR16/time.crf b/MDK-ARM/MR16/time.crf new file mode 100644 index 0000000..80b1686 Binary files /dev/null and b/MDK-ARM/MR16/time.crf differ diff --git a/MDK-ARM/MR16/time.d b/MDK-ARM/MR16/time.d new file mode 100644 index 0000000..b9a5ed9 --- /dev/null +++ b/MDK-ARM/MR16/time.d @@ -0,0 +1,43 @@ +mr16\time.o: ..\User\bsp\time.c +mr16\time.o: ../User/bsp/time.h +mr16\time.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\time.o: ../User/bsp/bsp.h +mr16\time.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h +mr16\time.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\time.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\time.o: ../Core/Inc/FreeRTOSConfig.h +mr16\time.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\time.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\time.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\time.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\time.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\time.o: ../Core/Inc/main.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h +mr16\time.o: ../Core/Inc/stm32f1xx_hal_conf.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h +mr16\time.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h +mr16\time.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h +mr16\time.o: ../Drivers/CMSIS/Include/core_cm3.h +mr16\time.o: ../Drivers/CMSIS/Include/cmsis_version.h +mr16\time.o: ../Drivers/CMSIS/Include/cmsis_compiler.h +mr16\time.o: ../Drivers/CMSIS/Include/cmsis_armcc.h +mr16\time.o: ../Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h +mr16\time.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h +mr16\time.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\time.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h diff --git a/MDK-ARM/MR16/time.o b/MDK-ARM/MR16/time.o new file mode 100644 index 0000000..2b606a0 Binary files /dev/null and b/MDK-ARM/MR16/time.o differ diff --git a/MDK-ARM/MR16/timers.crf b/MDK-ARM/MR16/timers.crf new file mode 100644 index 0000000..0a502d5 Binary files /dev/null and b/MDK-ARM/MR16/timers.crf differ diff --git a/MDK-ARM/MR16/timers.d b/MDK-ARM/MR16/timers.d new file mode 100644 index 0000000..0145c7d --- /dev/null +++ b/MDK-ARM/MR16/timers.d @@ -0,0 +1,15 @@ +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/timers.c +mr16\timers.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdlib.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\timers.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\timers.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\timers.o: ../Core/Inc/FreeRTOSConfig.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h +mr16\timers.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h diff --git a/MDK-ARM/MR16/timers.o b/MDK-ARM/MR16/timers.o new file mode 100644 index 0000000..6db89de Binary files /dev/null and b/MDK-ARM/MR16/timers.o differ diff --git a/MDK-ARM/MR16/uart.crf b/MDK-ARM/MR16/uart.crf index 4c82f5d..1373675 100644 Binary files a/MDK-ARM/MR16/uart.crf and b/MDK-ARM/MR16/uart.crf differ diff --git a/MDK-ARM/MR16/uart.d b/MDK-ARM/MR16/uart.d index 756e6c0..b436c47 100644 --- a/MDK-ARM/MR16/uart.d +++ b/MDK-ARM/MR16/uart.d @@ -30,6 +30,7 @@ mr16\uart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h mr16\uart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h mr16\uart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h mr16\uart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h +mr16\uart.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h mr16\uart.o: ../User/bsp/uart.h mr16\uart.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdbool.h mr16\uart.o: ../User/bsp/bsp.h diff --git a/MDK-ARM/MR16/uart.o b/MDK-ARM/MR16/uart.o index 43c6de6..75fe994 100644 Binary files a/MDK-ARM/MR16/uart.o and b/MDK-ARM/MR16/uart.o differ diff --git a/MDK-ARM/MR16/ui.crf b/MDK-ARM/MR16/ui.crf new file mode 100644 index 0000000..2edb140 Binary files /dev/null and b/MDK-ARM/MR16/ui.crf differ diff --git a/MDK-ARM/MR16/ui.d b/MDK-ARM/MR16/ui.d new file mode 100644 index 0000000..e6b47c4 --- /dev/null +++ b/MDK-ARM/MR16/ui.d @@ -0,0 +1,10 @@ +mr16\ui.o: ..\User\component\ui.c +mr16\ui.o: ../User/component/ui.h +mr16\ui.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\ui.o: D:\cangming\ARM\ARMCC\Bin\..\include\string.h +mr16\ui.o: ../User/component/user_math.h +mr16\ui.o: D:\cangming\ARM\ARMCC\Bin\..\include\float.h +mr16\ui.o: D:\cangming\ARM\ARMCC\Bin\..\include\math.h +mr16\ui.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdbool.h +mr16\ui.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\ui.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdio.h diff --git a/MDK-ARM/MR16/ui.o b/MDK-ARM/MR16/ui.o new file mode 100644 index 0000000..cee6701 Binary files /dev/null and b/MDK-ARM/MR16/ui.o differ diff --git a/MDK-ARM/MR16/usart.crf b/MDK-ARM/MR16/usart.crf index 4bde8ae..664dddb 100644 Binary files a/MDK-ARM/MR16/usart.crf and b/MDK-ARM/MR16/usart.crf differ diff --git a/MDK-ARM/MR16/usart.d b/MDK-ARM/MR16/usart.d index 451d59a..3139daf 100644 --- a/MDK-ARM/MR16/usart.d +++ b/MDK-ARM/MR16/usart.d @@ -30,5 +30,6 @@ mr16\usart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h mr16\usart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h mr16\usart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h mr16\usart.o: ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_uart.h +mr16\usart.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h mr16\usart.o: D:\cangming\ARM\ARMCC\Bin\..\include\string.h mr16\usart.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdio.h diff --git a/MDK-ARM/MR16/usart.o b/MDK-ARM/MR16/usart.o index 73e2c8c..7ba7fbe 100644 Binary files a/MDK-ARM/MR16/usart.o and b/MDK-ARM/MR16/usart.o differ diff --git a/MDK-ARM/MR16/user_math.crf b/MDK-ARM/MR16/user_math.crf index af6d920..5bde7d7 100644 Binary files a/MDK-ARM/MR16/user_math.crf and b/MDK-ARM/MR16/user_math.crf differ diff --git a/MDK-ARM/MR16/user_math.o b/MDK-ARM/MR16/user_math.o index 752d5f8..e7f9e58 100644 Binary files a/MDK-ARM/MR16/user_math.o and b/MDK-ARM/MR16/user_math.o differ diff --git a/MDK-ARM/MR16/user_task.crf b/MDK-ARM/MR16/user_task.crf new file mode 100644 index 0000000..f6607df Binary files /dev/null and b/MDK-ARM/MR16/user_task.crf differ diff --git a/MDK-ARM/MR16/user_task.d b/MDK-ARM/MR16/user_task.d new file mode 100644 index 0000000..bfcca39 --- /dev/null +++ b/MDK-ARM/MR16/user_task.d @@ -0,0 +1,14 @@ +mr16\user_task.o: ..\User\task\user_task.c +mr16\user_task.o: ../User/task/user_task.h +mr16\user_task.o: ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h +mr16\user_task.o: D:\cangming\ARM\ARMCC\Bin\..\include\stdint.h +mr16\user_task.o: D:\cangming\ARM\ARMCC\Bin\..\include\stddef.h +mr16\user_task.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h +mr16\user_task.o: ../Core/Inc/FreeRTOSConfig.h +mr16\user_task.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h +mr16\user_task.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h +mr16\user_task.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h +mr16\user_task.o: ../Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h +mr16\user_task.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h +mr16\user_task.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/task.h +mr16\user_task.o: ../Middlewares/Third_Party/FreeRTOS/Source/include/list.h diff --git a/MDK-ARM/MR16/user_task.o b/MDK-ARM/MR16/user_task.o new file mode 100644 index 0000000..f8439ec Binary files /dev/null and b/MDK-ARM/MR16/user_task.o differ diff --git a/MDK-ARM/startup_stm32f103xb.lst b/MDK-ARM/startup_stm32f103xb.lst index 64d57e8..69a43ef 100644 --- a/MDK-ARM/startup_stm32f103xb.lst +++ b/MDK-ARM/startup_stm32f103xb.lst @@ -460,12 +460,12 @@ ARM Macro Assembler Page 8 Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M3 --apcs=interw -ork --depend=mr16\startup_stm32f103xb.d -omr16\startup_stm32f103xb.o -I.\RTE\_M -R16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include -ID:\cangming\keil\STM32F1 -xx_DFP\2.0.0\Device\Include --predefine="__MICROLIB SETA 1" --predefine="__UVIS -ION_VERSION SETA 534" --predefine="_RTE_ SETA 1" --predefine="STM32F10X_MD SETA - 1" --predefine="_RTE_ SETA 1" --list=startup_stm32f103xb.lst startup_stm32f103 -xb.s +ork --depend=mr16\startup_stm32f103xb.d -omr16\startup_stm32f103xb.o -I../Drive +rs/CMSIS/Include -I.\RTE\_MR16 -ID:\cangming\ARM\CMSIS\5.7.0\CMSIS\Core\Include + -ID:\cangming\keil\STM32F1xx_DFP\2.0.0\Device\Include --predefine="__MICROLIB +SETA 1" --predefine="__UVISION_VERSION SETA 534" --predefine="_RTE_ SETA 1" --p +redefine="STM32F10X_MD SETA 1" --predefine="_RTE_ SETA 1" --list=startup_stm32f +103xb.lst startup_stm32f103xb.s diff --git a/MR16.ioc b/MR16.ioc index e3bc2ef..96578fe 100644 --- a/MR16.ioc +++ b/MR16.ioc @@ -53,21 +53,24 @@ Dma.USART2_TX.4.PeriphDataAlignment=DMA_PDATAALIGN_BYTE Dma.USART2_TX.4.PeriphInc=DMA_PINC_DISABLE Dma.USART2_TX.4.Priority=DMA_PRIORITY_LOW Dma.USART2_TX.4.RequestParameters=Instance,Direction,PeriphInc,MemInc,PeriphDataAlignment,MemDataAlignment,Mode,Priority +FREERTOS.IPParameters=Tasks01 +FREERTOS.Tasks01=defaultTask,24,128,StartDefaultTask,Default,NULL,Dynamic,NULL,NULL File.Version=6 GPIO.groupedBy=Group By Peripherals KeepUserPlacement=false Mcu.CPN=STM32F103C8T6 Mcu.Family=STM32F1 Mcu.IP0=DMA -Mcu.IP1=NVIC -Mcu.IP2=RCC -Mcu.IP3=SPI1 -Mcu.IP4=SPI2 -Mcu.IP5=SYS -Mcu.IP6=TIM1 -Mcu.IP7=USART1 -Mcu.IP8=USART2 -Mcu.IPNb=9 +Mcu.IP1=FREERTOS +Mcu.IP2=NVIC +Mcu.IP3=RCC +Mcu.IP4=SPI1 +Mcu.IP5=SPI2 +Mcu.IP6=SYS +Mcu.IP7=TIM1 +Mcu.IP8=USART1 +Mcu.IP9=USART2 +Mcu.IPNb=10 Mcu.Name=STM32F103C(8-B)Tx Mcu.Package=LQFP48 Mcu.Pin0=PD0-OSC_IN @@ -89,8 +92,9 @@ Mcu.Pin22=PB6 Mcu.Pin23=PB7 Mcu.Pin24=PB8 Mcu.Pin25=PB9 -Mcu.Pin26=VP_SYS_VS_Systick -Mcu.Pin27=VP_TIM1_VS_ClockSourceINT +Mcu.Pin26=VP_FREERTOS_VS_CMSIS_V2 +Mcu.Pin27=VP_SYS_VS_Systick +Mcu.Pin28=VP_TIM1_VS_ClockSourceINT Mcu.Pin3=PA3 Mcu.Pin4=PA4 Mcu.Pin5=PA5 @@ -98,31 +102,34 @@ Mcu.Pin6=PA6 Mcu.Pin7=PA7 Mcu.Pin8=PB0 Mcu.Pin9=PB12 -Mcu.PinsNb=28 +Mcu.PinsNb=29 Mcu.ThirdPartyNb=0 Mcu.UserConstants= Mcu.UserName=STM32F103C8Tx MxCube.Version=6.15.0 MxDb.Version=DB.6.0.150 -NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false -NVIC.DMA1_Channel2_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true -NVIC.DMA1_Channel3_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true -NVIC.DMA1_Channel5_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true -NVIC.DMA1_Channel6_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true -NVIC.DMA1_Channel7_IRQn=true\:0\:0\:false\:false\:true\:false\:true\:true -NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false -NVIC.EXTI15_10_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true -NVIC.EXTI9_5_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true +NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false +NVIC.DMA1_Channel2_IRQn=true\:5\:0\:false\:false\:true\:true\:false\:true\:true +NVIC.DMA1_Channel3_IRQn=true\:5\:0\:false\:false\:true\:true\:false\:true\:true +NVIC.DMA1_Channel5_IRQn=true\:5\:0\:false\:false\:true\:true\:false\:true\:true +NVIC.DMA1_Channel6_IRQn=true\:5\:0\:false\:false\:true\:true\:false\:true\:true +NVIC.DMA1_Channel7_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.EXTI15_10_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true\:true +NVIC.EXTI9_5_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true\:true NVIC.ForceEnableDMAVector=true -NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false -NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false -NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false -NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false +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.SVCall_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false -NVIC.SysTick_IRQn=true\:15\:0\:false\:false\:true\:false\:true\:false -NVIC.USART2_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true -NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false +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\:true\:true\:false\:true\:false +NVIC.USART2_IRQn=true\:5\:0\:true\:false\:true\:true\:true\:true\:true +NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:true\:false\:false\:false\:false PA11.GPIOParameters=GPIO_Label PA11.GPIO_Label=WS2812 PA11.Locked=true @@ -307,6 +314,8 @@ USART1.Mode=MODE_TX USART1.VirtualMode=VM_ASYNC USART2.IPParameters=VirtualMode USART2.VirtualMode=VM_ASYNC +VP_FREERTOS_VS_CMSIS_V2.Mode=CMSIS_V2 +VP_FREERTOS_VS_CMSIS_V2.Signal=FREERTOS_VS_CMSIS_V2 VP_SYS_VS_Systick.Mode=SysTick VP_SYS_VS_Systick.Signal=SYS_VS_Systick VP_TIM1_VS_ClockSourceINT.Mode=Internal diff --git a/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h new file mode 100644 index 0000000..711408a --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os.h @@ -0,0 +1,846 @@ +/* + * Copyright (c) 2013-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. + * + * ---------------------------------------------------------------------- + * + * $Date: 10. January 2017 + * $Revision: V2.1.0 + * + * Project: CMSIS-RTOS API + * Title: cmsis_os.h FreeRTOS 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 typedefs + * - 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 + * Version 2.0.0 + * OS objects creation without macros (dynamic creation and resource allocation): + * - added: osXxxxNew functions which replace osXxxxCreate + * - added: osXxxxAttr_t structures + * - deprecated: osXxxxCreate functions, osXxxxDef_t structures + * - deprecated: osXxxxDef and osXxxx macros + * osStatus codes simplified and renamed to osStatus_t + * osEvent return structure deprecated + * Kernel: + * - added: osKernelInfo_t and osKernelGetInfo + * - added: osKernelState_t and osKernelGetState (replaces osKernelRunning) + * - added: osKernelLock, osKernelUnlock + * - added: osKernelSuspend, osKernelResume + * - added: osKernelGetTickCount, osKernelGetTickFreq + * - renamed osKernelSysTick to osKernelGetSysTimerCount + * - replaced osKernelSysTickFrequency with osKernelGetSysTimerFreq + * - deprecated osKernelSysTickMicroSec + * Thread: + * - extended number of thread priorities + * - renamed osPrioriry to osPrioriry_t + * - replaced osThreadCreate with osThreadNew + * - added: osThreadGetName + * - added: osThreadState_t and osThreadGetState + * - added: osThreadGetStackSize, osThreadGetStackSpace + * - added: osThreadSuspend, osThreadResume + * - added: osThreadJoin, osThreadDetach, osThreadExit + * - added: osThreadGetCount, osThreadEnumerate + * - added: Thread Flags (moved from Signals) + * Signals: + * - renamed osSignals to osThreadFlags (moved to Thread Flags) + * - changed return value of Set/Clear/Wait functions + * - Clear function limited to current running thread + * - extended Wait function (options) + * - added: osThreadFlagsGet + * Event Flags: + * - added new independent object for handling Event Flags + * Delay and Wait functions: + * - added: osDelayUntil + * - deprecated: osWait + * Timer: + * - replaced osTimerCreate with osTimerNew + * - added: osTimerGetName, osTimerIsRunning + * Mutex: + * - extended: attributes (Recursive, Priority Inherit, Robust) + * - replaced osMutexCreate with osMutexNew + * - renamed osMutexWait to osMutexAcquire + * - added: osMutexGetName, osMutexGetOwner + * Semaphore: + * - extended: maximum and initial token count + * - replaced osSemaphoreCreate with osSemaphoreNew + * - renamed osSemaphoreWait to osSemaphoreAcquire (changed return value) + * - added: osSemaphoreGetName, osSemaphoreGetCount + * Memory Pool: + * - using osMemoryPool prefix instead of osPool + * - replaced osPoolCreate with osMemoryPoolNew + * - extended osMemoryPoolAlloc (timeout) + * - added: osMemoryPoolGetName + * - added: osMemoryPoolGetCapacity, osMemoryPoolGetBlockSize + * - added: osMemoryPoolGetCount, osMemoryPoolGetSpace + * - added: osMemoryPoolDelete + * - deprecated: osPoolCAlloc + * Message Queue: + * - extended: fixed size message instead of a single 32-bit value + * - using osMessageQueue prefix instead of osMessage + * - replaced osMessageCreate with osMessageQueueNew + * - updated: osMessageQueuePut, osMessageQueueGet + * - added: osMessageQueueGetName + * - added: osMessageQueueGetCapacity, osMessageQueueGetMsgSize + * - added: osMessageQueueGetCount, osMessageQueueGetSpace + * - added: osMessageQueueReset, osMessageQueueDelete + * Mail Queue: + * - deprecated (superseded by extended Message Queue functionality) + * Version 2.1.0 + * Support for critical and uncritical sections (nesting safe): + * - updated: osKernelLock, osKernelUnlock + * - added: osKernelRestoreLock + * Updated Thread and Event Flags: + * - changed flags parameter and return type from int32_t to uint32_t + *---------------------------------------------------------------------------*/ + +#ifndef CMSIS_OS_H_ +#define CMSIS_OS_H_ + +#include "FreeRTOS.h" +#include "task.h" + +#define RTOS_ID_n ((tskKERNEL_VERSION_MAJOR << 16) | (tskKERNEL_VERSION_MINOR)) +#define RTOS_ID_s ("FreeRTOS " tskKERNEL_VERSION_NUMBER) + +#define osCMSIS 0x20001U ///< API version (main[31:16].sub[15:0]) + +#define osCMSIS_FreeRTOS RTOS_ID_n ///< RTOS identification and version (main[31:16].sub[15:0]) + +#define osKernelSystemId RTOS_ID_s ///< RTOS identification string + +#define osFeature_MainThread 0 ///< main thread 1=main can be thread, 0=not available +#define osFeature_Signals 24U ///< maximum number of Signal Flags available per thread +#define osFeature_Semaphore 65535U ///< maximum count for \ref osSemaphoreCreate function +#define osFeature_Wait 0 ///< osWait function: 1=available, 0=not available +#define osFeature_SysTick 1 ///< osKernelSysTick functions: 1=available, 0=not available +#define osFeature_Pool 0 ///< Memory Pools: 1=available, 0=not available +#define osFeature_MessageQ 1 ///< Message Queues: 1=available, 0=not available +#define osFeature_MailQ 0 ///< Mail Queues: 1=available, 0=not available + +#if defined(__CC_ARM) +#define os_InRegs __value_in_regs +#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) +#define os_InRegs __attribute__((value_in_regs)) +#else +#define os_InRegs +#endif + +#include "cmsis_os2.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + + +// ==== Enumerations, structures, defines ==== + +/// Priority values. +#if (osCMSIS < 0x20000U) +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 illegal priority. + osPriorityReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. +} osPriority; +#else +#define osPriority osPriority_t +#endif + +/// Entry point of a thread. +typedef void (*os_pthread) (void const *argument); + +/// Entry point of a timer call back function. +typedef void (*os_ptimer) (void const *argument); + +/// Timer type. +#if (osCMSIS < 0x20000U) +typedef enum { + osTimerOnce = 0, ///< One-shot timer. + osTimerPeriodic = 1 ///< Repeating timer. +} os_timer_type; +#else +#define os_timer_type osTimerType_t +#endif + +/// Timeout value. +#define osWaitForever 0xFFFFFFFFU ///< Wait forever timeout value. + +/// Status code values returned by CMSIS-RTOS functions. +#if (osCMSIS < 0x20000U) +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. + osStatusReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. +} osStatus; +#else +typedef int32_t osStatus; +#define osEventSignal (0x08) +#define osEventMessage (0x10) +#define osEventMail (0x20) +#define osEventTimeout (0x40) +#define osErrorOS osError +#define osErrorTimeoutResource osErrorTimeout +#define osErrorISRRecursive (-126) +#define osErrorValue (-127) +#define osErrorPriority (-128) +#endif + + +// >>> the following data type definitions may be adapted towards a specific RTOS + +/// Thread ID identifies the thread. +#if (osCMSIS < 0x20000U) +typedef void *osThreadId; +#else +#define osThreadId osThreadId_t +#endif + +/// Timer ID identifies the timer. +#if (osCMSIS < 0x20000U) +typedef void *osTimerId; +#else +#define osTimerId osTimerId_t +#endif + +/// Mutex ID identifies the mutex. +#if (osCMSIS < 0x20000U) +typedef void *osMutexId; +#else +#define osMutexId osMutexId_t +#endif + +/// Semaphore ID identifies the semaphore. +#if (osCMSIS < 0x20000U) +typedef void *osSemaphoreId; +#else +#define osSemaphoreId osSemaphoreId_t +#endif + +/// Pool ID identifies the memory pool. +typedef void *osPoolId; + +/// Message ID identifies the message queue. +typedef void *osMessageQId; + +/// Mail ID identifies the mail queue. +typedef void *osMailQId; + + +/// Thread Definition structure contains startup information of a thread. +#if (osCMSIS < 0x20000U) +typedef struct os_thread_def { + 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 +} osThreadDef_t; +#else +typedef struct os_thread_def { + os_pthread pthread; ///< start address of thread function + osThreadAttr_t attr; ///< thread attributes +} osThreadDef_t; +#endif + +/// Timer Definition structure contains timer parameters. +#if (osCMSIS < 0x20000U) +typedef struct os_timer_def { + os_ptimer ptimer; ///< start address of a timer function +} osTimerDef_t; +#else +typedef struct os_timer_def { + os_ptimer ptimer; ///< start address of a timer function + osTimerAttr_t attr; ///< timer attributes +} osTimerDef_t; +#endif + +/// Mutex Definition structure contains setup information for a mutex. +#if (osCMSIS < 0x20000U) +typedef struct os_mutex_def { + uint32_t dummy; ///< dummy value +} osMutexDef_t; +#else +#define osMutexDef_t osMutexAttr_t +#endif + +/// Semaphore Definition structure contains setup information for a semaphore. +#if (osCMSIS < 0x20000U) +typedef struct os_semaphore_def { + uint32_t dummy; ///< dummy value +} osSemaphoreDef_t; +#else +#define osSemaphoreDef_t osSemaphoreAttr_t +#endif + +/// Definition structure for memory block allocation. +#if (osCMSIS < 0x20000U) +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; +#else +typedef struct os_pool_def { + uint32_t pool_sz; ///< number of items (elements) in the pool + uint32_t item_sz; ///< size of an item + osMemoryPoolAttr_t attr; ///< memory pool attributes +} osPoolDef_t; +#endif + +/// Definition structure for message queue. +#if (osCMSIS < 0x20000U) +typedef struct os_messageQ_def { + uint32_t queue_sz; ///< number of elements in the queue + void *pool; ///< memory array for messages +} osMessageQDef_t; +#else +typedef struct os_messageQ_def { + uint32_t queue_sz; ///< number of elements in the queue + osMessageQueueAttr_t attr; ///< message queue attributes +} osMessageQDef_t; +#endif + +/// Definition structure for mail queue. +#if (osCMSIS < 0x20000U) +typedef struct os_mailQ_def { + uint32_t queue_sz; ///< number of elements in the queue + uint32_t item_sz; ///< size of an item + void *pool; ///< memory array for mail +} osMailQDef_t; +#else +typedef struct os_mailQ_def { + uint32_t queue_sz; ///< number of elements in the queue + uint32_t item_sz; ///< size of an item + void *mail; ///< pointer to mail + osMemoryPoolAttr_t mp_attr; ///< memory pool attributes + osMessageQueueAttr_t mq_attr; ///< message queue attributes +} osMailQDef_t; +#endif + + +/// Event structure contains detailed information about an event. +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 Management Functions ==== + +/// Initialize the RTOS Kernel for creating objects. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osKernelInitialize (void); +#endif + +/// Start the RTOS Kernel scheduler. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osKernelStart (void); +#endif + +/// Check if the RTOS kernel is already started. +/// \return 0 RTOS is not started, 1 RTOS is started. +#if (osCMSIS < 0x20000U) +int32_t osKernelRunning(void); +#endif + +#if (defined(osFeature_SysTick) && (osFeature_SysTick != 0)) // System Timer available + +/// Get the RTOS kernel system timer counter. +/// \return RTOS kernel system timer as 32-bit value +#if (osCMSIS < 0x20000U) +uint32_t osKernelSysTick (void); +#else +#define osKernelSysTick osKernelGetSysTimerCount +#endif + +/// The RTOS kernel system timer frequency in Hz. +/// \note Reflects the system timer setting and is typically defined in a configuration file. +#if (osCMSIS < 0x20000U) +#define osKernelSysTickFrequency 100000000 +#endif + +/// 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 +#if (osCMSIS < 0x20000U) +#define osKernelSysTickMicroSec(microsec) (((uint64_t)microsec * (osKernelSysTickFrequency)) / 1000000) +#else +#define osKernelSysTickMicroSec(microsec) (((uint64_t)microsec * osKernelGetSysTimerFreq()) / 1000000) +#endif + +#endif // System Timer available + + +// ==== Thread Management Functions ==== + +/// 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. +#if defined (osObjectsExternal) // object is external +#define osThreadDef(name, priority, instances, stacksz) \ +extern const osThreadDef_t os_thread_def_##name +#else // define the object +#define osThreadDef(name, priority, instances, stacksz) \ +static uint64_t os_thread_stack##name[(stacksz)?(((stacksz+7)/8)):1]; \ +static StaticTask_t os_thread_cb_##name; \ +const osThreadDef_t os_thread_def_##name = \ +{ (name), \ + { NULL, osThreadDetached, \ + (instances == 1) ? (&os_thread_cb_##name) : NULL,\ + (instances == 1) ? sizeof(StaticTask_t) : 0U, \ + ((stacksz) && (instances == 1)) ? (&os_thread_stack##name) : NULL, \ + 8*((stacksz+7)/8), \ + (priority), 0U, 0U } } +#endif + +/// Access a Thread definition. +/// \param name name of the thread definition object. +#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. +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. +#if (osCMSIS < 0x20000U) +osThreadId osThreadGetId (void); +#endif + +/// Change priority of a 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. +#if (osCMSIS < 0x20000U) +osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority); +#endif + +/// Get current priority of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. +/// \return current priority value of the specified thread. +#if (osCMSIS < 0x20000U) +osPriority osThreadGetPriority (osThreadId thread_id); +#endif + +/// Pass control to next thread that is in state \b READY. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osThreadYield (void); +#endif + +/// Terminate execution of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osThreadTerminate (osThreadId thread_id); +#endif + + +// ==== 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 previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters. +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 or call from ISR. +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 \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return event flag information or error code. +os_InRegs osEvent osSignalWait (int32_t signals, uint32_t millisec); + + +// ==== Generic Wait Functions ==== + +/// Wait for Timeout (Time Delay). +/// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue "time delay" value +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osDelay (uint32_t millisec); +#endif + +#if (defined (osFeature_Wait) && (osFeature_Wait != 0)) // Generic Wait available + +/// Wait for Signal, Message, Mail, or Timeout. +/// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out +/// \return event that contains signal, message, or mail information or error code. +os_InRegs 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. +#if defined (osObjectsExternal) // object is external +#define osTimerDef(name, function) \ +extern const osTimerDef_t os_timer_def_##name +#else // define the object +#define osTimerDef(name, function) \ +static StaticTimer_t os_timer_cb_##name; \ +const osTimerDef_t os_timer_def_##name = \ +{ (function), { NULL, 0U, (&os_timer_cb_##name), sizeof(StaticTimer_t) } } +#endif + +/// Access a Timer definition. +/// \param name name of the timer object. +#define osTimer(name) \ +&os_timer_def_##name + +/// Create and Initialize 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. +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 \ref CMSIS_RTOS_TimeOutValue "time delay" value of the timer. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osTimerStart (osTimerId timer_id, uint32_t millisec); +#endif + +/// Stop a timer. +/// \param[in] timer_id timer ID obtained by \ref osTimerCreate. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osTimerStop (osTimerId timer_id); +#endif + +/// Delete a timer. +/// \param[in] timer_id timer ID obtained by \ref osTimerCreate. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osTimerDelete (osTimerId timer_id); +#endif + + +// ==== Mutex Management Functions ==== + +/// Define a Mutex. +/// \param name name of the mutex object. +#if defined (osObjectsExternal) // object is external +#define osMutexDef(name) \ +extern const osMutexDef_t os_mutex_def_##name +#else // define the object +#define osMutexDef(name) \ +static StaticSemaphore_t os_mutex_cb_##name; \ +const osMutexDef_t os_mutex_def_##name = \ +{ NULL, osMutexRecursive | osMutexPrioInherit, (&os_mutex_cb_##name), sizeof(StaticSemaphore_t) } +#endif + +/// Access a Mutex definition. +/// \param name name of the mutex object. +#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. +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 \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osMutexWait (osMutexId mutex_id, uint32_t millisec); +#else +#define osMutexWait osMutexAcquire +#endif + +/// 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. +#if (osCMSIS < 0x20000U) +osStatus osMutexRelease (osMutexId mutex_id); +#endif + +/// Delete a Mutex object. +/// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osMutexDelete (osMutexId mutex_id); +#endif + + +// ==== Semaphore Management Functions ==== + +#if (defined (osFeature_Semaphore) && (osFeature_Semaphore != 0U)) // Semaphore available + +/// Define a Semaphore object. +/// \param name name of the semaphore object. +#if defined (osObjectsExternal) // object is external +#define osSemaphoreDef(name) \ +extern const osSemaphoreDef_t os_semaphore_def_##name +#else // define the object +#define osSemaphoreDef(name) \ +static StaticSemaphore_t os_semaphore_cb_##name; \ +const osSemaphoreDef_t os_semaphore_def_##name = \ +{ NULL, 0U, (&os_semaphore_cb_##name), sizeof(StaticSemaphore_t) } +#endif + +/// Access a Semaphore definition. +/// \param name name of the semaphore object. +#define osSemaphore(name) \ +&os_semaphore_def_##name + +/// Create and Initialize a Semaphore object. +/// \param[in] semaphore_def semaphore definition referenced with \ref osSemaphore. +/// \param[in] count maximum and initial number of available tokens. +/// \return semaphore ID for reference by other functions or NULL in case of error. +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 \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return number of available tokens, or -1 in case of incorrect parameters. +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. +#if (osCMSIS < 0x20000U) +osStatus osSemaphoreRelease (osSemaphoreId semaphore_id); +#endif + +/// Delete a Semaphore object. +/// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. +/// \return status code that indicates the execution status of the function. +#if (osCMSIS < 0x20000U) +osStatus osSemaphoreDelete (osSemaphoreId semaphore_id); +#endif + +#endif // Semaphore available + + +// ==== Memory Pool Management Functions ==== + +#if (defined(osFeature_Pool) && (osFeature_Pool != 0)) // Memory Pool 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). +#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 +#define osPool(name) \ +&os_pool_def_##name + +/// Create and Initialize a Memory Pool object. +/// \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. +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. +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. +void *osPoolCAlloc (osPoolId pool_id); + +/// Return an allocated memory block back to a Memory Pool. +/// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. +/// \param[in] block address of the allocated memory block to be returned to the memory pool. +/// \return status code that indicates the execution status of the function. +osStatus osPoolFree (osPoolId pool_id, void *block); + +#endif // Memory Pool available + + +// ==== Message Queue Management Functions ==== + +#if (defined(osFeature_MessageQ) && (osFeature_MessageQ != 0)) // Message Queue 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). +#if defined (osObjectsExternal) // object is external +#define osMessageQDef(name, queue_sz, type) \ +extern const osMessageQDef_t os_messageQ_def_##name +#else // define the object +#define osMessageQDef(name, queue_sz, type) \ +static StaticQueue_t os_mq_cb_##name; \ +static uint32_t os_mq_data_##name[(queue_sz) * sizeof(type)]; \ +const osMessageQDef_t os_messageQ_def_##name = \ +{ (queue_sz), \ + { NULL, 0U, (&os_mq_cb_##name), sizeof(StaticQueue_t), \ + (&os_mq_data_##name), sizeof(os_mq_data_##name) } } +#endif + +/// \brief Access a Message Queue Definition. +/// \param name name of the queue +#define osMessageQ(name) \ +&os_messageQ_def_##name + +/// Create and Initialize a Message Queue object. +/// \param[in] queue_def message 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. +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 \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return status code that indicates the execution status of the function. +osStatus osMessagePut (osMessageQId queue_id, uint32_t info, uint32_t millisec); + +/// Get a Message from a Queue or timeout if Queue is empty. +/// \param[in] queue_id message queue ID obtained with \ref osMessageCreate. +/// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return event information that includes status code. +os_InRegs osEvent osMessageGet (osMessageQId queue_id, uint32_t millisec); + +#endif // Message Queue available + + +// ==== Mail Queue Management Functions ==== + +#if (defined(osFeature_MailQ) && (osFeature_MailQ != 0)) // Mail Queue available + +/// \brief Create a Mail Queue Definition. +/// \param name name of the queue. +/// \param queue_sz maximum number of mails in the queue. +/// \param type data type of a single mail element. +#if defined (osObjectsExternal) // object is external +#define osMailQDef(name, queue_sz, type) \ +extern const osMailQDef_t os_mailQ_def_##name +#else // define the object +#define osMailQDef(name, queue_sz, type) \ +const osMailQDef_t os_mailQ_def_##name = \ +{ (queue_sz), sizeof(type), NULL } +#endif + +/// \brief Access a Mail Queue Definition. +/// \param name name of the queue +#define osMailQ(name) \ +&os_mailQ_def_##name + +/// Create and Initialize a Mail Queue object. +/// \param[in] queue_def mail queue definition referenced 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. +osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id); + +/// Allocate a memory block for mail from a mail memory pool. +/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. +/// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue 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. +void *osMailAlloc (osMailQId queue_id, uint32_t millisec); + +/// Allocate a memory block for mail from a mail memory pool and set memory block to zero. +/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. +/// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue 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. +void *osMailCAlloc (osMailQId queue_id, uint32_t millisec); + +/// Put a Mail into a Queue. +/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. +/// \param[in] mail pointer to memory with mail to put into a queue. +/// \return status code that indicates the execution status of the function. +osStatus osMailPut (osMailQId queue_id, const void *mail); + +/// Get a Mail from a Queue or timeout if Queue is empty. +/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. +/// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return event information that includes status code. +os_InRegs osEvent osMailGet (osMailQId queue_id, uint32_t millisec); + +/// Free a memory block by returning it to a mail memory pool. +/// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. +/// \param[in] mail pointer to memory block that was obtained with \ref osMailGet. +/// \return status code that indicates the execution status of the function. +osStatus osMailFree (osMailQId queue_id, void *mail); + +#endif // Mail Queue available + + +#ifdef __cplusplus +} +#endif + +#endif // CMSIS_OS_H_ diff --git a/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c new file mode 100644 index 0000000..69ac328 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c @@ -0,0 +1,2482 @@ +/* -------------------------------------------------------------------------- + * Copyright (c) 2013-2020 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. + * + * Name: cmsis_os2.c + * Purpose: CMSIS RTOS2 wrapper for FreeRTOS + * + *---------------------------------------------------------------------------*/ + +#include + +#include "cmsis_os2.h" // ::CMSIS:RTOS2 +#include "cmsis_compiler.h" // Compiler agnostic definitions + +#include "FreeRTOS.h" // ARM.FreeRTOS::RTOS:Core +#include "task.h" // ARM.FreeRTOS::RTOS:Core +#include "event_groups.h" // ARM.FreeRTOS::RTOS:Event Groups +#include "semphr.h" // ARM.FreeRTOS::RTOS:Core + +#include "freertos_mpool.h" // osMemoryPool definitions +#include "freertos_os2.h" // Configuration check and setup + +/*---------------------------------------------------------------------------*/ +#ifndef __ARM_ARCH_6M__ + #define __ARM_ARCH_6M__ 0 +#endif +#ifndef __ARM_ARCH_7M__ + #define __ARM_ARCH_7M__ 0 +#endif +#ifndef __ARM_ARCH_7EM__ + #define __ARM_ARCH_7EM__ 0 +#endif +#ifndef __ARM_ARCH_8M_MAIN__ + #define __ARM_ARCH_8M_MAIN__ 0 +#endif +#ifndef __ARM_ARCH_7A__ + #define __ARM_ARCH_7A__ 0 +#endif + +#if ((__ARM_ARCH_7M__ == 1U) || \ + (__ARM_ARCH_7EM__ == 1U) || \ + (__ARM_ARCH_8M_MAIN__ == 1U)) +#define IS_IRQ_MASKED() ((__get_PRIMASK() != 0U) || (__get_BASEPRI() != 0U)) +#elif (__ARM_ARCH_6M__ == 1U) +#define IS_IRQ_MASKED() (__get_PRIMASK() != 0U) +#elif (__ARM_ARCH_7A__ == 1U) +/* CPSR mask bits */ +#define CPSR_MASKBIT_I 0x80U + +#define IS_IRQ_MASKED() ((__get_CPSR() & CPSR_MASKBIT_I) != 0U) +#else +#define IS_IRQ_MASKED() (__get_PRIMASK() != 0U) +#endif + +#if (__ARM_ARCH_7A__ == 1U) +/* CPSR mode bitmasks */ +#define CPSR_MODE_USER 0x10U +#define CPSR_MODE_SYSTEM 0x1FU + +#define IS_IRQ_MODE() ((__get_mode() != CPSR_MODE_USER) && (__get_mode() != CPSR_MODE_SYSTEM)) +#else +#define IS_IRQ_MODE() (__get_IPSR() != 0U) +#endif + +#define IS_IRQ() IS_IRQ_MODE() + +#define SVCall_IRQ_NBR (IRQn_Type) -5 /* SVCall_IRQ_NBR added as SV_Call handler name is not the same for CM0 and for all other CMx */ + +/* Limits */ +#define MAX_BITS_TASK_NOTIFY 31U +#define MAX_BITS_EVENT_GROUPS 24U + +#define THREAD_FLAGS_INVALID_BITS (~((1UL << MAX_BITS_TASK_NOTIFY) - 1U)) +#define EVENT_FLAGS_INVALID_BITS (~((1UL << MAX_BITS_EVENT_GROUPS) - 1U)) + +/* Kernel version and identification string definition (major.minor.rev: mmnnnrrrr dec) */ +#define KERNEL_VERSION (((uint32_t)tskKERNEL_VERSION_MAJOR * 10000000UL) | \ + ((uint32_t)tskKERNEL_VERSION_MINOR * 10000UL) | \ + ((uint32_t)tskKERNEL_VERSION_BUILD * 1UL)) + +#define KERNEL_ID ("FreeRTOS " tskKERNEL_VERSION_NUMBER) + +/* Timer callback information structure definition */ +typedef struct { + osTimerFunc_t func; + void *arg; +} TimerCallback_t; + +/* Kernel initialization state */ +static osKernelState_t KernelState = osKernelInactive; + +/* + Heap region definition used by heap_5 variant + + Define configAPPLICATION_ALLOCATED_HEAP as nonzero value in FreeRTOSConfig.h if + heap regions are already defined and vPortDefineHeapRegions is called in application. + + Otherwise vPortDefineHeapRegions will be called by osKernelInitialize using + definition configHEAP_5_REGIONS as parameter. Overriding configHEAP_5_REGIONS + is possible by defining it globally or in FreeRTOSConfig.h. +*/ +#if defined(USE_FreeRTOS_HEAP_5) +#if (configAPPLICATION_ALLOCATED_HEAP == 0) + /* + FreeRTOS heap is not defined by the application. + Single region of size configTOTAL_HEAP_SIZE (defined in FreeRTOSConfig.h) + is provided by default. Define configHEAP_5_REGIONS to provide custom + HeapRegion_t array. + */ + #define HEAP_5_REGION_SETUP 1 + + #ifndef configHEAP_5_REGIONS + #define configHEAP_5_REGIONS xHeapRegions + + static uint8_t ucHeap[configTOTAL_HEAP_SIZE]; + + static HeapRegion_t xHeapRegions[] = { + { ucHeap, configTOTAL_HEAP_SIZE }, + { NULL, 0 } + }; + #else + /* Global definition is provided to override default heap array */ + extern HeapRegion_t configHEAP_5_REGIONS[]; + #endif +#else + /* + The application already defined the array used for the FreeRTOS heap and + called vPortDefineHeapRegions to initialize heap. + */ + #define HEAP_5_REGION_SETUP 0 +#endif /* configAPPLICATION_ALLOCATED_HEAP */ +#endif /* USE_FreeRTOS_HEAP_5 */ + +#if defined(SysTick) +#undef SysTick_Handler + +/* CMSIS SysTick interrupt handler prototype */ +extern void SysTick_Handler (void); +/* FreeRTOS tick timer interrupt handler prototype */ +extern void xPortSysTickHandler (void); + +/* + SysTick handler implementation that also clears overflow flag. +*/ +#if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0) +void SysTick_Handler (void) { + /* Clear overflow flag */ + SysTick->CTRL; + + if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) { + /* Call tick handler */ + xPortSysTickHandler(); + } +} +#endif +#endif /* SysTick */ + +/* + Setup SVC to reset value. +*/ +__STATIC_INLINE void SVC_Setup (void) { +#if (__ARM_ARCH_7A__ == 0U) + /* Service Call interrupt might be configured before kernel start */ + /* and when its priority is lower or equal to BASEPRI, svc intruction */ + /* causes a Hard Fault. */ + NVIC_SetPriority (SVCall_IRQ_NBR, 0U); +#endif +} + +/* + Function macro used to retrieve semaphore count from ISR +*/ +#ifndef uxSemaphoreGetCountFromISR +#define uxSemaphoreGetCountFromISR( xSemaphore ) uxQueueMessagesWaitingFromISR( ( QueueHandle_t ) ( xSemaphore ) ) +#endif + +/* Get OS Tick count value */ +static uint32_t OS_Tick_GetCount (void); +/* Get OS Tick overflow status */ +static uint32_t OS_Tick_GetOverflow (void); +/* Get OS Tick interval */ +static uint32_t OS_Tick_GetInterval (void); +/*---------------------------------------------------------------------------*/ + +osStatus_t osKernelInitialize (void) { + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else { + if (KernelState == osKernelInactive) { + #if defined(USE_TRACE_EVENT_RECORDER) + EvrFreeRTOSSetup(0U); + #endif + #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1) + vPortDefineHeapRegions (configHEAP_5_REGIONS); + #endif + KernelState = osKernelReady; + stat = osOK; + } else { + stat = osError; + } + } + + return (stat); +} + +osStatus_t osKernelGetInfo (osVersion_t *version, char *id_buf, uint32_t id_size) { + + if (version != NULL) { + /* Version encoding is major.minor.rev: mmnnnrrrr dec */ + version->api = KERNEL_VERSION; + version->kernel = KERNEL_VERSION; + } + + if ((id_buf != NULL) && (id_size != 0U)) { + if (id_size > sizeof(KERNEL_ID)) { + id_size = sizeof(KERNEL_ID); + } + memcpy(id_buf, KERNEL_ID, id_size); + } + + return (osOK); +} + +osKernelState_t osKernelGetState (void) { + osKernelState_t state; + + switch (xTaskGetSchedulerState()) { + case taskSCHEDULER_RUNNING: + state = osKernelRunning; + break; + + case taskSCHEDULER_SUSPENDED: + state = osKernelLocked; + break; + + case taskSCHEDULER_NOT_STARTED: + default: + if (KernelState == osKernelReady) { + state = osKernelReady; + } else { + state = osKernelInactive; + } + break; + } + + return (state); +} + +osStatus_t osKernelStart (void) { + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else { + if (KernelState == osKernelReady) { + /* Ensure SVC priority is at the reset value */ + SVC_Setup(); + /* Change state to enable IRQ masking check */ + KernelState = osKernelRunning; + /* Start the kernel scheduler */ + vTaskStartScheduler(); + stat = osOK; + } else { + stat = osError; + } + } + + return (stat); +} + +int32_t osKernelLock (void) { + int32_t lock; + + if (IS_IRQ()) { + lock = (int32_t)osErrorISR; + } + else { + switch (xTaskGetSchedulerState()) { + case taskSCHEDULER_SUSPENDED: + lock = 1; + break; + + case taskSCHEDULER_RUNNING: + vTaskSuspendAll(); + lock = 0; + break; + + case taskSCHEDULER_NOT_STARTED: + default: + lock = (int32_t)osError; + break; + } + } + + return (lock); +} + +int32_t osKernelUnlock (void) { + int32_t lock; + + if (IS_IRQ()) { + lock = (int32_t)osErrorISR; + } + else { + switch (xTaskGetSchedulerState()) { + case taskSCHEDULER_SUSPENDED: + lock = 1; + + if (xTaskResumeAll() != pdTRUE) { + if (xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED) { + lock = (int32_t)osError; + } + } + break; + + case taskSCHEDULER_RUNNING: + lock = 0; + break; + + case taskSCHEDULER_NOT_STARTED: + default: + lock = (int32_t)osError; + break; + } + } + + return (lock); +} + +int32_t osKernelRestoreLock (int32_t lock) { + + if (IS_IRQ()) { + lock = (int32_t)osErrorISR; + } + else { + switch (xTaskGetSchedulerState()) { + case taskSCHEDULER_SUSPENDED: + case taskSCHEDULER_RUNNING: + if (lock == 1) { + vTaskSuspendAll(); + } + else { + if (lock != 0) { + lock = (int32_t)osError; + } + else { + if (xTaskResumeAll() != pdTRUE) { + if (xTaskGetSchedulerState() != taskSCHEDULER_RUNNING) { + lock = (int32_t)osError; + } + } + } + } + break; + + case taskSCHEDULER_NOT_STARTED: + default: + lock = (int32_t)osError; + break; + } + } + + return (lock); +} + +uint32_t osKernelGetTickCount (void) { + TickType_t ticks; + + if (IS_IRQ()) { + ticks = xTaskGetTickCountFromISR(); + } else { + ticks = xTaskGetTickCount(); + } + + return (ticks); +} + +uint32_t osKernelGetTickFreq (void) { + return (configTICK_RATE_HZ); +} + +/* Get OS Tick count value */ +static uint32_t OS_Tick_GetCount (void) { + uint32_t load = SysTick->LOAD; + return (load - SysTick->VAL); +} + +/* Get OS Tick overflow status */ +static uint32_t OS_Tick_GetOverflow (void) { + return ((SysTick->CTRL >> 16) & 1U); +} + +/* Get OS Tick interval */ +static uint32_t OS_Tick_GetInterval (void) { + return (SysTick->LOAD + 1U); +} + +uint32_t osKernelGetSysTimerCount (void) { + uint32_t irqmask = IS_IRQ_MASKED(); + TickType_t ticks; + uint32_t val; + + __disable_irq(); + + ticks = xTaskGetTickCount(); + val = OS_Tick_GetCount(); + + if (OS_Tick_GetOverflow() != 0U) { + val = OS_Tick_GetCount(); + ticks++; + } + val += ticks * OS_Tick_GetInterval(); + + if (irqmask == 0U) { + __enable_irq(); + } + + return (val); +} + +uint32_t osKernelGetSysTimerFreq (void) { + return (configCPU_CLOCK_HZ); +} + +/*---------------------------------------------------------------------------*/ + +osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) { + const char *name; + uint32_t stack; + TaskHandle_t hTask; + UBaseType_t prio; + int32_t mem; + + hTask = NULL; + + if (!IS_IRQ() && (func != NULL)) { + stack = configMINIMAL_STACK_SIZE; + prio = (UBaseType_t)osPriorityNormal; + + name = NULL; + mem = -1; + + if (attr != NULL) { + if (attr->name != NULL) { + name = attr->name; + } + if (attr->priority != osPriorityNone) { + prio = (UBaseType_t)attr->priority; + } + + if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) { + return (NULL); + } + + if (attr->stack_size > 0U) { + /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */ + /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */ + stack = attr->stack_size / sizeof(StackType_t); + } + + if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) && + (attr->stack_mem != NULL) && (attr->stack_size > 0U)) { + mem = 1; + } + else { + if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) { + mem = 0; + } + } + } + else { + mem = 0; + } + + if (mem == 1) { + #if (configSUPPORT_STATIC_ALLOCATION == 1) + hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem, + (StaticTask_t *)attr->cb_mem); + #endif + } + else { + if (mem == 0) { + #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) + if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) { + hTask = NULL; + } + #endif + } + } + } + + return ((osThreadId_t)hTask); +} + +const char *osThreadGetName (osThreadId_t thread_id) { + TaskHandle_t hTask = (TaskHandle_t)thread_id; + const char *name; + + if (IS_IRQ() || (hTask == NULL)) { + name = NULL; + } else { + name = pcTaskGetName (hTask); + } + + return (name); +} + +osThreadId_t osThreadGetId (void) { + osThreadId_t id; + + id = (osThreadId_t)xTaskGetCurrentTaskHandle(); + + return (id); +} + +osThreadState_t osThreadGetState (osThreadId_t thread_id) { + TaskHandle_t hTask = (TaskHandle_t)thread_id; + osThreadState_t state; + + if (IS_IRQ() || (hTask == NULL)) { + state = osThreadError; + } + else { + switch (eTaskGetState (hTask)) { + case eRunning: state = osThreadRunning; break; + case eReady: state = osThreadReady; break; + case eBlocked: + case eSuspended: state = osThreadBlocked; break; + case eDeleted: state = osThreadTerminated; break; + case eInvalid: + default: state = osThreadError; break; + } + } + + return (state); +} + +uint32_t osThreadGetStackSpace (osThreadId_t thread_id) { + TaskHandle_t hTask = (TaskHandle_t)thread_id; + uint32_t sz; + + if (IS_IRQ() || (hTask == NULL)) { + sz = 0U; + } else { + sz = (uint32_t)(uxTaskGetStackHighWaterMark(hTask) * sizeof(StackType_t)); + } + + return (sz); +} + +osStatus_t osThreadSetPriority (osThreadId_t thread_id, osPriority_t priority) { + TaskHandle_t hTask = (TaskHandle_t)thread_id; + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if ((hTask == NULL) || (priority < osPriorityIdle) || (priority > osPriorityISR)) { + stat = osErrorParameter; + } + else { + stat = osOK; + vTaskPrioritySet (hTask, (UBaseType_t)priority); + } + + return (stat); +} + +osPriority_t osThreadGetPriority (osThreadId_t thread_id) { + TaskHandle_t hTask = (TaskHandle_t)thread_id; + osPriority_t prio; + + if (IS_IRQ() || (hTask == NULL)) { + prio = osPriorityError; + } else { + prio = (osPriority_t)((int32_t)uxTaskPriorityGet (hTask)); + } + + return (prio); +} + +osStatus_t osThreadYield (void) { + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } else { + stat = osOK; + taskYIELD(); + } + + return (stat); +} + +#if (configUSE_OS2_THREAD_SUSPEND_RESUME == 1) +osStatus_t osThreadSuspend (osThreadId_t thread_id) { + TaskHandle_t hTask = (TaskHandle_t)thread_id; + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hTask == NULL) { + stat = osErrorParameter; + } + else { + stat = osOK; + vTaskSuspend (hTask); + } + + return (stat); +} + +osStatus_t osThreadResume (osThreadId_t thread_id) { + TaskHandle_t hTask = (TaskHandle_t)thread_id; + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hTask == NULL) { + stat = osErrorParameter; + } + else { + stat = osOK; + vTaskResume (hTask); + } + + return (stat); +} +#endif /* (configUSE_OS2_THREAD_SUSPEND_RESUME == 1) */ + +__NO_RETURN void osThreadExit (void) { +#ifndef USE_FreeRTOS_HEAP_1 + vTaskDelete (NULL); +#endif + for (;;); +} + +osStatus_t osThreadTerminate (osThreadId_t thread_id) { + TaskHandle_t hTask = (TaskHandle_t)thread_id; + osStatus_t stat; +#ifndef USE_FreeRTOS_HEAP_1 + eTaskState tstate; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hTask == NULL) { + stat = osErrorParameter; + } + else { + tstate = eTaskGetState (hTask); + + if (tstate != eDeleted) { + stat = osOK; + vTaskDelete (hTask); + } else { + stat = osErrorResource; + } + } +#else + stat = osError; +#endif + + return (stat); +} + +uint32_t osThreadGetCount (void) { + uint32_t count; + + if (IS_IRQ()) { + count = 0U; + } else { + count = uxTaskGetNumberOfTasks(); + } + + return (count); +} + +#if (configUSE_OS2_THREAD_ENUMERATE == 1) +uint32_t osThreadEnumerate (osThreadId_t *thread_array, uint32_t array_items) { + uint32_t i, count; + TaskStatus_t *task; + + if (IS_IRQ() || (thread_array == NULL) || (array_items == 0U)) { + count = 0U; + } else { + vTaskSuspendAll(); + + count = uxTaskGetNumberOfTasks(); + task = pvPortMalloc (count * sizeof(TaskStatus_t)); + + if (task != NULL) { + count = uxTaskGetSystemState (task, count, NULL); + + for (i = 0U; (i < count) && (i < array_items); i++) { + thread_array[i] = (osThreadId_t)task[i].xHandle; + } + count = i; + } + (void)xTaskResumeAll(); + + vPortFree (task); + } + + return (count); +} +#endif /* (configUSE_OS2_THREAD_ENUMERATE == 1) */ + +#if (configUSE_OS2_THREAD_FLAGS == 1) +uint32_t osThreadFlagsSet (osThreadId_t thread_id, uint32_t flags) { + TaskHandle_t hTask = (TaskHandle_t)thread_id; + uint32_t rflags; + BaseType_t yield; + + if ((hTask == NULL) || ((flags & THREAD_FLAGS_INVALID_BITS) != 0U)) { + rflags = (uint32_t)osErrorParameter; + } + else { + rflags = (uint32_t)osError; + + if (IS_IRQ()) { + yield = pdFALSE; + + (void)xTaskNotifyFromISR (hTask, flags, eSetBits, &yield); + (void)xTaskNotifyAndQueryFromISR (hTask, 0, eNoAction, &rflags, NULL); + + portYIELD_FROM_ISR (yield); + } + else { + (void)xTaskNotify (hTask, flags, eSetBits); + (void)xTaskNotifyAndQuery (hTask, 0, eNoAction, &rflags); + } + } + /* Return flags after setting */ + return (rflags); +} + +uint32_t osThreadFlagsClear (uint32_t flags) { + TaskHandle_t hTask; + uint32_t rflags, cflags; + + if (IS_IRQ()) { + rflags = (uint32_t)osErrorISR; + } + else if ((flags & THREAD_FLAGS_INVALID_BITS) != 0U) { + rflags = (uint32_t)osErrorParameter; + } + else { + hTask = xTaskGetCurrentTaskHandle(); + + if (xTaskNotifyAndQuery (hTask, 0, eNoAction, &cflags) == pdPASS) { + rflags = cflags; + cflags &= ~flags; + + if (xTaskNotify (hTask, cflags, eSetValueWithOverwrite) != pdPASS) { + rflags = (uint32_t)osError; + } + } + else { + rflags = (uint32_t)osError; + } + } + + /* Return flags before clearing */ + return (rflags); +} + +uint32_t osThreadFlagsGet (void) { + TaskHandle_t hTask; + uint32_t rflags; + + if (IS_IRQ()) { + rflags = (uint32_t)osErrorISR; + } + else { + hTask = xTaskGetCurrentTaskHandle(); + + if (xTaskNotifyAndQuery (hTask, 0, eNoAction, &rflags) != pdPASS) { + rflags = (uint32_t)osError; + } + } + + return (rflags); +} + +uint32_t osThreadFlagsWait (uint32_t flags, uint32_t options, uint32_t timeout) { + uint32_t rflags, nval; + uint32_t clear; + TickType_t t0, td, tout; + BaseType_t rval; + + if (IS_IRQ()) { + rflags = (uint32_t)osErrorISR; + } + else if ((flags & THREAD_FLAGS_INVALID_BITS) != 0U) { + rflags = (uint32_t)osErrorParameter; + } + else { + if ((options & osFlagsNoClear) == osFlagsNoClear) { + clear = 0U; + } else { + clear = flags; + } + + rflags = 0U; + tout = timeout; + + t0 = xTaskGetTickCount(); + do { + rval = xTaskNotifyWait (0, clear, &nval, tout); + + if (rval == pdPASS) { + rflags &= flags; + rflags |= nval; + + if ((options & osFlagsWaitAll) == osFlagsWaitAll) { + if ((flags & rflags) == flags) { + break; + } else { + if (timeout == 0U) { + rflags = (uint32_t)osErrorResource; + break; + } + } + } + else { + if ((flags & rflags) != 0) { + break; + } else { + if (timeout == 0U) { + rflags = (uint32_t)osErrorResource; + break; + } + } + } + + /* Update timeout */ + td = xTaskGetTickCount() - t0; + + if (td > tout) { + tout = 0; + } else { + tout -= td; + } + } + else { + if (timeout == 0) { + rflags = (uint32_t)osErrorResource; + } else { + rflags = (uint32_t)osErrorTimeout; + } + } + } + while (rval != pdFAIL); + } + + /* Return flags before clearing */ + return (rflags); +} +#endif /* (configUSE_OS2_THREAD_FLAGS == 1) */ + +osStatus_t osDelay (uint32_t ticks) { + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else { + stat = osOK; + + if (ticks != 0U) { + vTaskDelay(ticks); + } + } + + return (stat); +} + +osStatus_t osDelayUntil (uint32_t ticks) { + TickType_t tcnt, delay; + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else { + stat = osOK; + tcnt = xTaskGetTickCount(); + + /* Determine remaining number of ticks to delay */ + delay = (TickType_t)ticks - tcnt; + + /* Check if target tick has not expired */ + if((delay != 0U) && (0 == (delay >> (8 * sizeof(TickType_t) - 1)))) { + vTaskDelayUntil (&tcnt, delay); + } + else + { + /* No delay or already expired */ + stat = osErrorParameter; + } + } + + return (stat); +} + +/*---------------------------------------------------------------------------*/ +#if (configUSE_OS2_TIMER == 1) + +static void TimerCallback (TimerHandle_t hTimer) { + TimerCallback_t *callb; + + callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer); + + if (callb != NULL) { + callb->func (callb->arg); + } +} + +osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) { + const char *name; + TimerHandle_t hTimer; + TimerCallback_t *callb; + UBaseType_t reload; + int32_t mem; + + hTimer = NULL; + + if (!IS_IRQ() && (func != NULL)) { + /* Allocate memory to store callback function and argument */ + callb = pvPortMalloc (sizeof(TimerCallback_t)); + + if (callb != NULL) { + callb->func = func; + callb->arg = argument; + + if (type == osTimerOnce) { + reload = pdFALSE; + } else { + reload = pdTRUE; + } + + mem = -1; + name = NULL; + + if (attr != NULL) { + if (attr->name != NULL) { + name = attr->name; + } + + if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) { + mem = 1; + } + else { + if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { + mem = 0; + } + } + } + else { + mem = 0; + } + + if (mem == 1) { + #if (configSUPPORT_STATIC_ALLOCATION == 1) + hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem); + #endif + } + else { + if (mem == 0) { + #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) + hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback); + #endif + } + } + + if ((hTimer == NULL) && (callb != NULL)) { + vPortFree (callb); + } + } + } + + return ((osTimerId_t)hTimer); +} + +const char *osTimerGetName (osTimerId_t timer_id) { + TimerHandle_t hTimer = (TimerHandle_t)timer_id; + const char *p; + + if (IS_IRQ() || (hTimer == NULL)) { + p = NULL; + } else { + p = pcTimerGetName (hTimer); + } + + return (p); +} + +osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) { + TimerHandle_t hTimer = (TimerHandle_t)timer_id; + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hTimer == NULL) { + stat = osErrorParameter; + } + else { + if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) { + stat = osOK; + } else { + stat = osErrorResource; + } + } + + return (stat); +} + +osStatus_t osTimerStop (osTimerId_t timer_id) { + TimerHandle_t hTimer = (TimerHandle_t)timer_id; + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hTimer == NULL) { + stat = osErrorParameter; + } + else { + if (xTimerIsTimerActive (hTimer) == pdFALSE) { + stat = osErrorResource; + } + else { + if (xTimerStop (hTimer, 0) == pdPASS) { + stat = osOK; + } else { + stat = osError; + } + } + } + + return (stat); +} + +uint32_t osTimerIsRunning (osTimerId_t timer_id) { + TimerHandle_t hTimer = (TimerHandle_t)timer_id; + uint32_t running; + + if (IS_IRQ() || (hTimer == NULL)) { + running = 0U; + } else { + running = (uint32_t)xTimerIsTimerActive (hTimer); + } + + return (running); +} + +osStatus_t osTimerDelete (osTimerId_t timer_id) { + TimerHandle_t hTimer = (TimerHandle_t)timer_id; + osStatus_t stat; +#ifndef USE_FreeRTOS_HEAP_1 + TimerCallback_t *callb; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hTimer == NULL) { + stat = osErrorParameter; + } + else { + callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer); + + if (xTimerDelete (hTimer, 0) == pdPASS) { + vPortFree (callb); + stat = osOK; + } else { + stat = osErrorResource; + } + } +#else + stat = osError; +#endif + + return (stat); +} +#endif /* (configUSE_OS2_TIMER == 1) */ + +/*---------------------------------------------------------------------------*/ + +osEventFlagsId_t osEventFlagsNew (const osEventFlagsAttr_t *attr) { + EventGroupHandle_t hEventGroup; + int32_t mem; + + hEventGroup = NULL; + + if (!IS_IRQ()) { + mem = -1; + + if (attr != NULL) { + if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticEventGroup_t))) { + mem = 1; + } + else { + if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { + mem = 0; + } + } + } + else { + mem = 0; + } + + if (mem == 1) { + #if (configSUPPORT_STATIC_ALLOCATION == 1) + hEventGroup = xEventGroupCreateStatic (attr->cb_mem); + #endif + } + else { + if (mem == 0) { + #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) + hEventGroup = xEventGroupCreate(); + #endif + } + } + } + + return ((osEventFlagsId_t)hEventGroup); +} + +uint32_t osEventFlagsSet (osEventFlagsId_t ef_id, uint32_t flags) { + EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; + uint32_t rflags; + BaseType_t yield; + + if ((hEventGroup == NULL) || ((flags & EVENT_FLAGS_INVALID_BITS) != 0U)) { + rflags = (uint32_t)osErrorParameter; + } + else if (IS_IRQ()) { + #if (configUSE_OS2_EVENTFLAGS_FROM_ISR == 0) + (void)yield; + /* Enable timers and xTimerPendFunctionCall function to support osEventFlagsSet from ISR */ + rflags = (uint32_t)osErrorResource; + #else + yield = pdFALSE; + + if (xEventGroupSetBitsFromISR (hEventGroup, (EventBits_t)flags, &yield) == pdFAIL) { + rflags = (uint32_t)osErrorResource; + } else { + rflags = flags; + portYIELD_FROM_ISR (yield); + } + #endif + } + else { + rflags = xEventGroupSetBits (hEventGroup, (EventBits_t)flags); + } + + return (rflags); +} + +uint32_t osEventFlagsClear (osEventFlagsId_t ef_id, uint32_t flags) { + EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; + uint32_t rflags; + + if ((hEventGroup == NULL) || ((flags & EVENT_FLAGS_INVALID_BITS) != 0U)) { + rflags = (uint32_t)osErrorParameter; + } + else if (IS_IRQ()) { + #if (configUSE_OS2_EVENTFLAGS_FROM_ISR == 0) + /* Enable timers and xTimerPendFunctionCall function to support osEventFlagsSet from ISR */ + rflags = (uint32_t)osErrorResource; + #else + rflags = xEventGroupGetBitsFromISR (hEventGroup); + + if (xEventGroupClearBitsFromISR (hEventGroup, (EventBits_t)flags) == pdFAIL) { + rflags = (uint32_t)osErrorResource; + } + #endif + } + else { + rflags = xEventGroupClearBits (hEventGroup, (EventBits_t)flags); + } + + return (rflags); +} + +uint32_t osEventFlagsGet (osEventFlagsId_t ef_id) { + EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; + uint32_t rflags; + + if (ef_id == NULL) { + rflags = 0U; + } + else if (IS_IRQ()) { + rflags = xEventGroupGetBitsFromISR (hEventGroup); + } + else { + rflags = xEventGroupGetBits (hEventGroup); + } + + return (rflags); +} + +uint32_t osEventFlagsWait (osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout) { + EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; + BaseType_t wait_all; + BaseType_t exit_clr; + uint32_t rflags; + + if ((hEventGroup == NULL) || ((flags & EVENT_FLAGS_INVALID_BITS) != 0U)) { + rflags = (uint32_t)osErrorParameter; + } + else if (IS_IRQ()) { + rflags = (uint32_t)osErrorISR; + } + else { + if (options & osFlagsWaitAll) { + wait_all = pdTRUE; + } else { + wait_all = pdFAIL; + } + + if (options & osFlagsNoClear) { + exit_clr = pdFAIL; + } else { + exit_clr = pdTRUE; + } + + rflags = xEventGroupWaitBits (hEventGroup, (EventBits_t)flags, exit_clr, wait_all, (TickType_t)timeout); + + if (options & osFlagsWaitAll) { + if ((flags & rflags) != flags) { + if (timeout > 0U) { + rflags = (uint32_t)osErrorTimeout; + } else { + rflags = (uint32_t)osErrorResource; + } + } + } + else { + if ((flags & rflags) == 0U) { + if (timeout > 0U) { + rflags = (uint32_t)osErrorTimeout; + } else { + rflags = (uint32_t)osErrorResource; + } + } + } + } + + return (rflags); +} + +osStatus_t osEventFlagsDelete (osEventFlagsId_t ef_id) { + EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id; + osStatus_t stat; + +#ifndef USE_FreeRTOS_HEAP_1 + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hEventGroup == NULL) { + stat = osErrorParameter; + } + else { + stat = osOK; + vEventGroupDelete (hEventGroup); + } +#else + stat = osError; +#endif + + return (stat); +} + +/*---------------------------------------------------------------------------*/ +#if (configUSE_OS2_MUTEX == 1) + +osMutexId_t osMutexNew (const osMutexAttr_t *attr) { + SemaphoreHandle_t hMutex; + uint32_t type; + uint32_t rmtx; + int32_t mem; + #if (configQUEUE_REGISTRY_SIZE > 0) + const char *name; + #endif + + hMutex = NULL; + + if (!IS_IRQ()) { + if (attr != NULL) { + type = attr->attr_bits; + } else { + type = 0U; + } + + if ((type & osMutexRecursive) == osMutexRecursive) { + rmtx = 1U; + } else { + rmtx = 0U; + } + + if ((type & osMutexRobust) != osMutexRobust) { + mem = -1; + + if (attr != NULL) { + if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) { + mem = 1; + } + else { + if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { + mem = 0; + } + } + } + else { + mem = 0; + } + + if (mem == 1) { + #if (configSUPPORT_STATIC_ALLOCATION == 1) + if (rmtx != 0U) { + #if (configUSE_RECURSIVE_MUTEXES == 1) + hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem); + #endif + } + else { + hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem); + } + #endif + } + else { + if (mem == 0) { + #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) + if (rmtx != 0U) { + #if (configUSE_RECURSIVE_MUTEXES == 1) + hMutex = xSemaphoreCreateRecursiveMutex (); + #endif + } else { + hMutex = xSemaphoreCreateMutex (); + } + #endif + } + } + + #if (configQUEUE_REGISTRY_SIZE > 0) + if (hMutex != NULL) { + if (attr != NULL) { + name = attr->name; + } else { + name = NULL; + } + vQueueAddToRegistry (hMutex, name); + } + #endif + + if ((hMutex != NULL) && (rmtx != 0U)) { + hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U); + } + } + } + + return ((osMutexId_t)hMutex); +} + +osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) { + SemaphoreHandle_t hMutex; + osStatus_t stat; + uint32_t rmtx; + + hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U); + + rmtx = (uint32_t)mutex_id & 1U; + + stat = osOK; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hMutex == NULL) { + stat = osErrorParameter; + } + else { + if (rmtx != 0U) { + #if (configUSE_RECURSIVE_MUTEXES == 1) + if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) { + if (timeout != 0U) { + stat = osErrorTimeout; + } else { + stat = osErrorResource; + } + } + #endif + } + else { + if (xSemaphoreTake (hMutex, timeout) != pdPASS) { + if (timeout != 0U) { + stat = osErrorTimeout; + } else { + stat = osErrorResource; + } + } + } + } + + return (stat); +} + +osStatus_t osMutexRelease (osMutexId_t mutex_id) { + SemaphoreHandle_t hMutex; + osStatus_t stat; + uint32_t rmtx; + + hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U); + + rmtx = (uint32_t)mutex_id & 1U; + + stat = osOK; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hMutex == NULL) { + stat = osErrorParameter; + } + else { + if (rmtx != 0U) { + #if (configUSE_RECURSIVE_MUTEXES == 1) + if (xSemaphoreGiveRecursive (hMutex) != pdPASS) { + stat = osErrorResource; + } + #endif + } + else { + if (xSemaphoreGive (hMutex) != pdPASS) { + stat = osErrorResource; + } + } + } + + return (stat); +} + +osThreadId_t osMutexGetOwner (osMutexId_t mutex_id) { + SemaphoreHandle_t hMutex; + osThreadId_t owner; + + hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U); + + if (IS_IRQ() || (hMutex == NULL)) { + owner = NULL; + } else { + owner = (osThreadId_t)xSemaphoreGetMutexHolder (hMutex); + } + + return (owner); +} + +osStatus_t osMutexDelete (osMutexId_t mutex_id) { + osStatus_t stat; +#ifndef USE_FreeRTOS_HEAP_1 + SemaphoreHandle_t hMutex; + + hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U); + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hMutex == NULL) { + stat = osErrorParameter; + } + else { + #if (configQUEUE_REGISTRY_SIZE > 0) + vQueueUnregisterQueue (hMutex); + #endif + stat = osOK; + vSemaphoreDelete (hMutex); + } +#else + stat = osError; +#endif + + return (stat); +} +#endif /* (configUSE_OS2_MUTEX == 1) */ + +/*---------------------------------------------------------------------------*/ + +osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr) { + SemaphoreHandle_t hSemaphore; + int32_t mem; + #if (configQUEUE_REGISTRY_SIZE > 0) + const char *name; + #endif + + hSemaphore = NULL; + + if (!IS_IRQ() && (max_count > 0U) && (initial_count <= max_count)) { + mem = -1; + + if (attr != NULL) { + if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) { + mem = 1; + } + else { + if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { + mem = 0; + } + } + } + else { + mem = 0; + } + + if (mem != -1) { + if (max_count == 1U) { + if (mem == 1) { + #if (configSUPPORT_STATIC_ALLOCATION == 1) + hSemaphore = xSemaphoreCreateBinaryStatic ((StaticSemaphore_t *)attr->cb_mem); + #endif + } + else { + #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) + hSemaphore = xSemaphoreCreateBinary(); + #endif + } + + if ((hSemaphore != NULL) && (initial_count != 0U)) { + if (xSemaphoreGive (hSemaphore) != pdPASS) { + vSemaphoreDelete (hSemaphore); + hSemaphore = NULL; + } + } + } + else { + if (mem == 1) { + #if (configSUPPORT_STATIC_ALLOCATION == 1) + hSemaphore = xSemaphoreCreateCountingStatic (max_count, initial_count, (StaticSemaphore_t *)attr->cb_mem); + #endif + } + else { + #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) + hSemaphore = xSemaphoreCreateCounting (max_count, initial_count); + #endif + } + } + + #if (configQUEUE_REGISTRY_SIZE > 0) + if (hSemaphore != NULL) { + if (attr != NULL) { + name = attr->name; + } else { + name = NULL; + } + vQueueAddToRegistry (hSemaphore, name); + } + #endif + } + } + + return ((osSemaphoreId_t)hSemaphore); +} + +osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout) { + SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id; + osStatus_t stat; + BaseType_t yield; + + stat = osOK; + + if (hSemaphore == NULL) { + stat = osErrorParameter; + } + else if (IS_IRQ()) { + if (timeout != 0U) { + stat = osErrorParameter; + } + else { + yield = pdFALSE; + + if (xSemaphoreTakeFromISR (hSemaphore, &yield) != pdPASS) { + stat = osErrorResource; + } else { + portYIELD_FROM_ISR (yield); + } + } + } + else { + if (xSemaphoreTake (hSemaphore, (TickType_t)timeout) != pdPASS) { + if (timeout != 0U) { + stat = osErrorTimeout; + } else { + stat = osErrorResource; + } + } + } + + return (stat); +} + +osStatus_t osSemaphoreRelease (osSemaphoreId_t semaphore_id) { + SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id; + osStatus_t stat; + BaseType_t yield; + + stat = osOK; + + if (hSemaphore == NULL) { + stat = osErrorParameter; + } + else if (IS_IRQ()) { + yield = pdFALSE; + + if (xSemaphoreGiveFromISR (hSemaphore, &yield) != pdTRUE) { + stat = osErrorResource; + } else { + portYIELD_FROM_ISR (yield); + } + } + else { + if (xSemaphoreGive (hSemaphore) != pdPASS) { + stat = osErrorResource; + } + } + + return (stat); +} + +uint32_t osSemaphoreGetCount (osSemaphoreId_t semaphore_id) { + SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id; + uint32_t count; + + if (hSemaphore == NULL) { + count = 0U; + } + else if (IS_IRQ()) { + count = uxQueueMessagesWaitingFromISR (hSemaphore); + } else { + count = (uint32_t)uxSemaphoreGetCount (hSemaphore); + } + + return (count); +} + +osStatus_t osSemaphoreDelete (osSemaphoreId_t semaphore_id) { + SemaphoreHandle_t hSemaphore = (SemaphoreHandle_t)semaphore_id; + osStatus_t stat; + +#ifndef USE_FreeRTOS_HEAP_1 + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hSemaphore == NULL) { + stat = osErrorParameter; + } + else { + #if (configQUEUE_REGISTRY_SIZE > 0) + vQueueUnregisterQueue (hSemaphore); + #endif + + stat = osOK; + vSemaphoreDelete (hSemaphore); + } +#else + stat = osError; +#endif + + return (stat); +} + +/*---------------------------------------------------------------------------*/ + +osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) { + QueueHandle_t hQueue; + int32_t mem; + #if (configQUEUE_REGISTRY_SIZE > 0) + const char *name; + #endif + + hQueue = NULL; + + if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) { + mem = -1; + + if (attr != NULL) { + if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) && + (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) { + mem = 1; + } + else { + if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && + (attr->mq_mem == NULL) && (attr->mq_size == 0U)) { + mem = 0; + } + } + } + else { + mem = 0; + } + + if (mem == 1) { + #if (configSUPPORT_STATIC_ALLOCATION == 1) + hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem); + #endif + } + else { + if (mem == 0) { + #if (configSUPPORT_DYNAMIC_ALLOCATION == 1) + hQueue = xQueueCreate (msg_count, msg_size); + #endif + } + } + + #if (configQUEUE_REGISTRY_SIZE > 0) + if (hQueue != NULL) { + if (attr != NULL) { + name = attr->name; + } else { + name = NULL; + } + vQueueAddToRegistry (hQueue, name); + } + #endif + + } + + return ((osMessageQueueId_t)hQueue); +} + +osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) { + QueueHandle_t hQueue = (QueueHandle_t)mq_id; + osStatus_t stat; + BaseType_t yield; + + (void)msg_prio; /* Message priority is ignored */ + + stat = osOK; + + if (IS_IRQ()) { + if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) { + stat = osErrorParameter; + } + else { + yield = pdFALSE; + + if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) { + stat = osErrorResource; + } else { + portYIELD_FROM_ISR (yield); + } + } + } + else { + if ((hQueue == NULL) || (msg_ptr == NULL)) { + stat = osErrorParameter; + } + else { + if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) { + if (timeout != 0U) { + stat = osErrorTimeout; + } else { + stat = osErrorResource; + } + } + } + } + + return (stat); +} + +osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) { + QueueHandle_t hQueue = (QueueHandle_t)mq_id; + osStatus_t stat; + BaseType_t yield; + + (void)msg_prio; /* Message priority is ignored */ + + stat = osOK; + + if (IS_IRQ()) { + if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) { + stat = osErrorParameter; + } + else { + yield = pdFALSE; + + if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) { + stat = osErrorResource; + } else { + portYIELD_FROM_ISR (yield); + } + } + } + else { + if ((hQueue == NULL) || (msg_ptr == NULL)) { + stat = osErrorParameter; + } + else { + if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) { + if (timeout != 0U) { + stat = osErrorTimeout; + } else { + stat = osErrorResource; + } + } + } + } + + return (stat); +} + +uint32_t osMessageQueueGetCapacity (osMessageQueueId_t mq_id) { + StaticQueue_t *mq = (StaticQueue_t *)mq_id; + uint32_t capacity; + + if (mq == NULL) { + capacity = 0U; + } else { + /* capacity = pxQueue->uxLength */ + capacity = mq->uxDummy4[1]; + } + + return (capacity); +} + +uint32_t osMessageQueueGetMsgSize (osMessageQueueId_t mq_id) { + StaticQueue_t *mq = (StaticQueue_t *)mq_id; + uint32_t size; + + if (mq == NULL) { + size = 0U; + } else { + /* size = pxQueue->uxItemSize */ + size = mq->uxDummy4[2]; + } + + return (size); +} + +uint32_t osMessageQueueGetCount (osMessageQueueId_t mq_id) { + QueueHandle_t hQueue = (QueueHandle_t)mq_id; + UBaseType_t count; + + if (hQueue == NULL) { + count = 0U; + } + else if (IS_IRQ()) { + count = uxQueueMessagesWaitingFromISR (hQueue); + } + else { + count = uxQueueMessagesWaiting (hQueue); + } + + return ((uint32_t)count); +} + +uint32_t osMessageQueueGetSpace (osMessageQueueId_t mq_id) { + StaticQueue_t *mq = (StaticQueue_t *)mq_id; + uint32_t space; + uint32_t isrm; + + if (mq == NULL) { + space = 0U; + } + else if (IS_IRQ()) { + isrm = taskENTER_CRITICAL_FROM_ISR(); + + /* space = pxQueue->uxLength - pxQueue->uxMessagesWaiting; */ + space = mq->uxDummy4[1] - mq->uxDummy4[0]; + + taskEXIT_CRITICAL_FROM_ISR(isrm); + } + else { + space = (uint32_t)uxQueueSpacesAvailable ((QueueHandle_t)mq); + } + + return (space); +} + +osStatus_t osMessageQueueReset (osMessageQueueId_t mq_id) { + QueueHandle_t hQueue = (QueueHandle_t)mq_id; + osStatus_t stat; + + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hQueue == NULL) { + stat = osErrorParameter; + } + else { + stat = osOK; + (void)xQueueReset (hQueue); + } + + return (stat); +} + +osStatus_t osMessageQueueDelete (osMessageQueueId_t mq_id) { + QueueHandle_t hQueue = (QueueHandle_t)mq_id; + osStatus_t stat; + +#ifndef USE_FreeRTOS_HEAP_1 + if (IS_IRQ()) { + stat = osErrorISR; + } + else if (hQueue == NULL) { + stat = osErrorParameter; + } + else { + #if (configQUEUE_REGISTRY_SIZE > 0) + vQueueUnregisterQueue (hQueue); + #endif + + stat = osOK; + vQueueDelete (hQueue); + } +#else + stat = osError; +#endif + + return (stat); +} + +/*---------------------------------------------------------------------------*/ +#ifdef FREERTOS_MPOOL_H_ + +/* Static memory pool functions */ +static void FreeBlock (MemPool_t *mp, void *block); +static void *AllocBlock (MemPool_t *mp); +static void *CreateBlock (MemPool_t *mp); + +osMemoryPoolId_t osMemoryPoolNew (uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr) { + MemPool_t *mp; + const char *name; + int32_t mem_cb, mem_mp; + uint32_t sz; + + if (IS_IRQ()) { + mp = NULL; + } + else if ((block_count == 0U) || (block_size == 0U)) { + mp = NULL; + } + else { + mp = NULL; + sz = MEMPOOL_ARR_SIZE (block_count, block_size); + + name = NULL; + mem_cb = -1; + mem_mp = -1; + + if (attr != NULL) { + if (attr->name != NULL) { + name = attr->name; + } + + if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(MemPool_t))) { + /* Static control block is provided */ + mem_cb = 1; + } + else if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) { + /* Allocate control block memory on heap */ + mem_cb = 0; + } + + if ((attr->mp_mem == NULL) && (attr->mp_size == 0U)) { + /* Allocate memory array on heap */ + mem_mp = 0; + } + else { + if (attr->mp_mem != NULL) { + /* Check if array is 4-byte aligned */ + if (((uint32_t)attr->mp_mem & 3U) == 0U) { + /* Check if array big enough */ + if (attr->mp_size >= sz) { + /* Static memory pool array is provided */ + mem_mp = 1; + } + } + } + } + } + else { + /* Attributes not provided, allocate memory on heap */ + mem_cb = 0; + mem_mp = 0; + } + + if (mem_cb == 0) { + mp = pvPortMalloc (sizeof(MemPool_t)); + } else { + mp = attr->cb_mem; + } + + if (mp != NULL) { + /* Create a semaphore (max count == initial count == block_count) */ + #if (configSUPPORT_STATIC_ALLOCATION == 1) + mp->sem = xSemaphoreCreateCountingStatic (block_count, block_count, &mp->mem_sem); + #elif (configSUPPORT_DYNAMIC_ALLOCATION == 1) + mp->sem = xSemaphoreCreateCounting (block_count, block_count); + #else + mp->sem == NULL; + #endif + + if (mp->sem != NULL) { + /* Setup memory array */ + if (mem_mp == 0) { + mp->mem_arr = pvPortMalloc (sz); + } else { + mp->mem_arr = attr->mp_mem; + } + } + } + + if ((mp != NULL) && (mp->mem_arr != NULL)) { + /* Memory pool can be created */ + mp->head = NULL; + mp->mem_sz = sz; + mp->name = name; + mp->bl_sz = block_size; + mp->bl_cnt = block_count; + mp->n = 0U; + + /* Set heap allocated memory flags */ + mp->status = MPOOL_STATUS; + + if (mem_cb == 0) { + /* Control block on heap */ + mp->status |= 1U; + } + if (mem_mp == 0) { + /* Memory array on heap */ + mp->status |= 2U; + } + } + else { + /* Memory pool cannot be created, release allocated resources */ + if ((mem_cb == 0) && (mp != NULL)) { + /* Free control block memory */ + vPortFree (mp); + } + mp = NULL; + } + } + + return (mp); +} + +const char *osMemoryPoolGetName (osMemoryPoolId_t mp_id) { + MemPool_t *mp = (osMemoryPoolId_t)mp_id; + const char *p; + + if (IS_IRQ()) { + p = NULL; + } + else if (mp_id == NULL) { + p = NULL; + } + else { + p = mp->name; + } + + return (p); +} + +void *osMemoryPoolAlloc (osMemoryPoolId_t mp_id, uint32_t timeout) { + MemPool_t *mp; + void *block; + uint32_t isrm; + + if (mp_id == NULL) { + /* Invalid input parameters */ + block = NULL; + } + else { + block = NULL; + + mp = (MemPool_t *)mp_id; + + if ((mp->status & MPOOL_STATUS) == MPOOL_STATUS) { + if (IS_IRQ()) { + if (timeout == 0U) { + if (xSemaphoreTakeFromISR (mp->sem, NULL) == pdTRUE) { + if ((mp->status & MPOOL_STATUS) == MPOOL_STATUS) { + isrm = taskENTER_CRITICAL_FROM_ISR(); + + /* Get a block from the free-list */ + block = AllocBlock(mp); + + if (block == NULL) { + /* List of free blocks is empty, 'create' new block */ + block = CreateBlock(mp); + } + + taskEXIT_CRITICAL_FROM_ISR(isrm); + } + } + } + } + else { + if (xSemaphoreTake (mp->sem, (TickType_t)timeout) == pdTRUE) { + if ((mp->status & MPOOL_STATUS) == MPOOL_STATUS) { + taskENTER_CRITICAL(); + + /* Get a block from the free-list */ + block = AllocBlock(mp); + + if (block == NULL) { + /* List of free blocks is empty, 'create' new block */ + block = CreateBlock(mp); + } + + taskEXIT_CRITICAL(); + } + } + } + } + } + + return (block); +} + +osStatus_t osMemoryPoolFree (osMemoryPoolId_t mp_id, void *block) { + MemPool_t *mp; + osStatus_t stat; + uint32_t isrm; + BaseType_t yield; + + if ((mp_id == NULL) || (block == NULL)) { + /* Invalid input parameters */ + stat = osErrorParameter; + } + else { + mp = (MemPool_t *)mp_id; + + if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { + /* Invalid object status */ + stat = osErrorResource; + } + else if ((block < (void *)&mp->mem_arr[0]) || (block > (void*)&mp->mem_arr[mp->mem_sz-1])) { + /* Block pointer outside of memory array area */ + stat = osErrorParameter; + } + else { + stat = osOK; + + if (IS_IRQ()) { + if (uxSemaphoreGetCountFromISR (mp->sem) == mp->bl_cnt) { + stat = osErrorResource; + } + else { + isrm = taskENTER_CRITICAL_FROM_ISR(); + + /* Add block to the list of free blocks */ + FreeBlock(mp, block); + + taskEXIT_CRITICAL_FROM_ISR(isrm); + + yield = pdFALSE; + xSemaphoreGiveFromISR (mp->sem, &yield); + portYIELD_FROM_ISR (yield); + } + } + else { + if (uxSemaphoreGetCount (mp->sem) == mp->bl_cnt) { + stat = osErrorResource; + } + else { + taskENTER_CRITICAL(); + + /* Add block to the list of free blocks */ + FreeBlock(mp, block); + + taskEXIT_CRITICAL(); + + xSemaphoreGive (mp->sem); + } + } + } + } + + return (stat); +} + +uint32_t osMemoryPoolGetCapacity (osMemoryPoolId_t mp_id) { + MemPool_t *mp; + uint32_t n; + + if (mp_id == NULL) { + /* Invalid input parameters */ + n = 0U; + } + else { + mp = (MemPool_t *)mp_id; + + if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { + /* Invalid object status */ + n = 0U; + } + else { + n = mp->bl_cnt; + } + } + + /* Return maximum number of memory blocks */ + return (n); +} + +uint32_t osMemoryPoolGetBlockSize (osMemoryPoolId_t mp_id) { + MemPool_t *mp; + uint32_t sz; + + if (mp_id == NULL) { + /* Invalid input parameters */ + sz = 0U; + } + else { + mp = (MemPool_t *)mp_id; + + if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { + /* Invalid object status */ + sz = 0U; + } + else { + sz = mp->bl_sz; + } + } + + /* Return memory block size in bytes */ + return (sz); +} + +uint32_t osMemoryPoolGetCount (osMemoryPoolId_t mp_id) { + MemPool_t *mp; + uint32_t n; + + if (mp_id == NULL) { + /* Invalid input parameters */ + n = 0U; + } + else { + mp = (MemPool_t *)mp_id; + + if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { + /* Invalid object status */ + n = 0U; + } + else { + if (IS_IRQ()) { + n = uxSemaphoreGetCountFromISR (mp->sem); + } else { + n = uxSemaphoreGetCount (mp->sem); + } + + n = mp->bl_cnt - n; + } + } + + /* Return number of memory blocks used */ + return (n); +} + +uint32_t osMemoryPoolGetSpace (osMemoryPoolId_t mp_id) { + MemPool_t *mp; + uint32_t n; + + if (mp_id == NULL) { + /* Invalid input parameters */ + n = 0U; + } + else { + mp = (MemPool_t *)mp_id; + + if ((mp->status & MPOOL_STATUS) != MPOOL_STATUS) { + /* Invalid object status */ + n = 0U; + } + else { + if (IS_IRQ()) { + n = uxSemaphoreGetCountFromISR (mp->sem); + } else { + n = uxSemaphoreGetCount (mp->sem); + } + } + } + + /* Return number of memory blocks available */ + return (n); +} + +osStatus_t osMemoryPoolDelete (osMemoryPoolId_t mp_id) { + MemPool_t *mp; + osStatus_t stat; + + if (mp_id == NULL) { + /* Invalid input parameters */ + stat = osErrorParameter; + } + else if (IS_IRQ()) { + stat = osErrorISR; + } + else { + mp = (MemPool_t *)mp_id; + + taskENTER_CRITICAL(); + + /* Invalidate control block status */ + mp->status = mp->status & 3U; + + /* Wake-up tasks waiting for pool semaphore */ + while (xSemaphoreGive (mp->sem) == pdTRUE); + + mp->head = NULL; + mp->bl_sz = 0U; + mp->bl_cnt = 0U; + + if ((mp->status & 2U) != 0U) { + /* Memory pool array allocated on heap */ + vPortFree (mp->mem_arr); + } + if ((mp->status & 1U) != 0U) { + /* Memory pool control block allocated on heap */ + vPortFree (mp); + } + + taskEXIT_CRITICAL(); + + stat = osOK; + } + + return (stat); +} + +/* + Create new block given according to the current block index. +*/ +static void *CreateBlock (MemPool_t *mp) { + MemPoolBlock_t *p = NULL; + + if (mp->n < mp->bl_cnt) { + /* Unallocated blocks exist, set pointer to new block */ + p = (void *)(mp->mem_arr + (mp->bl_sz * mp->n)); + + /* Increment block index */ + mp->n += 1U; + } + + return (p); +} + +/* + Allocate a block by reading the list of free blocks. +*/ +static void *AllocBlock (MemPool_t *mp) { + MemPoolBlock_t *p = NULL; + + if (mp->head != NULL) { + /* List of free block exists, get head block */ + p = mp->head; + + /* Head block is now next on the list */ + mp->head = p->next; + } + + return (p); +} + +/* + Free block by putting it to the list of free blocks. +*/ +static void FreeBlock (MemPool_t *mp, void *block) { + MemPoolBlock_t *p = block; + + /* Store current head into block memory space */ + p->next = mp->head; + + /* Store current block as new head */ + mp->head = p; +} +#endif /* FREERTOS_MPOOL_H_ */ +/*---------------------------------------------------------------------------*/ + +/* Callback function prototypes */ +extern void vApplicationIdleHook (void); +extern void vApplicationTickHook (void); +extern void vApplicationMallocFailedHook (void); +extern void vApplicationDaemonTaskStartupHook (void); +extern void vApplicationStackOverflowHook (TaskHandle_t xTask, signed char *pcTaskName); + +/** + Dummy implementation of the callback function vApplicationIdleHook(). +*/ +#if (configUSE_IDLE_HOOK == 1) +__WEAK void vApplicationIdleHook (void){} +#endif + +/** + Dummy implementation of the callback function vApplicationTickHook(). +*/ +#if (configUSE_TICK_HOOK == 1) + __WEAK void vApplicationTickHook (void){} +#endif + +/** + Dummy implementation of the callback function vApplicationMallocFailedHook(). +*/ +#if (configUSE_MALLOC_FAILED_HOOK == 1) +__WEAK void vApplicationMallocFailedHook (void){} +#endif + +/** + Dummy implementation of the callback function vApplicationDaemonTaskStartupHook(). +*/ +#if (configUSE_DAEMON_TASK_STARTUP_HOOK == 1) +__WEAK void vApplicationDaemonTaskStartupHook (void){} +#endif + +/** + Dummy implementation of the callback function vApplicationStackOverflowHook(). +*/ +#if (configCHECK_FOR_STACK_OVERFLOW > 0) +__WEAK void vApplicationStackOverflowHook (TaskHandle_t xTask, signed char *pcTaskName) { + (void)xTask; + (void)pcTaskName; + configASSERT(0); +} +#endif + +/*---------------------------------------------------------------------------*/ +#if (configSUPPORT_STATIC_ALLOCATION == 1) +/* External Idle and Timer task static memory allocation functions */ +extern void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize); +extern void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize); + +/* + vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION + equals to 1 and is required for static memory allocation support. +*/ +__WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) { + /* Idle task control block and stack */ + static StaticTask_t Idle_TCB; + static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE]; + + *ppxIdleTaskTCBBuffer = &Idle_TCB; + *ppxIdleTaskStackBuffer = &Idle_Stack[0]; + *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE; +} + +/* + vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION + equals to 1 and is required for static memory allocation support. +*/ +__WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) { + /* Timer task control block and stack */ + static StaticTask_t Timer_TCB; + static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH]; + + *ppxTimerTaskTCBBuffer = &Timer_TCB; + *ppxTimerTaskStackBuffer = &Timer_Stack[0]; + *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH; +} +#endif diff --git a/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h new file mode 100644 index 0000000..9774cc7 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.h @@ -0,0 +1,734 @@ +/* -------------------------------------------------------------------------- + * Portions Copyright © 2017 STMicroelectronics International N.V. All rights reserved. + * Portions Copyright (c) 2013-2017 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. + * + * Name: cmsis_os2.h + * Purpose: CMSIS RTOS2 wrapper for FreeRTOS + * + *---------------------------------------------------------------------------*/ + +#ifndef CMSIS_OS2_H_ +#define CMSIS_OS2_H_ + +#ifndef __NO_RETURN +#if defined(__CC_ARM) +#define __NO_RETURN __declspec(noreturn) +#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) +#define __NO_RETURN __attribute__((__noreturn__)) +#elif defined(__GNUC__) +#define __NO_RETURN __attribute__((__noreturn__)) +#elif defined(__ICCARM__) +#define __NO_RETURN __noreturn +#else +#define __NO_RETURN +#endif +#endif + +#include +#include + +#ifdef __cplusplus +extern "C" +{ +#endif + + +// ==== Enumerations, structures, defines ==== + +/// Version information. +typedef struct { + uint32_t api; ///< API version (major.minor.rev: mmnnnrrrr dec). + uint32_t kernel; ///< Kernel version (major.minor.rev: mmnnnrrrr dec). +} osVersion_t; + +/// Kernel state. +typedef enum { + osKernelInactive = 0, ///< Inactive. + osKernelReady = 1, ///< Ready. + osKernelRunning = 2, ///< Running. + osKernelLocked = 3, ///< Locked. + osKernelSuspended = 4, ///< Suspended. + osKernelError = -1, ///< Error. + osKernelReserved = 0x7FFFFFFFU ///< Prevents enum down-size compiler optimization. +} osKernelState_t; + +/// Thread state. +typedef enum { + osThreadInactive = 0, ///< Inactive. + osThreadReady = 1, ///< Ready. + osThreadRunning = 2, ///< Running. + osThreadBlocked = 3, ///< Blocked. + osThreadTerminated = 4, ///< Terminated. + osThreadError = -1, ///< Error. + osThreadReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. +} osThreadState_t; + +/// Priority values. +typedef enum { + osPriorityNone = 0, ///< No priority (not initialized). + osPriorityIdle = 1, ///< Reserved for Idle thread. + osPriorityLow = 8, ///< Priority: low + osPriorityLow1 = 8+1, ///< Priority: low + 1 + osPriorityLow2 = 8+2, ///< Priority: low + 2 + osPriorityLow3 = 8+3, ///< Priority: low + 3 + osPriorityLow4 = 8+4, ///< Priority: low + 4 + osPriorityLow5 = 8+5, ///< Priority: low + 5 + osPriorityLow6 = 8+6, ///< Priority: low + 6 + osPriorityLow7 = 8+7, ///< Priority: low + 7 + osPriorityBelowNormal = 16, ///< Priority: below normal + osPriorityBelowNormal1 = 16+1, ///< Priority: below normal + 1 + osPriorityBelowNormal2 = 16+2, ///< Priority: below normal + 2 + osPriorityBelowNormal3 = 16+3, ///< Priority: below normal + 3 + osPriorityBelowNormal4 = 16+4, ///< Priority: below normal + 4 + osPriorityBelowNormal5 = 16+5, ///< Priority: below normal + 5 + osPriorityBelowNormal6 = 16+6, ///< Priority: below normal + 6 + osPriorityBelowNormal7 = 16+7, ///< Priority: below normal + 7 + osPriorityNormal = 24, ///< Priority: normal + osPriorityNormal1 = 24+1, ///< Priority: normal + 1 + osPriorityNormal2 = 24+2, ///< Priority: normal + 2 + osPriorityNormal3 = 24+3, ///< Priority: normal + 3 + osPriorityNormal4 = 24+4, ///< Priority: normal + 4 + osPriorityNormal5 = 24+5, ///< Priority: normal + 5 + osPriorityNormal6 = 24+6, ///< Priority: normal + 6 + osPriorityNormal7 = 24+7, ///< Priority: normal + 7 + osPriorityAboveNormal = 32, ///< Priority: above normal + osPriorityAboveNormal1 = 32+1, ///< Priority: above normal + 1 + osPriorityAboveNormal2 = 32+2, ///< Priority: above normal + 2 + osPriorityAboveNormal3 = 32+3, ///< Priority: above normal + 3 + osPriorityAboveNormal4 = 32+4, ///< Priority: above normal + 4 + osPriorityAboveNormal5 = 32+5, ///< Priority: above normal + 5 + osPriorityAboveNormal6 = 32+6, ///< Priority: above normal + 6 + osPriorityAboveNormal7 = 32+7, ///< Priority: above normal + 7 + osPriorityHigh = 40, ///< Priority: high + osPriorityHigh1 = 40+1, ///< Priority: high + 1 + osPriorityHigh2 = 40+2, ///< Priority: high + 2 + osPriorityHigh3 = 40+3, ///< Priority: high + 3 + osPriorityHigh4 = 40+4, ///< Priority: high + 4 + osPriorityHigh5 = 40+5, ///< Priority: high + 5 + osPriorityHigh6 = 40+6, ///< Priority: high + 6 + osPriorityHigh7 = 40+7, ///< Priority: high + 7 + osPriorityRealtime = 48, ///< Priority: realtime + osPriorityRealtime1 = 48+1, ///< Priority: realtime + 1 + osPriorityRealtime2 = 48+2, ///< Priority: realtime + 2 + osPriorityRealtime3 = 48+3, ///< Priority: realtime + 3 + osPriorityRealtime4 = 48+4, ///< Priority: realtime + 4 + osPriorityRealtime5 = 48+5, ///< Priority: realtime + 5 + osPriorityRealtime6 = 48+6, ///< Priority: realtime + 6 + osPriorityRealtime7 = 48+7, ///< Priority: realtime + 7 + osPriorityISR = 56, ///< Reserved for ISR deferred thread. + osPriorityError = -1, ///< System cannot determine priority or illegal priority. + osPriorityReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. +} osPriority_t; + +/// Entry point of a thread. +typedef void (*osThreadFunc_t) (void *argument); + +/// Timer callback function. +typedef void (*osTimerFunc_t) (void *argument); + +/// Timer type. +typedef enum { + osTimerOnce = 0, ///< One-shot timer. + osTimerPeriodic = 1 ///< Repeating timer. +} osTimerType_t; + +// Timeout value. +#define osWaitForever 0xFFFFFFFFU ///< Wait forever timeout value. + +// Flags options (\ref osThreadFlagsWait and \ref osEventFlagsWait). +#define osFlagsWaitAny 0x00000000U ///< Wait for any flag (default). +#define osFlagsWaitAll 0x00000001U ///< Wait for all flags. +#define osFlagsNoClear 0x00000002U ///< Do not clear flags which have been specified to wait for. + +// Flags errors (returned by osThreadFlagsXxxx and osEventFlagsXxxx). +#define osFlagsError 0x80000000U ///< Error indicator. +#define osFlagsErrorUnknown 0xFFFFFFFFU ///< osError (-1). +#define osFlagsErrorTimeout 0xFFFFFFFEU ///< osErrorTimeout (-2). +#define osFlagsErrorResource 0xFFFFFFFDU ///< osErrorResource (-3). +#define osFlagsErrorParameter 0xFFFFFFFCU ///< osErrorParameter (-4). +#define osFlagsErrorISR 0xFFFFFFFAU ///< osErrorISR (-6). + +// Thread attributes (attr_bits in \ref osThreadAttr_t). +#define osThreadDetached 0x00000000U ///< Thread created in detached mode (default) +#define osThreadJoinable 0x00000001U ///< Thread created in joinable mode + +// Mutex attributes (attr_bits in \ref osMutexAttr_t). +#define osMutexRecursive 0x00000001U ///< Recursive mutex. +#define osMutexPrioInherit 0x00000002U ///< Priority inherit protocol. +#define osMutexRobust 0x00000008U ///< Robust mutex. + +/// Status code values returned by CMSIS-RTOS functions. +typedef enum { + osOK = 0, ///< Operation completed successfully. + osError = -1, ///< Unspecified RTOS error: run-time error but no other error message fits. + osErrorTimeout = -2, ///< Operation not completed within the timeout period. + osErrorResource = -3, ///< Resource not available. + osErrorParameter = -4, ///< Parameter error. + osErrorNoMemory = -5, ///< System is out of memory: it was impossible to allocate or reserve memory for the operation. + osErrorISR = -6, ///< Not allowed in ISR context: the function cannot be called from interrupt service routines. + osStatusReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. +} osStatus_t; + + +/// \details Thread ID identifies the thread. +typedef void *osThreadId_t; + +/// \details Timer ID identifies the timer. +typedef void *osTimerId_t; + +/// \details Event Flags ID identifies the event flags. +typedef void *osEventFlagsId_t; + +/// \details Mutex ID identifies the mutex. +typedef void *osMutexId_t; + +/// \details Semaphore ID identifies the semaphore. +typedef void *osSemaphoreId_t; + +/// \details Memory Pool ID identifies the memory pool. +typedef void *osMemoryPoolId_t; + +/// \details Message Queue ID identifies the message queue. +typedef void *osMessageQueueId_t; + + +#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 + + +/// Attributes structure for thread. +typedef struct { + const char *name; ///< name of the thread + uint32_t attr_bits; ///< attribute bits + void *cb_mem; ///< memory for control block + uint32_t cb_size; ///< size of provided memory for control block + void *stack_mem; ///< memory for stack + uint32_t stack_size; ///< size of stack + osPriority_t priority; ///< initial thread priority (default: osPriorityNormal) + TZ_ModuleId_t tz_module; ///< TrustZone module identifier + uint32_t reserved; ///< reserved (must be 0) +} osThreadAttr_t; + +/// Attributes structure for timer. +typedef struct { + const char *name; ///< name of the timer + uint32_t attr_bits; ///< attribute bits + void *cb_mem; ///< memory for control block + uint32_t cb_size; ///< size of provided memory for control block +} osTimerAttr_t; + +/// Attributes structure for event flags. +typedef struct { + const char *name; ///< name of the event flags + uint32_t attr_bits; ///< attribute bits + void *cb_mem; ///< memory for control block + uint32_t cb_size; ///< size of provided memory for control block +} osEventFlagsAttr_t; + +/// Attributes structure for mutex. +typedef struct { + const char *name; ///< name of the mutex + uint32_t attr_bits; ///< attribute bits + void *cb_mem; ///< memory for control block + uint32_t cb_size; ///< size of provided memory for control block +} osMutexAttr_t; + +/// Attributes structure for semaphore. +typedef struct { + const char *name; ///< name of the semaphore + uint32_t attr_bits; ///< attribute bits + void *cb_mem; ///< memory for control block + uint32_t cb_size; ///< size of provided memory for control block +} osSemaphoreAttr_t; + +/// Attributes structure for memory pool. +typedef struct { + const char *name; ///< name of the memory pool + uint32_t attr_bits; ///< attribute bits + void *cb_mem; ///< memory for control block + uint32_t cb_size; ///< size of provided memory for control block + void *mp_mem; ///< memory for data storage + uint32_t mp_size; ///< size of provided memory for data storage +} osMemoryPoolAttr_t; + +/// Attributes structure for message queue. +typedef struct { + const char *name; ///< name of the message queue + uint32_t attr_bits; ///< attribute bits + void *cb_mem; ///< memory for control block + uint32_t cb_size; ///< size of provided memory for control block + void *mq_mem; ///< memory for data storage + uint32_t mq_size; ///< size of provided memory for data storage +} osMessageQueueAttr_t; + + +// ==== Kernel Management Functions ==== + +/// Initialize the RTOS Kernel. +/// \return status code that indicates the execution status of the function. +osStatus_t osKernelInitialize (void); + +/// Get RTOS Kernel Information. +/// \param[out] version pointer to buffer for retrieving version information. +/// \param[out] id_buf pointer to buffer for retrieving kernel identification string. +/// \param[in] id_size size of buffer for kernel identification string. +/// \return status code that indicates the execution status of the function. +osStatus_t osKernelGetInfo (osVersion_t *version, char *id_buf, uint32_t id_size); + +/// Get the current RTOS Kernel state. +/// \return current RTOS Kernel state. +osKernelState_t osKernelGetState (void); + +/// Start the RTOS Kernel scheduler. +/// \return status code that indicates the execution status of the function. +osStatus_t osKernelStart (void); + +/// Lock the RTOS Kernel scheduler. +/// \return previous lock state (1 - locked, 0 - not locked, error code if negative). +int32_t osKernelLock (void); + +/// Unlock the RTOS Kernel scheduler. +/// \return previous lock state (1 - locked, 0 - not locked, error code if negative). +int32_t osKernelUnlock (void); + +/// Restore the RTOS Kernel scheduler lock state. +/// \param[in] lock lock state obtained by \ref osKernelLock or \ref osKernelUnlock. +/// \return new lock state (1 - locked, 0 - not locked, error code if negative). +int32_t osKernelRestoreLock (int32_t lock); + +/// Suspend the RTOS Kernel scheduler. +/// \return time in ticks, for how long the system can sleep or power-down. +uint32_t osKernelSuspend (void); + +/// Resume the RTOS Kernel scheduler. +/// \param[in] sleep_ticks time in ticks for how long the system was in sleep or power-down mode. +void osKernelResume (uint32_t sleep_ticks); + +/// Get the RTOS kernel tick count. +/// \return RTOS kernel current tick count. +uint32_t osKernelGetTickCount (void); + +/// Get the RTOS kernel tick frequency. +/// \return frequency of the kernel tick in hertz, i.e. kernel ticks per second. +uint32_t osKernelGetTickFreq (void); + +/// Get the RTOS kernel system timer count. +/// \return RTOS kernel current system timer count as 32-bit value. +uint32_t osKernelGetSysTimerCount (void); + +/// Get the RTOS kernel system timer frequency. +/// \return frequency of the system timer in hertz, i.e. timer ticks per second. +uint32_t osKernelGetSysTimerFreq (void); + + +// ==== Thread Management Functions ==== + +/// Create a thread and add it to Active Threads. +/// \param[in] func thread function. +/// \param[in] argument pointer that is passed to the thread function as start argument. +/// \param[in] attr thread attributes; NULL: default values. +/// \return thread ID for reference by other functions or NULL in case of error. +osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr); + +/// Get name of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return name as NULL terminated string. +const char *osThreadGetName (osThreadId_t thread_id); + +/// Return the thread ID of the current running thread. +/// \return thread ID for reference by other functions or NULL in case of error. +osThreadId_t osThreadGetId (void); + +/// Get current thread state of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return current thread state of the specified thread. +osThreadState_t osThreadGetState (osThreadId_t thread_id); + +/// Get stack size of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return stack size in bytes. +uint32_t osThreadGetStackSize (osThreadId_t thread_id); + +/// Get available stack space of a thread based on stack watermark recording during execution. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return remaining stack space in bytes. +uint32_t osThreadGetStackSpace (osThreadId_t thread_id); + +/// Change priority of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \param[in] priority new priority value for the thread function. +/// \return status code that indicates the execution status of the function. +osStatus_t osThreadSetPriority (osThreadId_t thread_id, osPriority_t priority); + +/// Get current priority of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return current priority value of the specified thread. +osPriority_t osThreadGetPriority (osThreadId_t thread_id); + +/// Pass control to next thread that is in state \b READY. +/// \return status code that indicates the execution status of the function. +osStatus_t osThreadYield (void); + +/// Suspend execution of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return status code that indicates the execution status of the function. +osStatus_t osThreadSuspend (osThreadId_t thread_id); + +/// Resume execution of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return status code that indicates the execution status of the function. +osStatus_t osThreadResume (osThreadId_t thread_id); + +/// Detach a thread (thread storage can be reclaimed when thread terminates). +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return status code that indicates the execution status of the function. +osStatus_t osThreadDetach (osThreadId_t thread_id); + +/// Wait for specified thread to terminate. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return status code that indicates the execution status of the function. +osStatus_t osThreadJoin (osThreadId_t thread_id); + +/// Terminate execution of current running thread. +__NO_RETURN void osThreadExit (void); + +/// Terminate execution of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \return status code that indicates the execution status of the function. +osStatus_t osThreadTerminate (osThreadId_t thread_id); + +/// Get number of active threads. +/// \return number of active threads. +uint32_t osThreadGetCount (void); + +/// Enumerate active threads. +/// \param[out] thread_array pointer to array for retrieving thread IDs. +/// \param[in] array_items maximum number of items in array for retrieving thread IDs. +/// \return number of enumerated threads. +uint32_t osThreadEnumerate (osThreadId_t *thread_array, uint32_t array_items); + + +// ==== Thread Flags Functions ==== + +/// Set the specified Thread Flags of a thread. +/// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. +/// \param[in] flags specifies the flags of the thread that shall be set. +/// \return thread flags after setting or error code if highest bit set. +uint32_t osThreadFlagsSet (osThreadId_t thread_id, uint32_t flags); + +/// Clear the specified Thread Flags of current running thread. +/// \param[in] flags specifies the flags of the thread that shall be cleared. +/// \return thread flags before clearing or error code if highest bit set. +uint32_t osThreadFlagsClear (uint32_t flags); + +/// Get the current Thread Flags of current running thread. +/// \return current thread flags. +uint32_t osThreadFlagsGet (void); + +/// Wait for one or more Thread Flags of the current running thread to become signaled. +/// \param[in] flags specifies the flags to wait for. +/// \param[in] options specifies flags options (osFlagsXxxx). +/// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return thread flags before clearing or error code if highest bit set. +uint32_t osThreadFlagsWait (uint32_t flags, uint32_t options, uint32_t timeout); + + +// ==== Generic Wait Functions ==== + +/// Wait for Timeout (Time Delay). +/// \param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value +/// \return status code that indicates the execution status of the function. +osStatus_t osDelay (uint32_t ticks); + +/// Wait until specified time. +/// \param[in] ticks absolute time in ticks +/// \return status code that indicates the execution status of the function. +osStatus_t osDelayUntil (uint32_t ticks); + + +// ==== Timer Management Functions ==== + +/// Create and Initialize a timer. +/// \param[in] func function pointer to callback function. +/// \param[in] type \ref osTimerOnce for one-shot or \ref osTimerPeriodic for periodic behavior. +/// \param[in] argument argument to the timer callback function. +/// \param[in] attr timer attributes; NULL: default values. +/// \return timer ID for reference by other functions or NULL in case of error. +osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr); + +/// Get name of a timer. +/// \param[in] timer_id timer ID obtained by \ref osTimerNew. +/// \return name as NULL terminated string. +const char *osTimerGetName (osTimerId_t timer_id); + +/// Start or restart a timer. +/// \param[in] timer_id timer ID obtained by \ref osTimerNew. +/// \param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value of the timer. +/// \return status code that indicates the execution status of the function. +osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks); + +/// Stop a timer. +/// \param[in] timer_id timer ID obtained by \ref osTimerNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osTimerStop (osTimerId_t timer_id); + +/// Check if a timer is running. +/// \param[in] timer_id timer ID obtained by \ref osTimerNew. +/// \return 0 not running, 1 running. +uint32_t osTimerIsRunning (osTimerId_t timer_id); + +/// Delete a timer. +/// \param[in] timer_id timer ID obtained by \ref osTimerNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osTimerDelete (osTimerId_t timer_id); + + +// ==== Event Flags Management Functions ==== + +/// Create and Initialize an Event Flags object. +/// \param[in] attr event flags attributes; NULL: default values. +/// \return event flags ID for reference by other functions or NULL in case of error. +osEventFlagsId_t osEventFlagsNew (const osEventFlagsAttr_t *attr); + +/// Get name of an Event Flags object. +/// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. +/// \return name as NULL terminated string. +const char *osEventFlagsGetName (osEventFlagsId_t ef_id); + +/// Set the specified Event Flags. +/// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. +/// \param[in] flags specifies the flags that shall be set. +/// \return event flags after setting or error code if highest bit set. +uint32_t osEventFlagsSet (osEventFlagsId_t ef_id, uint32_t flags); + +/// Clear the specified Event Flags. +/// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. +/// \param[in] flags specifies the flags that shall be cleared. +/// \return event flags before clearing or error code if highest bit set. +uint32_t osEventFlagsClear (osEventFlagsId_t ef_id, uint32_t flags); + +/// Get the current Event Flags. +/// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. +/// \return current event flags. +uint32_t osEventFlagsGet (osEventFlagsId_t ef_id); + +/// Wait for one or more Event Flags to become signaled. +/// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. +/// \param[in] flags specifies the flags to wait for. +/// \param[in] options specifies flags options (osFlagsXxxx). +/// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return event flags before clearing or error code if highest bit set. +uint32_t osEventFlagsWait (osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout); + +/// Delete an Event Flags object. +/// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osEventFlagsDelete (osEventFlagsId_t ef_id); + + +// ==== Mutex Management Functions ==== + +/// Create and Initialize a Mutex object. +/// \param[in] attr mutex attributes; NULL: default values. +/// \return mutex ID for reference by other functions or NULL in case of error. +osMutexId_t osMutexNew (const osMutexAttr_t *attr); + +/// Get name of a Mutex object. +/// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. +/// \return name as NULL terminated string. +const char *osMutexGetName (osMutexId_t mutex_id); + +/// Acquire a Mutex or timeout if it is locked. +/// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. +/// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return status code that indicates the execution status of the function. +osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout); + +/// Release a Mutex that was acquired by \ref osMutexAcquire. +/// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osMutexRelease (osMutexId_t mutex_id); + +/// Get Thread which owns a Mutex object. +/// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. +/// \return thread ID of owner thread or NULL when mutex was not acquired. +osThreadId_t osMutexGetOwner (osMutexId_t mutex_id); + +/// Delete a Mutex object. +/// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osMutexDelete (osMutexId_t mutex_id); + + +// ==== Semaphore Management Functions ==== + +/// Create and Initialize a Semaphore object. +/// \param[in] max_count maximum number of available tokens. +/// \param[in] initial_count initial number of available tokens. +/// \param[in] attr semaphore attributes; NULL: default values. +/// \return semaphore ID for reference by other functions or NULL in case of error. +osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr); + +/// Get name of a Semaphore object. +/// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. +/// \return name as NULL terminated string. +const char *osSemaphoreGetName (osSemaphoreId_t semaphore_id); + +/// Acquire a Semaphore token or timeout if no tokens are available. +/// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. +/// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return status code that indicates the execution status of the function. +osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout); + +/// Release a Semaphore token up to the initial maximum count. +/// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osSemaphoreRelease (osSemaphoreId_t semaphore_id); + +/// Get current Semaphore token count. +/// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. +/// \return number of tokens available. +uint32_t osSemaphoreGetCount (osSemaphoreId_t semaphore_id); + +/// Delete a Semaphore object. +/// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osSemaphoreDelete (osSemaphoreId_t semaphore_id); + + +// ==== Memory Pool Management Functions ==== + +/// Create and Initialize a Memory Pool object. +/// \param[in] block_count maximum number of memory blocks in memory pool. +/// \param[in] block_size memory block size in bytes. +/// \param[in] attr memory pool attributes; NULL: default values. +/// \return memory pool ID for reference by other functions or NULL in case of error. +osMemoryPoolId_t osMemoryPoolNew (uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr); + +/// Get name of a Memory Pool object. +/// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. +/// \return name as NULL terminated string. +const char *osMemoryPoolGetName (osMemoryPoolId_t mp_id); + +/// Allocate a memory block from a Memory Pool. +/// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. +/// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return address of the allocated memory block or NULL in case of no memory is available. +void *osMemoryPoolAlloc (osMemoryPoolId_t mp_id, uint32_t timeout); + +/// Return an allocated memory block back to a Memory Pool. +/// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. +/// \param[in] block address of the allocated memory block to be returned to the memory pool. +/// \return status code that indicates the execution status of the function. +osStatus_t osMemoryPoolFree (osMemoryPoolId_t mp_id, void *block); + +/// Get maximum number of memory blocks in a Memory Pool. +/// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. +/// \return maximum number of memory blocks. +uint32_t osMemoryPoolGetCapacity (osMemoryPoolId_t mp_id); + +/// Get memory block size in a Memory Pool. +/// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. +/// \return memory block size in bytes. +uint32_t osMemoryPoolGetBlockSize (osMemoryPoolId_t mp_id); + +/// Get number of memory blocks used in a Memory Pool. +/// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. +/// \return number of memory blocks used. +uint32_t osMemoryPoolGetCount (osMemoryPoolId_t mp_id); + +/// Get number of memory blocks available in a Memory Pool. +/// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. +/// \return number of memory blocks available. +uint32_t osMemoryPoolGetSpace (osMemoryPoolId_t mp_id); + +/// Delete a Memory Pool object. +/// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osMemoryPoolDelete (osMemoryPoolId_t mp_id); + + +// ==== Message Queue Management Functions ==== + +/// Create and Initialize a Message Queue object. +/// \param[in] msg_count maximum number of messages in queue. +/// \param[in] msg_size maximum message size in bytes. +/// \param[in] attr message queue attributes; NULL: default values. +/// \return message queue ID for reference by other functions or NULL in case of error. +osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr); + +/// Get name of a Message Queue object. +/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. +/// \return name as NULL terminated string. +const char *osMessageQueueGetName (osMessageQueueId_t mq_id); + +/// Put a Message into a Queue or timeout if Queue is full. +/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. +/// \param[in] msg_ptr pointer to buffer with message to put into a queue. +/// \param[in] msg_prio message priority. +/// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return status code that indicates the execution status of the function. +osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout); + +/// Get a Message from a Queue or timeout if Queue is empty. +/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. +/// \param[out] msg_ptr pointer to buffer for message to get from a queue. +/// \param[out] msg_prio pointer to buffer for message priority or NULL. +/// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. +/// \return status code that indicates the execution status of the function. +osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout); + +/// Get maximum number of messages in a Message Queue. +/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. +/// \return maximum number of messages. +uint32_t osMessageQueueGetCapacity (osMessageQueueId_t mq_id); + +/// Get maximum message size in a Memory Pool. +/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. +/// \return maximum message size in bytes. +uint32_t osMessageQueueGetMsgSize (osMessageQueueId_t mq_id); + +/// Get number of queued messages in a Message Queue. +/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. +/// \return number of queued messages. +uint32_t osMessageQueueGetCount (osMessageQueueId_t mq_id); + +/// Get number of available slots for messages in a Message Queue. +/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. +/// \return number of available slots for messages. +uint32_t osMessageQueueGetSpace (osMessageQueueId_t mq_id); + +/// Reset a Message Queue to initial empty state. +/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osMessageQueueReset (osMessageQueueId_t mq_id); + +/// Delete a Message Queue object. +/// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. +/// \return status code that indicates the execution status of the function. +osStatus_t osMessageQueueDelete (osMessageQueueId_t mq_id); + + +#ifdef __cplusplus +} +#endif + +#endif // CMSIS_OS2_H_ diff --git a/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_mpool.h b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_mpool.h new file mode 100644 index 0000000..cea5017 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_mpool.h @@ -0,0 +1,63 @@ +/* -------------------------------------------------------------------------- + * Copyright (c) 2013-2020 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. + * + * Name: freertos_mpool.h + * Purpose: CMSIS RTOS2 wrapper for FreeRTOS + * + *---------------------------------------------------------------------------*/ + +#ifndef FREERTOS_MPOOL_H_ +#define FREERTOS_MPOOL_H_ + +#include +#include "FreeRTOS.h" +#include "semphr.h" + +/* Memory Pool implementation definitions */ +#define MPOOL_STATUS 0x5EED0000U + +/* Memory Block header */ +typedef struct { + void *next; /* Pointer to next block */ +} MemPoolBlock_t; + +/* Memory Pool control block */ +typedef struct MemPoolDef_t { + MemPoolBlock_t *head; /* Pointer to head block */ + SemaphoreHandle_t sem; /* Pool semaphore handle */ + uint8_t *mem_arr; /* Pool memory array */ + uint32_t mem_sz; /* Pool memory array size */ + const char *name; /* Pointer to name string */ + uint32_t bl_sz; /* Size of a single block */ + uint32_t bl_cnt; /* Number of blocks */ + uint32_t n; /* Block allocation index */ + volatile uint32_t status; /* Object status flags */ +#if (configSUPPORT_STATIC_ALLOCATION == 1) + StaticSemaphore_t mem_sem; /* Semaphore object memory */ +#endif +} MemPool_t; + +/* No need to hide static object type, just align to coding style */ +#define StaticMemPool_t MemPool_t + +/* Define memory pool control block size */ +#define MEMPOOL_CB_SIZE (sizeof(StaticMemPool_t)) + +/* Define size of the byte array required to create count of blocks of given size */ +#define MEMPOOL_ARR_SIZE(bl_count, bl_size) (((((bl_size) + (4 - 1)) / 4) * 4)*(bl_count)) + +#endif /* FREERTOS_MPOOL_H_ */ diff --git a/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_os2.h b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_os2.h new file mode 100644 index 0000000..c125e2a --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/freertos_os2.h @@ -0,0 +1,310 @@ +/* -------------------------------------------------------------------------- + * Copyright (c) 2013-2020 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. + * + * Name: freertos_os2.h + * Purpose: CMSIS RTOS2 wrapper for FreeRTOS + * + *---------------------------------------------------------------------------*/ + +#ifndef FREERTOS_OS2_H_ +#define FREERTOS_OS2_H_ + +#include +#include + +#include "FreeRTOS.h" // ARM.FreeRTOS::RTOS:Core + +#include CMSIS_device_header + +/* + CMSIS-RTOS2 FreeRTOS image size optimization definitions. + + Note: Definitions configUSE_OS2 can be used to optimize FreeRTOS image size when + certain functionality is not required when using CMSIS-RTOS2 API. + In general optimization decisions are left to the tool chain but in cases + when coding style prevents it to optimize the code following optional + definitions can be used. +*/ + +/* + Option to exclude CMSIS-RTOS2 functions osThreadSuspend and osThreadResume from + the application image. +*/ +#ifndef configUSE_OS2_THREAD_SUSPEND_RESUME +#define configUSE_OS2_THREAD_SUSPEND_RESUME 1 +#endif + +/* + Option to exclude CMSIS-RTOS2 function osThreadEnumerate from the application image. +*/ +#ifndef configUSE_OS2_THREAD_ENUMERATE +#define configUSE_OS2_THREAD_ENUMERATE 1 +#endif + +/* + Option to disable CMSIS-RTOS2 function osEventFlagsSet and osEventFlagsClear + operation from ISR. +*/ +#ifndef configUSE_OS2_EVENTFLAGS_FROM_ISR +#define configUSE_OS2_EVENTFLAGS_FROM_ISR 1 +#endif + +/* + Option to exclude CMSIS-RTOS2 Thread Flags API functions from the application image. +*/ +#ifndef configUSE_OS2_THREAD_FLAGS +#define configUSE_OS2_THREAD_FLAGS configUSE_TASK_NOTIFICATIONS +#endif + +/* + Option to exclude CMSIS-RTOS2 Timer API functions from the application image. +*/ +#ifndef configUSE_OS2_TIMER +#define configUSE_OS2_TIMER configUSE_TIMERS +#endif + +/* + Option to exclude CMSIS-RTOS2 Mutex API functions from the application image. +*/ +#ifndef configUSE_OS2_MUTEX +#define configUSE_OS2_MUTEX configUSE_MUTEXES +#endif + + +/* + CMSIS-RTOS2 FreeRTOS configuration check (FreeRTOSConfig.h). + + Note: CMSIS-RTOS API requires functions included by using following definitions. + In case if certain API function is not used compiler will optimize it away. +*/ +#if (INCLUDE_xSemaphoreGetMutexHolder == 0) + /* + CMSIS-RTOS2 function osMutexGetOwner uses FreeRTOS function xSemaphoreGetMutexHolder. In case if + osMutexGetOwner is not used in the application image, compiler will optimize it away. + Set #define INCLUDE_xSemaphoreGetMutexHolder 1 to fix this error. + */ + #error "Definition INCLUDE_xSemaphoreGetMutexHolder must equal 1 to implement Mutex Management API." +#endif +#if (INCLUDE_vTaskDelay == 0) + /* + CMSIS-RTOS2 function osDelay uses FreeRTOS function vTaskDelay. In case if + osDelay is not used in the application image, compiler will optimize it away. + Set #define INCLUDE_vTaskDelay 1 to fix this error. + */ + #error "Definition INCLUDE_vTaskDelay must equal 1 to implement Generic Wait Functions API." +#endif +#if (INCLUDE_vTaskDelayUntil == 0) + /* + CMSIS-RTOS2 function osDelayUntil uses FreeRTOS function vTaskDelayUntil. In case if + osDelayUntil is not used in the application image, compiler will optimize it away. + Set #define INCLUDE_vTaskDelayUntil 1 to fix this error. + */ + #error "Definition INCLUDE_vTaskDelayUntil must equal 1 to implement Generic Wait Functions API." +#endif +#if (INCLUDE_vTaskDelete == 0) + /* + CMSIS-RTOS2 function osThreadTerminate and osThreadExit uses FreeRTOS function + vTaskDelete. In case if they are not used in the application image, compiler + will optimize them away. + Set #define INCLUDE_vTaskDelete 1 to fix this error. + */ + #error "Definition INCLUDE_vTaskDelete must equal 1 to implement Thread Management API." +#endif +#if (INCLUDE_xTaskGetCurrentTaskHandle == 0) + /* + CMSIS-RTOS2 API uses FreeRTOS function xTaskGetCurrentTaskHandle to implement + functions osThreadGetId, osThreadFlagsClear and osThreadFlagsGet. In case if these + functions are not used in the application image, compiler will optimize them away. + Set #define INCLUDE_xTaskGetCurrentTaskHandle 1 to fix this error. + */ + #error "Definition INCLUDE_xTaskGetCurrentTaskHandle must equal 1 to implement Thread Management API." +#endif +#if (INCLUDE_xTaskGetSchedulerState == 0) + /* + CMSIS-RTOS2 API uses FreeRTOS function xTaskGetSchedulerState to implement Kernel + tick handling and therefore it is vital that xTaskGetSchedulerState is included into + the application image. + Set #define INCLUDE_xTaskGetSchedulerState 1 to fix this error. + */ + #error "Definition INCLUDE_xTaskGetSchedulerState must equal 1 to implement Kernel Information and Control API." +#endif +#if (INCLUDE_uxTaskGetStackHighWaterMark == 0) + /* + CMSIS-RTOS2 function osThreadGetStackSpace uses FreeRTOS function uxTaskGetStackHighWaterMark. + In case if osThreadGetStackSpace is not used in the application image, compiler will + optimize it away. + Set #define INCLUDE_uxTaskGetStackHighWaterMark 1 to fix this error. + */ + #error "Definition INCLUDE_uxTaskGetStackHighWaterMark must equal 1 to implement Thread Management API." +#endif +#if (INCLUDE_uxTaskPriorityGet == 0) + /* + CMSIS-RTOS2 function osThreadGetPriority uses FreeRTOS function uxTaskPriorityGet. In case if + osThreadGetPriority is not used in the application image, compiler will optimize it away. + Set #define INCLUDE_uxTaskPriorityGet 1 to fix this error. + */ + #error "Definition INCLUDE_uxTaskPriorityGet must equal 1 to implement Thread Management API." +#endif +#if (INCLUDE_vTaskPrioritySet == 0) + /* + CMSIS-RTOS2 function osThreadSetPriority uses FreeRTOS function vTaskPrioritySet. In case if + osThreadSetPriority is not used in the application image, compiler will optimize it away. + Set #define INCLUDE_vTaskPrioritySet 1 to fix this error. + */ + #error "Definition INCLUDE_vTaskPrioritySet must equal 1 to implement Thread Management API." +#endif +#if (INCLUDE_eTaskGetState == 0) + /* + CMSIS-RTOS2 API uses FreeRTOS function vTaskDelayUntil to implement functions osThreadGetState + and osThreadTerminate. In case if these functions are not used in the application image, + compiler will optimize them away. + Set #define INCLUDE_eTaskGetState 1 to fix this error. + */ + #error "Definition INCLUDE_eTaskGetState must equal 1 to implement Thread Management API." +#endif +#if (INCLUDE_vTaskSuspend == 0) + /* + CMSIS-RTOS2 API uses FreeRTOS functions vTaskSuspend and vTaskResume to implement + functions osThreadSuspend and osThreadResume. In case if these functions are not + used in the application image, compiler will optimize them away. + Set #define INCLUDE_vTaskSuspend 1 to fix this error. + + Alternatively, if the application does not use osThreadSuspend and + osThreadResume they can be excluded from the image code by setting: + #define configUSE_OS2_THREAD_SUSPEND_RESUME 0 (in FreeRTOSConfig.h) + */ + #if (configUSE_OS2_THREAD_SUSPEND_RESUME == 1) + #error "Definition INCLUDE_vTaskSuspend must equal 1 to implement Kernel Information and Control API." + #endif +#endif +#if (INCLUDE_xTimerPendFunctionCall == 0) + /* + CMSIS-RTOS2 function osEventFlagsSet and osEventFlagsClear, when called from + the ISR, call FreeRTOS functions xEventGroupSetBitsFromISR and + xEventGroupClearBitsFromISR which are only enabled if timers are operational and + xTimerPendFunctionCall in enabled. + Set #define INCLUDE_xTimerPendFunctionCall 1 and #define configUSE_TIMERS 1 + to fix this error. + + Alternatively, if the application does not use osEventFlagsSet and osEventFlagsClear + from the ISR their operation from ISR can be restricted by setting: + #define configUSE_OS2_EVENTFLAGS_FROM_ISR 0 (in FreeRTOSConfig.h) + */ + #if (configUSE_OS2_EVENTFLAGS_FROM_ISR == 1) + #error "Definition INCLUDE_xTimerPendFunctionCall must equal 1 to implement Event Flags API." + #endif +#endif + +#if (configUSE_TIMERS == 0) + /* + CMSIS-RTOS2 Timer Management API functions use FreeRTOS timer functions to implement + timer management. In case if these functions are not used in the application image, + compiler will optimize them away. + Set #define configUSE_TIMERS 1 to fix this error. + + Alternatively, if the application does not use timer functions they can be + excluded from the image code by setting: + #define configUSE_OS2_TIMER 0 (in FreeRTOSConfig.h) + */ + #if (configUSE_OS2_TIMER == 1) + #error "Definition configUSE_TIMERS must equal 1 to implement Timer Management API." + #endif +#endif + +#if (configUSE_MUTEXES == 0) + /* + CMSIS-RTOS2 Mutex Management API functions use FreeRTOS mutex functions to implement + mutex management. In case if these functions are not used in the application image, + compiler will optimize them away. + Set #define configUSE_MUTEXES 1 to fix this error. + + Alternatively, if the application does not use mutex functions they can be + excluded from the image code by setting: + #define configUSE_OS2_MUTEX 0 (in FreeRTOSConfig.h) + */ + #if (configUSE_OS2_MUTEX == 1) + #error "Definition configUSE_MUTEXES must equal 1 to implement Mutex Management API." + #endif +#endif + +#if (configUSE_COUNTING_SEMAPHORES == 0) + /* + CMSIS-RTOS2 Memory Pool functions use FreeRTOS function xSemaphoreCreateCounting + to implement memory pools. In case if these functions are not used in the application image, + compiler will optimize them away. + Set #define configUSE_COUNTING_SEMAPHORES 1 to fix this error. + */ + #error "Definition configUSE_COUNTING_SEMAPHORES must equal 1 to implement Memory Pool API." +#endif +#if (configUSE_TASK_NOTIFICATIONS == 0) + /* + CMSIS-RTOS2 Thread Flags API functions use FreeRTOS Task Notification functions to implement + thread flag management. In case if these functions are not used in the application image, + compiler will optimize them away. + Set #define configUSE_TASK_NOTIFICATIONS 1 to fix this error. + + Alternatively, if the application does not use thread flags functions they can be + excluded from the image code by setting: + #define configUSE_OS2_THREAD_FLAGS 0 (in FreeRTOSConfig.h) + */ + #if (configUSE_OS2_THREAD_FLAGS == 1) + #error "Definition configUSE_TASK_NOTIFICATIONS must equal 1 to implement Thread Flags API." + #endif +#endif + +#if (configUSE_TRACE_FACILITY == 0) + /* + CMSIS-RTOS2 function osThreadEnumerate requires FreeRTOS function uxTaskGetSystemState + which is only enabled if configUSE_TRACE_FACILITY == 1. + Set #define configUSE_TRACE_FACILITY 1 to fix this error. + + Alternatively, if the application does not use osThreadEnumerate it can be + excluded from the image code by setting: + #define configUSE_OS2_THREAD_ENUMERATE 0 (in FreeRTOSConfig.h) + */ + #if (configUSE_OS2_THREAD_ENUMERATE == 1) + #error "Definition configUSE_TRACE_FACILITY must equal 1 to implement osThreadEnumerate." + #endif +#endif + +#if (configUSE_16_BIT_TICKS == 1) + /* + CMSIS-RTOS2 wrapper for FreeRTOS relies on 32-bit tick timer which is also optimal on + a 32-bit CPU architectures. + Set #define configUSE_16_BIT_TICKS 0 to fix this error. + */ + #error "Definition configUSE_16_BIT_TICKS must be zero to implement CMSIS-RTOS2 API." +#endif + +#if (configMAX_PRIORITIES != 56) + /* + CMSIS-RTOS2 defines 56 different priorities (see osPriority_t) and portable CMSIS-RTOS2 + implementation should implement the same number of priorities. + Set #define configMAX_PRIORITIES 56 to fix this error. + */ + #error "Definition configMAX_PRIORITIES must equal 56 to implement Thread Management API." +#endif +#if (configUSE_PORT_OPTIMISED_TASK_SELECTION != 0) + /* + CMSIS-RTOS2 requires handling of 56 different priorities (see osPriority_t) while FreeRTOS port + optimised selection for Cortex core only handles 32 different priorities. + Set #define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 to fix this error. + */ + #error "Definition configUSE_PORT_OPTIMISED_TASK_SELECTION must be zero to implement Thread Management API." +#endif + +#endif /* FREERTOS_OS2_H_ */ diff --git a/Middlewares/Third_Party/FreeRTOS/Source/LICENSE b/Middlewares/Third_Party/FreeRTOS/Source/LICENSE new file mode 100644 index 0000000..2ce4711 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/LICENSE @@ -0,0 +1,18 @@ +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 new file mode 100644 index 0000000..9ce5003 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/croutine.c @@ -0,0 +1,353 @@ +/* + * 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 new file mode 100644 index 0000000..bf4ec24 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/event_groups.c @@ -0,0 +1,753 @@ +/* + * 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 new file mode 100644 index 0000000..ceb469a --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h @@ -0,0 +1,1295 @@ +/* + * 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 new file mode 100644 index 0000000..5643991 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h @@ -0,0 +1,133 @@ +/* + * 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/croutine.h b/Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h new file mode 100644 index 0000000..8d7069c --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h @@ -0,0 +1,720 @@ +/* + * 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 new file mode 100644 index 0000000..21657b9 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h @@ -0,0 +1,279 @@ +/* + * 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 new file mode 100644 index 0000000..a87fdf3 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h @@ -0,0 +1,757 @@ +/* + * 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 new file mode 100644 index 0000000..a3e3024 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/list.h @@ -0,0 +1,412 @@ +/* + * 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 new file mode 100644 index 0000000..0c3edb9 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h @@ -0,0 +1,803 @@ +/* + * 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 new file mode 100644 index 0000000..a21b7a6 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h @@ -0,0 +1,160 @@ +/* + * 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 new file mode 100644 index 0000000..5f63d4f --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h @@ -0,0 +1,189 @@ +/* + * 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 new file mode 100644 index 0000000..a2099c3 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/portable.h @@ -0,0 +1,199 @@ +/* + * 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 new file mode 100644 index 0000000..0d95130 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h @@ -0,0 +1,124 @@ +/* + * 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 new file mode 100644 index 0000000..52ccca5 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/queue.h @@ -0,0 +1,1655 @@ +/* + * 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 new file mode 100644 index 0000000..787c791 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h @@ -0,0 +1,1140 @@ +/* + * 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 new file mode 100644 index 0000000..b5bac08 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h @@ -0,0 +1,129 @@ +/* + * 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 new file mode 100644 index 0000000..a8b68ad --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h @@ -0,0 +1,859 @@ +/* + * 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 new file mode 100644 index 0000000..b0cc60b --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/task.h @@ -0,0 +1,2543 @@ +/* + * 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 new file mode 100644 index 0000000..307ea1f --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/include/timers.h @@ -0,0 +1,1309 @@ +/* + * 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 new file mode 100644 index 0000000..7618ee8 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/list.c @@ -0,0 +1,198 @@ +/* + * 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/MemMang/heap_4.c b/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c new file mode 100644 index 0000000..eaf443f --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c @@ -0,0 +1,492 @@ +/* + * 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/portable/RVDS/ARM_CM3/port.c b/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/port.c new file mode 100644 index 0000000..d2137f0 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/port.c @@ -0,0 +1,698 @@ +/* + * 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 CM3 port. + *----------------------------------------------------------*/ + +/* Scheduler includes. */ +#include "FreeRTOS.h" +#include "task.h" + +#ifndef configKERNEL_INTERRUPT_PRIORITY + #define configKERNEL_INTERRUPT_PRIORITY 255 +#endif + +#if configMAX_SYSCALL_INTERRUPT_PRIORITY == 0 + #error configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0. See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html +#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 + +/* Legacy macro for backward compatibility only. This macro used to be used to +replace the function that configures the clock used to generate the tick +interrupt (prvSetupTimerInterrupt()), but now the function is declared weak so +the application writer can override it by simply defining a function of the +same name (vApplicationSetupTickInterrupt()). */ +#ifndef configOVERRIDE_DEFAULT_TICK_CONFIGURATION + #define configOVERRIDE_DEFAULT_TICK_CONFIGURATION 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 ) + +#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 set up the initial stack. */ +#define portINITIAL_XPSR ( 0x01000000 ) + +/* The systick is a 24-bit counter. */ +#define portMAX_24_BIT_NUMBER ( 0xffffffUL ) + +/* 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 ) + +/* 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 ) + +/* + * 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 ); +void xPortSysTickHandler( void ); +void vPortSVCHandler( void ); + +/* + * Start first task is a separate function so it can be tested in isolation. + */ +static void prvStartFirstTask( void ); + +/* + * 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 = ( uint8_t * ) 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. */ + pxTopOfStack--; /* Offset added to account for the way the MCU uses the stack on entry/exit of interrupts. */ + *pxTopOfStack = portINITIAL_XPSR; /* xPSR */ + pxTopOfStack--; + *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */ + pxTopOfStack--; + *pxTopOfStack = ( StackType_t ) prvTaskExitError; /* LR */ + + pxTopOfStack -= 5; /* R12, R3, R2 and R1. */ + *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */ + pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */ + + return pxTopOfStack; +} +/*-----------------------------------------------------------*/ + +static void prvTaskExitError( void ) +{ + /* 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(); + for( ;; ); +} +/*-----------------------------------------------------------*/ + +__asm void vPortSVCHandler( void ) +{ + PRESERVE8 + + ldr r3, =pxCurrentTCB /* Restore the context. */ + ldr r1, [r3] /* Use pxCurrentTCBConst to get the pxCurrentTCB address. */ + ldr r0, [r1] /* The first item in pxCurrentTCB is the task top of stack. */ + ldmia r0!, {r4-r11} /* Pop the registers that are not automatically saved on exception entry and the critical nesting count. */ + msr psp, r0 /* Restore the task stack pointer. */ + isb + mov r0, #0 + msr basepri, r0 + orr r14, #0xd + bx r14 +} +/*-----------------------------------------------------------*/ + +__asm void prvStartFirstTask( void ) +{ + PRESERVE8 + + /* Use the NVIC offset register to locate the stack. */ + ldr r0, =0xE000ED08 + ldr r0, [r0] + ldr r0, [r0] + + /* Set the msp back to the start of the stack. */ + msr msp, r0 + /* Globally enable interrupts. */ + cpsie i + cpsie f + dsb + isb + /* Call SVC to start the first task. */ + svc 0 + nop + nop +} +/*-----------------------------------------------------------*/ + +/* + * See header file for description. + */ +BaseType_t xPortStartScheduler( void ) +{ + #if( configASSERT_DEFINED == 1 ) + { + volatile uint32_t ulOriginalPriority; + volatile uint8_t * const pucFirstUserPriorityRegister = ( uint8_t * ) ( 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; + + /* The kernel interrupt priority should be set to the lowest + priority. */ + configASSERT( ucMaxPriorityValue == ( configKERNEL_INTERRUPT_PRIORITY & ucMaxPriorityValue ) ); + + /* 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; + + /* Start the first task. */ + prvStartFirstTask(); + + /* 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(); + } +} +/*-----------------------------------------------------------*/ + +__asm void xPortPendSVHandler( void ) +{ + extern uxCriticalNesting; + extern pxCurrentTCB; + extern vTaskSwitchContext; + + PRESERVE8 + + mrs r0, psp + isb + + ldr r3, =pxCurrentTCB /* Get the location of the current TCB. */ + ldr r2, [r3] + + stmdb r0!, {r4-r11} /* Save the remaining registers. */ + str r0, [r2] /* Save the new top of stack into the first member of the TCB. */ + + stmdb sp!, {r3, r14} + mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY + msr basepri, r0 + dsb + isb + bl vTaskSwitchContext + mov r0, #0 + msr basepri, r0 + ldmia sp!, {r3, r14} + + ldr r1, [r3] + ldr r0, [r1] /* The first item in pxCurrentTCB is the task top of stack. */ + ldmia r0!, {r4-r11} /* Pop the registers and the critical nesting count. */ + msr psp, r0 + isb + bx r14 + nop +} +/*-----------------------------------------------------------*/ + +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 - therefore the slightly faster vPortRaiseBASEPRI() function is used + in place of portSET_INTERRUPT_MASK_FROM_ISR(). */ + vPortRaiseBASEPRI(); + { + /* 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; + } + } + vPortClearBASEPRIFromISR(); +} +/*-----------------------------------------------------------*/ + +#if( configUSE_TICKLESS_IDLE == 1 ) + + __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. */ + __disable_irq(); + __dsb( portSY_FULL_READ_WRITE ); + __isb( portSY_FULL_READ_WRITE ); + + /* 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 __disable_irq() call + above. */ + __enable_irq(); + } + 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 ) + { + __dsb( portSY_FULL_READ_WRITE ); + __wfi(); + __isb( portSY_FULL_READ_WRITE ); + } + 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. */ + __enable_irq(); + __dsb( portSY_FULL_READ_WRITE ); + __isb( portSY_FULL_READ_WRITE ); + + /* 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. */ + __disable_irq(); + __dsb( portSY_FULL_READ_WRITE ); + __isb( portSY_FULL_READ_WRITE ); + + /* 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. */ + __enable_irq(); + } + } + +#endif /* #if configUSE_TICKLESS_IDLE */ + +/*-----------------------------------------------------------*/ + +/* + * Setup the SysTick timer to generate the tick interrupts at the required + * frequency. + */ +#if( configOVERRIDE_DEFAULT_TICK_CONFIGURATION == 0 ) + + __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 ); + } + +#endif /* configOVERRIDE_DEFAULT_TICK_CONFIGURATION */ +/*-----------------------------------------------------------*/ + +__asm uint32_t vPortGetIPSR( void ) +{ + PRESERVE8 + + mrs r0, ipsr + bx r14 +} +/*-----------------------------------------------------------*/ + +#if( configASSERT_DEFINED == 1 ) + + void vPortValidateInterruptPriority( void ) + { + uint32_t ulCurrentInterrupt; + uint8_t ucCurrentPriority; + + /* Obtain the number of the currently executing interrupt. */ + ulCurrentInterrupt = vPortGetIPSR(); + + /* 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/RVDS/ARM_CM3/portmacro.h b/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h new file mode 100644 index 0000000..2b07ff1 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/portable/RVDS/ARM_CM3/portmacro.h @@ -0,0 +1,252 @@ +/* + * 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 + +/* Constants used with memory barrier intrinsics. */ +#define portSY_FULL_READ_WRITE ( 15 ) + +/*-----------------------------------------------------------*/ + +/* 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. */ \ + __dsb( portSY_FULL_READ_WRITE ); \ + __isb( portSY_FULL_READ_WRITE ); \ +} +/*-----------------------------------------------------------*/ + +#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 portDISABLE_INTERRUPTS() vPortRaiseBASEPRI() +#define portENABLE_INTERRUPTS() vPortSetBASEPRI( 0 ) +#define portENTER_CRITICAL() vPortEnterCritical() +#define portEXIT_CRITICAL() vPortExitCritical() +#define portSET_INTERRUPT_MASK_FROM_ISR() ulPortRaiseBASEPRI() +#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x) vPortSetBASEPRI(x) + +/*-----------------------------------------------------------*/ + +/* 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 +/*-----------------------------------------------------------*/ + +/* Port specific optimisations. */ +#ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION + #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1 +#endif + +#if configUSE_PORT_OPTIMISED_TASK_SELECTION == 1 + + /* 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 ) __clz( ( uxReadyPriorities ) ) ) + +#endif /* taskRECORD_READY_PRIORITY */ +/*-----------------------------------------------------------*/ + +/* 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 ) +/*-----------------------------------------------------------*/ + +#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 __forceinline +#endif + +/*-----------------------------------------------------------*/ + +static portFORCE_INLINE void vPortSetBASEPRI( uint32_t ulBASEPRI ) +{ + __asm + { + /* Barrier instructions are not used as this function is only used to + lower the BASEPRI value. */ + msr basepri, ulBASEPRI + } +} +/*-----------------------------------------------------------*/ + +static portFORCE_INLINE void vPortRaiseBASEPRI( void ) +{ +uint32_t ulNewBASEPRI = configMAX_SYSCALL_INTERRUPT_PRIORITY; + + __asm + { + /* Set BASEPRI to the max syscall priority to effect a critical + section. */ + msr basepri, ulNewBASEPRI + dsb + isb + } +} +/*-----------------------------------------------------------*/ + +static portFORCE_INLINE void vPortClearBASEPRIFromISR( void ) +{ + __asm + { + /* Set BASEPRI to 0 so no interrupts are masked. This function is only + used to lower the mask in an interrupt, so memory barriers are not + used. */ + msr basepri, #0 + } +} +/*-----------------------------------------------------------*/ + +static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI( void ) +{ +uint32_t ulReturn, ulNewBASEPRI = configMAX_SYSCALL_INTERRUPT_PRIORITY; + + __asm + { + /* Set BASEPRI to the max syscall priority to effect a critical + section. */ + mrs ulReturn, basepri + msr basepri, ulNewBASEPRI + dsb + isb + } + + return ulReturn; +} +/*-----------------------------------------------------------*/ + +static portFORCE_INLINE BaseType_t xPortIsInsideInterrupt( void ) +{ +uint32_t ulCurrentInterrupt; +BaseType_t xReturn; + + /* Obtain the number of the currently executing interrupt. */ + __asm + { + mrs ulCurrentInterrupt, ipsr + } + + if( ulCurrentInterrupt == 0 ) + { + xReturn = pdFALSE; + } + else + { + xReturn = pdTRUE; + } + + return xReturn; +} + + +#ifdef __cplusplus +} +#endif + +#endif /* PORTMACRO_H */ + diff --git a/Middlewares/Third_Party/FreeRTOS/Source/queue.c b/Middlewares/Third_Party/FreeRTOS/Source/queue.c new file mode 100644 index 0000000..b3203b8 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/queue.c @@ -0,0 +1,2945 @@ +/* + * 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 new file mode 100644 index 0000000..7ad5d54 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c @@ -0,0 +1,1263 @@ +/* + * 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 new file mode 100644 index 0000000..f6a6a9b --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/tasks.c @@ -0,0 +1,5310 @@ +/* + * 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 new file mode 100644 index 0000000..00200b8 --- /dev/null +++ b/Middlewares/Third_Party/FreeRTOS/Source/timers.c @@ -0,0 +1,1127 @@ +/* + * 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/User/bsp/bsp_config.yaml b/User/bsp/bsp_config.yaml index 3503783..f73f035 100644 --- a/User/bsp/bsp_config.yaml +++ b/User/bsp/bsp_config.yaml @@ -10,11 +10,26 @@ gpio: ioc_label: SPI1_NSS pin: PA4 type: OUTPUT + - custom_name: LCD_RS + has_exti: false + ioc_label: LCD_RS + pin: PA8 + type: OUTPUT - custom_name: RADIO_RST has_exti: false ioc_label: RADIO_RST pin: PB0 type: OUTPUT + - custom_name: LCD_CS + has_exti: false + ioc_label: LCD_CS + pin: PB12 + type: OUTPUT + - custom_name: LCD_RES + has_exti: false + ioc_label: LCD_RES + pin: PB14 + type: OUTPUT - custom_name: RADIO_RXEN has_exti: false ioc_label: RADIO_RXEN @@ -45,6 +60,11 @@ gpio: ioc_label: RADIO_BUSY pin: PB8 type: INPUT + - custom_name: LCD_BLK + has_exti: false + ioc_label: LCD_BLK + pin: PB9 + type: OUTPUT enabled: true spi: devices: @@ -53,3 +73,10 @@ spi: enabled: true time: enabled: true +uart: + devices: + - instance: USART2 + name: SX1281 + - instance: USART1 + name: DBUS + enabled: true diff --git a/User/bsp/flash.c b/User/bsp/flash.c new file mode 100644 index 0000000..225c6df --- /dev/null +++ b/User/bsp/flash.c @@ -0,0 +1,56 @@ +/* Includes ----------------------------------------------------------------- */ +#include "bsp\flash.h" +#include "flash.h" +#include +#include + + +/* Private define ----------------------------------------------------------- */ +/* Private macro ------------------------------------------------------------ */ +/* Private typedef ---------------------------------------------------------- */ +/* Private variables -------------------------------------------------------- */ +/* Private function -------------------------------------------------------- */ +/* Exported functions ------------------------------------------------------- */ + +void BSP_Flash_EraseSector(uint32_t sector) { + FLASH_EraseInitTypeDef flash_erase; + uint32_t sector_error; + +#ifdef DEV_BOARD_C + if (sector > 0 && sector < 12) { + flash_erase.Sector = sector; + flash_erase.TypeErase = FLASH_TYPEERASE_PAGES; + flash_erase.VoltageRange = FLASH_VOLTAGE_RANGE_3; + flash_erase.NbSectors = 1; +#endif +#ifdef STM32F103x8 + if (sector > 0 && sector < 12) { + flash_erase.TypeErase = FLASH_TYPEERASE_PAGES; + flash_erase.Banks = FLASH_BANK_1; // 单 bank 器件通常这样写 + flash_erase.PageAddress = ADDR_FLASH_SECTOR(sector); // 要擦除的页地址 + flash_erase.NbPages = 1; +#endif + HAL_FLASH_Unlock(); + while (FLASH_WaitForLastOperation(50) != HAL_OK) + ; + HAL_FLASHEx_Erase(&flash_erase, §or_error); + HAL_FLASH_Lock(); + } +} + +void BSP_Flash_WriteBytes(uint32_t address, const uint16_t *buf, size_t len) { + HAL_FLASH_Unlock(); + while (len > 0) { + while (FLASH_WaitForLastOperation(50) != HAL_OK) + ; + HAL_FLASH_Program(FLASH_TYPEPROGRAM_HALFWORD, address, *buf); + address++; + buf++; + len--; + } + HAL_FLASH_Lock(); +} + +void BSP_Flash_ReadBytes(uint32_t address, void *buf, size_t len) { + memcpy(buf, (void *)address, len); +} diff --git a/User/bsp/flash.h b/User/bsp/flash.h new file mode 100644 index 0000000..c7b6764 --- /dev/null +++ b/User/bsp/flash.h @@ -0,0 +1,66 @@ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +/*4表示16KB(小容量ld), 6表示32KB(小容量ld), 8表示64KB(中容量md), +B表示128KB(中容量md), C表示256 KB(大容量hd), E表示512 KB(大容量hd), +F表示768KB(超大容量xl), G表示1024KB(超大容量xl), */ +/* Includes ------------------------------------------------------------------ */ +#include + +#include "bsp/bsp.h" + +/* Exported constants -------------------------------------------------------- */ + + +/* Exported macro ------------------------------------------------------------ */ + +#define STM32F103x8 +#ifdef STM32F103x8 +/* +页0 0x0800 0000-0x0800 07FF +页1 0x0800 0800-0x0800 0FFF +页2 0x0800 1000-0x0800 17FF +页3 0x0800 1800-0x0800 1FFF +页255 0x0807 F800-0x0807 FFFF +系统存储器 0x1FFF F000 -0x1FFF F7FF +*/ +#define ADDR_FLASH_SECTOR(x) ((uint32_t)0x08000000) + ((x) * 0x800) //每个扇区2KB +#endif + +/* Base address of the Flash sectors */ +#define ADDR_FLASH_SECTOR_0 ((uint32_t)0x08000000) +/* Base address of Sector 0, 16 Kbytes */ +#define ADDR_FLASH_SECTOR_1 ((uint32_t)0x08004000) +/* Base address of Sector 1, 16 Kbytes */ +#define ADDR_FLASH_SECTOR_2 ((uint32_t)0x08008000) +/* Base address of Sector 2, 16 Kbytes */ +#define ADDR_FLASH_SECTOR_3 ((uint32_t)0x0800C000) +/* Base address of Sector 3, 16 Kbytes */ +#define ADDR_FLASH_SECTOR_4 ((uint32_t)0x08010000) +/* Base address of Sector 4, 64 Kbytes */ +#define ADDR_FLASH_SECTOR_5 ((uint32_t)0x08020000) +/* Base address of Sector 5, 128 Kbytes */ +#define ADDR_FLASH_SECTOR_6 ((uint32_t)0x08040000) +/* Base address of Sector 6, 128 Kbytes */ +#define ADDR_FLASH_SECTOR_7 ((uint32_t)0x08060000) +/* Base address of Sector 7, 128 Kbytes */ +#define ADDR_FLASH_SECTOR_8 ((uint32_t)0x08080000) +/* Base address of Sector 8, 128 Kbytes */ +#define ADDR_FLASH_SECTOR_9 ((uint32_t)0x080A0000) +/* Base address of Sector 9, 128 Kbytes */ +#define ADDR_FLASH_SECTOR_10 ((uint32_t)0x080C0000) +/* Base address of Sector 10, 128 Kbytes */ +#define ADDR_FLASH_SECTOR_11 ((uint32_t)0x080E0000) +/* Base address of Sector 11, 128 Kbytes */ +/* Exported types ------------------------------------------------------------ */ +/* Exported functions prototypes --------------------------------------------- */ +void BSP_Flash_EraseSector(uint32_t sector); +void BSP_Flash_WriteBytes(uint32_t address, const uint16_t *buf, size_t len); +void BSP_Flash_ReadBytes(uint32_t address, void *buf, size_t len); + +#ifdef __cplusplus +} +#endif diff --git a/User/bsp/gpio.c b/User/bsp/gpio.c index b3fa747..016c5b7 100644 --- a/User/bsp/gpio.c +++ b/User/bsp/gpio.c @@ -27,14 +27,18 @@ typedef struct { /* Private variables -------------------------------------------------------- */ static const BSP_GPIO_MAP_t GPIO_Map[BSP_GPIO_NUM] = { {KEY_Pin, KEY_GPIO_Port}, -// {SPI1_NSS_Pin, SPI1_NSS_GPIO_Port}, + {SPI1_NSS_Pin, SPI1_NSS_GPIO_Port}, + {LCD_RS_Pin, LCD_RS_GPIO_Port}, {RADIO_RST_Pin, RADIO_RST_GPIO_Port}, + {LCD_CS_Pin, LCD_CS_GPIO_Port}, + {LCD_RES_Pin, LCD_RES_GPIO_Port}, {RADIO_RXEN_Pin, RADIO_RXEN_GPIO_Port}, {RADIO_TXEN_Pin, RADIO_TXEN_GPIO_Port}, {RADIO_DIO3_Pin, RADIO_DIO3_GPIO_Port}, {RADIO_DIO2_Pin, RADIO_DIO2_GPIO_Port}, {RADIO_DIO1_Pin, RADIO_DIO1_GPIO_Port}, {RADIO_BUSY_Pin, RADIO_BUSY_GPIO_Port}, + {LCD_BLK_Pin, LCD_BLK_GPIO_Port}, }; static void (*GPIO_Callback[16])(void); diff --git a/User/bsp/gpio.h b/User/bsp/gpio.h index a6307f6..27f0a09 100644 --- a/User/bsp/gpio.h +++ b/User/bsp/gpio.h @@ -24,13 +24,17 @@ extern "C" { typedef enum { BSP_GPIO_KEY, BSP_GPIO_SPI1_NSS, + BSP_GPIO_LCD_RS, BSP_GPIO_RADIO_RST, + BSP_GPIO_LCD_CS, + BSP_GPIO_LCD_RES, BSP_GPIO_RADIO_RXEN, BSP_GPIO_RADIO_TXEN, BSP_GPIO_RADIO_DIO3, BSP_GPIO_RADIO_DIO2, BSP_GPIO_RADIO_DIO1, BSP_GPIO_RADIO_BUSY, + BSP_GPIO_LCD_BLK, BSP_GPIO_NUM, BSP_GPIO_ERR, } BSP_GPIO_t; diff --git a/User/bsp/uart.c b/User/bsp/uart.c index 7bdcc68..8c58eca 100644 --- a/User/bsp/uart.c +++ b/User/bsp/uart.c @@ -23,9 +23,10 @@ static void (*UART_Callback[BSP_UART_NUM][BSP_UART_CB_NUM])(void); /* Private function -------------------------------------------------------- */ static BSP_UART_t UART_Get(UART_HandleTypeDef *huart) { -/* AUTO GENERATED UART_GET */ if (huart->Instance == USART2) return BSP_UART_SX1281; + else if (huart->Instance == USART1) + return BSP_UART_DBUS; else return BSP_UART_ERR; } @@ -114,9 +115,10 @@ void BSP_UART_IRQHandler(UART_HandleTypeDef *huart) { UART_HandleTypeDef *BSP_UART_GetHandle(BSP_UART_t uart) { switch (uart) { -/* AUTO GENERATED BSP_UART_GET_HANDLE */ case BSP_UART_SX1281: return &huart2; + case BSP_UART_DBUS: + return &huart1; default: return NULL; } diff --git a/User/bsp/uart.h b/User/bsp/uart.h index 8b7cb83..82ce445 100644 --- a/User/bsp/uart.h +++ b/User/bsp/uart.h @@ -27,8 +27,8 @@ extern "C" { /* UART实体枚举,与设备对应 */ typedef enum { -/* AUTO GENERATED BSP_UART_NAME */ BSP_UART_SX1281, + BSP_UART_DBUS, BSP_UART_NUM, BSP_UART_ERR, } BSP_UART_t; diff --git a/User/component/component_config.yaml b/User/component/component_config.yaml index 1774aad..8e55c49 100644 --- a/User/component/component_config.yaml +++ b/User/component/component_config.yaml @@ -4,6 +4,13 @@ crc16: crc8: dependencies: [] enabled: true +freertos_cli: + dependencies: [] + enabled: true +ui: + dependencies: + - component/user_math.h + enabled: true user_math: dependencies: [] enabled: true diff --git a/User/component/freertos_cli.c b/User/component/freertos_cli.c new file mode 100644 index 0000000..32421de --- /dev/null +++ b/User/component/freertos_cli.c @@ -0,0 +1,352 @@ +/* + * FreeRTOS+CLI V1.0.4 + * Copyright (C) 2017 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 + +/* FreeRTOS includes. */ +#include "FreeRTOS.h" +#include "task.h" + +/* Utils includes. */ +#include "FreeRTOS_CLI.h" + +/* If the application writer needs to place the buffer used by the CLI at a +fixed address then set configAPPLICATION_PROVIDES_cOutputBuffer to 1 in +FreeRTOSConfig.h, then declare an array with the following name and size in +one of the application files: + char cOutputBuffer[ configCOMMAND_INT_MAX_OUTPUT_SIZE ]; +*/ +#ifndef configAPPLICATION_PROVIDES_cOutputBuffer + #define configAPPLICATION_PROVIDES_cOutputBuffer 0 +#endif + +typedef struct xCOMMAND_INPUT_LIST +{ + const CLI_Command_Definition_t *pxCommandLineDefinition; + struct xCOMMAND_INPUT_LIST *pxNext; +} CLI_Definition_List_Item_t; + +/* + * The callback function that is executed when "help" is entered. This is the + * only default command that is always present. + */ +static BaseType_t prvHelpCommand( char *pcWriteBuffer, size_t xWriteBufferLen, const char *pcCommandString ); + +/* + * Return the number of parameters that follow the command name. + */ +static int8_t prvGetNumberOfParameters( const char *pcCommandString ); + +/* The definition of the "help" command. This command is always at the front +of the list of registered commands. */ +static const CLI_Command_Definition_t xHelpCommand = +{ + "help", + "\r\nhelp:\r\n Lists all the registered commands\r\n\r\n", + prvHelpCommand, + 0 +}; + +/* The definition of the list of commands. Commands that are registered are +added to this list. */ +static CLI_Definition_List_Item_t xRegisteredCommands = +{ + &xHelpCommand, /* The first command in the list is always the help command, defined in this file. */ + NULL /* The next pointer is initialised to NULL, as there are no other registered commands yet. */ +}; + +/* A buffer into which command outputs can be written is declared here, rather +than in the command console implementation, to allow multiple command consoles +to share the same buffer. For example, an application may allow access to the +command interpreter by UART and by Ethernet. Sharing a buffer is done purely +to save RAM. Note, however, that the command console itself is not re-entrant, +so only one command interpreter interface can be used at any one time. For that +reason, no attempt at providing mutual exclusion to the cOutputBuffer array is +attempted. + +configAPPLICATION_PROVIDES_cOutputBuffer is provided to allow the application +writer to provide their own cOutputBuffer declaration in cases where the +buffer needs to be placed at a fixed address (rather than by the linker). */ + +#if( configAPPLICATION_PROVIDES_cOutputBuffer == 0 ) + static char cOutputBuffer[ configCOMMAND_INT_MAX_OUTPUT_SIZE ]; +#else + extern char cOutputBuffer[ configCOMMAND_INT_MAX_OUTPUT_SIZE ]; +#endif + + +/*---------------------------------------------------------- */ + +BaseType_t FreeRTOS_CLIRegisterCommand( const CLI_Command_Definition_t * const pxCommandToRegister ) +{ +static CLI_Definition_List_Item_t *pxLastCommandInList = &xRegisteredCommands; +CLI_Definition_List_Item_t *pxNewListItem; +BaseType_t xReturn = pdFAIL; + + /* Check the parameter is not NULL. */ + configASSERT( pxCommandToRegister ); + + /* Create a new list item that will reference the command being registered. */ + pxNewListItem = ( CLI_Definition_List_Item_t * ) pvPortMalloc( sizeof( CLI_Definition_List_Item_t ) ); + configASSERT( pxNewListItem ); + + if( pxNewListItem != NULL ) + { + taskENTER_CRITICAL(); + { + /* Reference the command being registered from the newly created + list item. */ + pxNewListItem->pxCommandLineDefinition = pxCommandToRegister; + + /* The new list item will get added to the end of the list, so + pxNext has nowhere to point. */ + pxNewListItem->pxNext = NULL; + + /* Add the newly created list item to the end of the already existing + list. */ + pxLastCommandInList->pxNext = pxNewListItem; + + /* Set the end of list marker to the new list item. */ + pxLastCommandInList = pxNewListItem; + } + taskEXIT_CRITICAL(); + + xReturn = pdPASS; + } + + return xReturn; +} +/*---------------------------------------------------------- */ + +BaseType_t FreeRTOS_CLIProcessCommand( const char * const pcCommandInput, char * pcWriteBuffer, size_t xWriteBufferLen ) +{ +static const CLI_Definition_List_Item_t *pxCommand = NULL; +BaseType_t xReturn = pdTRUE; +const char *pcRegisteredCommandString; +size_t xCommandStringLength; + + /* Note: This function is not re-entrant. It must not be called from more + thank one task. */ + + if( pxCommand == NULL ) + { + /* Search for the command string in the list of registered commands. */ + for( pxCommand = &xRegisteredCommands; pxCommand != NULL; pxCommand = pxCommand->pxNext ) + { + pcRegisteredCommandString = pxCommand->pxCommandLineDefinition->pcCommand; + xCommandStringLength = strlen( pcRegisteredCommandString ); + + /* To ensure the string lengths match exactly, so as not to pick up + a sub-string of a longer command, check the byte after the expected + end of the string is either the end of the string or a space before + a parameter. */ + if( ( pcCommandInput[ xCommandStringLength ] == ' ' ) || ( pcCommandInput[ xCommandStringLength ] == 0x00 ) ) + { + if( strncmp( pcCommandInput, pcRegisteredCommandString, xCommandStringLength ) == 0 ) + { + /* The command has been found. Check it has the expected + number of parameters. If cExpectedNumberOfParameters is -1, + then there could be a variable number of parameters and no + check is made. */ + if( pxCommand->pxCommandLineDefinition->cExpectedNumberOfParameters >= 0 ) + { + if( prvGetNumberOfParameters( pcCommandInput ) != pxCommand->pxCommandLineDefinition->cExpectedNumberOfParameters ) + { + xReturn = pdFALSE; + } + } + + break; + } + } + } + } + + if( ( pxCommand != NULL ) && ( xReturn == pdFALSE ) ) + { + /* The command was found, but the number of parameters with the command + was incorrect. */ + strncpy( pcWriteBuffer, "Incorrect command parameter(s). Enter \"help\" to view a list of available commands.\r\n\r\n", xWriteBufferLen ); + pxCommand = NULL; + } + else if( pxCommand != NULL ) + { + /* Call the callback function that is registered to this command. */ + xReturn = pxCommand->pxCommandLineDefinition->pxCommandInterpreter( pcWriteBuffer, xWriteBufferLen, pcCommandInput ); + + /* If xReturn is pdFALSE, then no further strings will be returned + after this one, and pxCommand can be reset to NULL ready to search + for the next entered command. */ + if( xReturn == pdFALSE ) + { + pxCommand = NULL; + } + } + else + { + /* pxCommand was NULL, the command was not found. */ + strncpy( pcWriteBuffer, "Command not recognised. Enter 'help' to view a list of available commands.\r\n\r\n", xWriteBufferLen ); + xReturn = pdFALSE; + } + + return xReturn; +} +/*---------------------------------------------------------- */ + +char *FreeRTOS_CLIGetOutputBuffer( void ) +{ + return cOutputBuffer; +} +/*---------------------------------------------------------- */ + +const char *FreeRTOS_CLIGetParameter( const char *pcCommandString, UBaseType_t uxWantedParameter, BaseType_t *pxParameterStringLength ) +{ +UBaseType_t uxParametersFound = 0; +const char *pcReturn = NULL; + + *pxParameterStringLength = 0; + + while( uxParametersFound < uxWantedParameter ) + { + /* Index the character pointer past the current word. If this is the start + of the command string then the first word is the command itself. */ + while( ( ( *pcCommandString ) != 0x00 ) && ( ( *pcCommandString ) != ' ' ) ) + { + pcCommandString++; + } + + /* Find the start of the next string. */ + while( ( ( *pcCommandString ) != 0x00 ) && ( ( *pcCommandString ) == ' ' ) ) + { + pcCommandString++; + } + + /* Was a string found? */ + if( *pcCommandString != 0x00 ) + { + /* Is this the start of the required parameter? */ + uxParametersFound++; + + if( uxParametersFound == uxWantedParameter ) + { + /* How long is the parameter? */ + pcReturn = pcCommandString; + while( ( ( *pcCommandString ) != 0x00 ) && ( ( *pcCommandString ) != ' ' ) ) + { + ( *pxParameterStringLength )++; + pcCommandString++; + } + + if( *pxParameterStringLength == 0 ) + { + pcReturn = NULL; + } + + break; + } + } + else + { + break; + } + } + + return pcReturn; +} +/*---------------------------------------------------------- */ + +static BaseType_t prvHelpCommand( char *pcWriteBuffer, size_t xWriteBufferLen, const char *pcCommandString ) +{ +static const CLI_Definition_List_Item_t * pxCommand = NULL; +BaseType_t xReturn; + + ( void ) pcCommandString; + + if( pxCommand == NULL ) + { + /* Reset the pxCommand pointer back to the start of the list. */ + pxCommand = &xRegisteredCommands; + } + + /* Return the next command help string, before moving the pointer on to + the next command in the list. */ + strncpy( pcWriteBuffer, pxCommand->pxCommandLineDefinition->pcHelpString, xWriteBufferLen ); + pxCommand = pxCommand->pxNext; + + if( pxCommand == NULL ) + { + /* There are no more commands in the list, so there will be no more + strings to return after this one and pdFALSE should be returned. */ + xReturn = pdFALSE; + } + else + { + xReturn = pdTRUE; + } + + return xReturn; +} +/*---------------------------------------------------------- */ + +static int8_t prvGetNumberOfParameters( const char *pcCommandString ) +{ +int8_t cParameters = 0; +BaseType_t xLastCharacterWasSpace = pdFALSE; + + /* Count the number of space delimited words in pcCommandString. */ + while( *pcCommandString != 0x00 ) + { + if( ( *pcCommandString ) == ' ' ) + { + if( xLastCharacterWasSpace != pdTRUE ) + { + cParameters++; + xLastCharacterWasSpace = pdTRUE; + } + } + else + { + xLastCharacterWasSpace = pdFALSE; + } + + pcCommandString++; + } + + /* If the command string ended with spaces, then there will have been too + many parameters counted. */ + if( xLastCharacterWasSpace == pdTRUE ) + { + cParameters--; + } + + /* The value returned is one less than the number of space delimited words, + as the first word should be the command itself. */ + return cParameters; +} + diff --git a/User/component/freertos_cli.h b/User/component/freertos_cli.h new file mode 100644 index 0000000..b4c5c99 --- /dev/null +++ b/User/component/freertos_cli.h @@ -0,0 +1,109 @@ +/* + * FreeRTOS+CLI V1.0.4 + * Copyright (C) 2017 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" +#ifndef COMMAND_INTERPRETER_H +#define COMMAND_INTERPRETER_H + +/* This config should be defined in FreeRTOSConfig.h. But due to the limition of CubeMX I put it here. */ +#define configCOMMAND_INT_MAX_OUTPUT_SIZE 512 + +/* The prototype to which callback functions used to process command line +commands must comply. pcWriteBuffer is a buffer into which the output from +executing the command can be written, xWriteBufferLen is the length, in bytes of +the pcWriteBuffer buffer, and pcCommandString is the entire string as input by +the user (from which parameters can be extracted).*/ +typedef BaseType_t (*pdCOMMAND_LINE_CALLBACK)( char *pcWriteBuffer, size_t xWriteBufferLen, const char *pcCommandString ); + +/* The structure that defines command line commands. A command line command +should be defined by declaring a const structure of this type. */ +typedef struct xCOMMAND_LINE_INPUT +{ + const char * const pcCommand; /* The command that causes pxCommandInterpreter to be executed. For example "help". Must be all lower case. */ + const char * const pcHelpString; /* String that describes how to use the command. Should start with the command itself, and end with "\r\n". For example "help: Returns a list of all the commands\r\n". */ + const pdCOMMAND_LINE_CALLBACK pxCommandInterpreter; /* A pointer to the callback function that will return the output generated by the command. */ + int8_t cExpectedNumberOfParameters; /* Commands expect a fixed number of parameters, which may be zero. */ +} CLI_Command_Definition_t; + +/* For backward compatibility. */ +#define xCommandLineInput CLI_Command_Definition_t + +/* + * Register the command passed in using the pxCommandToRegister parameter. + * Registering a command adds the command to the list of commands that are + * handled by the command interpreter. Once a command has been registered it + * can be executed from the command line. + */ +BaseType_t FreeRTOS_CLIRegisterCommand( const CLI_Command_Definition_t * const pxCommandToRegister ); + +/* + * Runs the command interpreter for the command string "pcCommandInput". Any + * output generated by running the command will be placed into pcWriteBuffer. + * xWriteBufferLen must indicate the size, in bytes, of the buffer pointed to + * by pcWriteBuffer. + * + * FreeRTOS_CLIProcessCommand should be called repeatedly until it returns pdFALSE. + * + * pcCmdIntProcessCommand is not reentrant. It must not be called from more + * than one task - or at least - by more than one task at a time. + */ +BaseType_t FreeRTOS_CLIProcessCommand( const char * const pcCommandInput, char * pcWriteBuffer, size_t xWriteBufferLen ); + +/*---------------------------------------------------------- */ + +/* + * A buffer into which command outputs can be written is declared in the + * main command interpreter, rather than in the command console implementation, + * to allow application that provide access to the command console via multiple + * interfaces to share a buffer, and therefore save RAM. Note, however, that + * the command interpreter itself is not re-entrant, so only one command + * console interface can be used at any one time. For that reason, no attempt + * is made to provide any mutual exclusion mechanism on the output buffer. + * + * FreeRTOS_CLIGetOutputBuffer() returns the address of the output buffer. + */ +char *FreeRTOS_CLIGetOutputBuffer( void ); + +/* + * Return a pointer to the xParameterNumber'th word in pcCommandString. + */ +const char *FreeRTOS_CLIGetParameter( const char *pcCommandString, UBaseType_t uxWantedParameter, BaseType_t *pxParameterStringLength ); + +#endif /* COMMAND_INTERPRETER_H */ + + + + + + + + + + + + + diff --git a/User/component/keyStatusCheck.h b/User/component/keyStatusCheck.h index d5011c5..af48bd5 100644 --- a/User/component/keyStatusCheck.h +++ b/User/component/keyStatusCheck.h @@ -4,6 +4,9 @@ extern "C" { #endif +#include +#include +#include /* USER INCLUDE BEGIN */ /* USER INCLUDE END */ diff --git a/User/component/ui.c b/User/component/ui.c new file mode 100644 index 0000000..c3126bd --- /dev/null +++ b/User/component/ui.c @@ -0,0 +1,301 @@ +/* + UI相关命令 +*/ +#include "component/ui.h" + +#include + +/** + * @brief UI_绘制直线段 + * + * @param grapic_line 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param x_end 终点x坐标 + * @param y_end 终点y坐标 + * @return int8_t + */ +int8_t UI_DrawLine(UI_Ele_t *grapic_line, const char *name, uint8_t type_op, + uint8_t layer, uint8_t color, uint16_t width, + uint16_t x_start, uint16_t y_start, uint16_t x_end, + uint16_t y_end) { + if (grapic_line == NULL) return -1; + snprintf((char *)grapic_line->name, 2, "%s", name); + grapic_line->layer = layer; + grapic_line->type_op = type_op; + grapic_line->type_ele = 0; + grapic_line->color = color; + grapic_line->width = width; + grapic_line->x_start = x_start; + grapic_line->y_start = y_start; + grapic_line->x_end = x_end; + grapic_line->y_end = y_end; + return 0; +} + +/** + * @brief UI_绘制矩形 + * + * @param grapic_rectangle 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param x_end 对角顶点x坐标 + * @param y_end 对角顶点y坐标 + * @return int8_t + */ +int8_t UI_DrawRectangle(UI_Ele_t *grapic_rectangle, const char *name, + uint8_t type_op, uint8_t layer, uint8_t color, + uint16_t width, uint16_t x_start, uint16_t y_start, + uint16_t x_end, uint16_t y_end) { + if (grapic_rectangle == NULL) return -1; + snprintf((char *)grapic_rectangle->name, 2, "%s", name); + grapic_rectangle->type_op = type_op; + grapic_rectangle->type_ele = 1; + grapic_rectangle->layer = layer; + grapic_rectangle->color = color; + grapic_rectangle->width = width; + grapic_rectangle->x_start = x_start; + grapic_rectangle->y_start = y_start; + grapic_rectangle->x_end = x_end; + grapic_rectangle->y_end = y_end; + return 0; +} + +/** + * @brief UI_绘制正圆 + * + * @param grapic_cycle 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param width 线条宽度 + * @param x_center 圆心x坐标 + * @param y_center 圆心y坐标 + * @param radius 半径 + * @return int8_t + */ +int8_t UI_DrawCycle(UI_Ele_t *grapic_cycle, const char *name, uint8_t type_op, + uint8_t layer, uint8_t color, uint16_t width, + uint16_t x_center, uint16_t y_center, uint16_t radius) { + if (grapic_cycle == NULL) return -1; + snprintf((char *)grapic_cycle->name, 2, "%s", name); + grapic_cycle->type_op = type_op; + grapic_cycle->layer = layer; + grapic_cycle->type_ele = 2; + grapic_cycle->color = color; + grapic_cycle->width = width; + grapic_cycle->x_start = x_center; + grapic_cycle->y_start = y_center; + grapic_cycle->radius = radius; + return 0; +} + +/** + * @brief UI_绘制椭圆 + * + * @param grapic_oval 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param width 线条宽度 + * @param x_center 圆心x坐标 + * @param y_center 圆心y坐标 + * @param x_semiaxis x半轴长度 + * @param y_semiaxis y半轴长度 + * @return int8_t + */ +int8_t UI_DrawOval(UI_Ele_t *grapic_oval, const char *name, uint8_t type_op, + uint8_t layer, uint8_t color, uint16_t width, + uint16_t x_center, uint16_t y_center, uint16_t x_semiaxis, + uint16_t y_semiaxis) { + if (grapic_oval == NULL) return -1; + snprintf((char *)grapic_oval->name, 2, "%s", name); + grapic_oval->type_op = type_op; + grapic_oval->type_ele = 3; + grapic_oval->layer = layer; + grapic_oval->color = color; + grapic_oval->width = width; + grapic_oval->x_start = x_center; + grapic_oval->y_start = y_center; + grapic_oval->x_end = x_semiaxis; + grapic_oval->y_end = y_semiaxis; + return 0; +} + +/** + * @brief UI_绘制圆弧 + * + * @param grapic_arc 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param angle_start 起始角度 + * @param angle_end 终止角度 + * @param width 线条宽度 + * @param x_center 圆心x坐标 + * @param y_center 圆心y坐标 + * @param x_semiaxis x半轴长度 + * @param y_semiaxis y半轴长度 + * @return int8_t + */ +int8_t UI_DrawArc(UI_Ele_t *grapic_arc, const char *name, uint8_t type_op, + uint8_t layer, uint8_t color, uint16_t angle_start, + uint16_t angle_end, uint16_t width, uint16_t x_center, + uint16_t y_center, uint16_t x_semiaxis, uint16_t y_semiaxis) { + if (grapic_arc == NULL) return -1; + snprintf((char *)grapic_arc->name, 2, "%s", name); + grapic_arc->type_op = type_op; + grapic_arc->type_ele = 4; + grapic_arc->layer = layer; + grapic_arc->color = color; + grapic_arc->angle_start = angle_start; + grapic_arc->angle_end = angle_end; + grapic_arc->width = width; + grapic_arc->x_start = x_center; + grapic_arc->y_start = y_center; + grapic_arc->x_end = x_semiaxis; + grapic_arc->y_end = y_semiaxis; + return 0; +} + +/** + * @brief UI_绘制浮点数 + * + * @param grapic_float 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param font_size 字体大小 + * @param digits 小数点后有效位数 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param float_high 32位浮点数 + * @param float_middle 32位浮点数 + * @param float_low 32位浮点数 + * @return int8_t + */ +int8_t UI_DrawFloating(UI_Ele_t *grapic_floating, const char *name, + uint8_t type_op, uint8_t layer, uint8_t color, + uint16_t font_size, uint16_t digits, uint16_t width, + uint16_t x_start, uint16_t y_start, uint16_t float_high, + uint16_t float_middle, uint16_t float_low) { + if (grapic_floating == NULL) return -1; + snprintf((char *)grapic_floating->name, 2, "%s", name); + grapic_floating->type_op = type_op; + grapic_floating->type_ele = 5; + grapic_floating->layer = layer; + grapic_floating->color = color; + grapic_floating->angle_start = font_size; + grapic_floating->angle_end = digits; + grapic_floating->width = width; + grapic_floating->x_start = x_start; + grapic_floating->y_start = y_start; + grapic_floating->radius = float_high; + grapic_floating->x_end = float_middle; + grapic_floating->y_end = float_low; + return 0; +} + +/** + * @brief UI_绘制整型数 + * + * @param grapic_integer 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param font_size 字体大小 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param int32_t_high 32位整型数 + * @param int32_t_middle 32位整型数 + * @param int32_t_low 32位整型数 + * @return int8_t + */ +int8_t UI_DrawInteger(UI_Ele_t *grapic_integer, const char *name, + uint8_t type_op, uint8_t layer, uint8_t color, + uint16_t font_size, uint16_t width, uint16_t x_start, + uint16_t y_start, uint16_t int32_t_high, + uint16_t int32_t_middle, uint16_t int32_t_low) { + if (grapic_integer == NULL) return -1; + snprintf((char *)grapic_integer->name, 2, "%s", name); + grapic_integer->type_op = type_op; + grapic_integer->type_ele = 6; + grapic_integer->layer = layer; + grapic_integer->color = color; + grapic_integer->angle_start = font_size; + grapic_integer->width = width; + grapic_integer->x_start = x_start; + grapic_integer->y_start = y_start; + grapic_integer->radius = int32_t_high; + grapic_integer->x_end = int32_t_middle; + grapic_integer->y_end = int32_t_low; + return 0; +} + +/** + * @brief UI_绘制字符 + * + * @param grapic_character 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param font_size 字体大小 + * @param length 字符长度 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param character 字符串首地址 + * @return int8_t + */ +int8_t UI_DrawCharacter(UI_Drawcharacter_t *grapic_character, const char *name, + uint8_t type_op, uint8_t layer, uint8_t color, + uint16_t font_size, uint16_t length, uint16_t width, + uint16_t x_start, uint16_t y_start, + const char *character) { + if (grapic_character == NULL) return -1; + snprintf((char *)grapic_character->grapic.name, 2, "%s", name); + grapic_character->grapic.type_op = type_op; + grapic_character->grapic.type_ele = 7; + grapic_character->grapic.layer = layer; + grapic_character->grapic.color = color; + grapic_character->grapic.angle_start = font_size; + grapic_character->grapic.angle_end = length; + grapic_character->grapic.width = width; + grapic_character->grapic.x_start = x_start; + grapic_character->grapic.y_start = y_start; + snprintf((char *)grapic_character->character, 29, "%s", character); + return 0; +} + +/** + * @brief UI_删除图层 + * + * @param del 结构体 + * @param opt 操作 + * @param layer 图层 + * @return int8_t + */ +int8_t UI_DelLayer(UI_Del_t *del, uint8_t opt, uint8_t layer) { + if (del == NULL) return -1; + del->del_operation = opt; + del->layer = layer; + return 0; +} \ No newline at end of file diff --git a/User/component/ui.h b/User/component/ui.h new file mode 100644 index 0000000..4f742d3 --- /dev/null +++ b/User/component/ui.h @@ -0,0 +1,284 @@ +/* + UI相关命令 +*/ + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include + +#include "component/user_math.h" + +/* USER INCLUDE BEGIN */ + +/* USER INCLUDE END */ + +#define UI_DEL_OPERATION_NOTHING (0) +#define UI_DEL_OPERATION_DEL (1) +#define UI_DEL_OPERATION_DEL_ALL (2) + +#define UI_GRAPIC_OPERATION_NOTHING (0) +#define UI_GRAPIC_OPERATION_ADD (1) +#define UI_GRAPIC_OPERATION_REWRITE (2) +#define UI_GRAPIC_OPERATION_DEL (3) + +#define UI_GRAPIC_LAYER_CONST (0) +#define UI_GRAPIC_LAYER_AUTOAIM (1) +#define UI_GRAPIC_LAYER_CHASSIS (2) +#define UI_GRAPIC_LAYER_CAP (3) +#define UI_GRAPIC_LAYER_GIMBAL (4) +#define UI_GRAPIC_LAYER_SHOOT (5) +#define UI_GRAPIC_LAYER_CMD (6) + +#define UI_DEFAULT_WIDTH (0x01) + +/* USER DEFINE BEGIN */ + +/* USER DEFINE END */ +#define UI_CHAR_DEFAULT_WIDTH (0x02) + +typedef enum { + RED_BLUE, + YELLOW, + GREEN, + ORANGE, + PURPLISH_RED, + PINK, + CYAN, + BLACK, + WHITE +} UI_Color_t; + +typedef struct __packed { + uint8_t op; + uint8_t num_layer; +} UI_InterStudent_UIDel_t; + +typedef struct __packed { + uint8_t name[3]; + uint8_t type_op : 3; + uint8_t type_ele : 3; + uint8_t layer : 4; + uint8_t color : 4; + uint16_t angle_start : 9; + uint16_t angle_end : 9; + uint16_t width : 10; + uint16_t x_start : 11; + uint16_t y_start : 11; + uint16_t radius : 10; + uint16_t x_end : 11; + uint16_t y_end : 11; +} UI_Ele_t; + +typedef struct __packed { + UI_Ele_t grapic; +} UI_Drawgrapic_1_t; + +typedef struct __packed { + UI_Ele_t grapic[2]; +} UI_Drawgrapic_2_t; + +typedef struct __packed { + UI_Ele_t grapic[5]; +} UI_Drawgrapic_5_t; + +typedef struct __packed { + UI_Ele_t grapic[7]; +} UI_Drawgrapic_7_t; + +typedef struct __packed { + UI_Ele_t grapic; + uint8_t character[30]; +} UI_Drawcharacter_t; + +typedef struct __packed { + uint8_t del_operation; + uint8_t layer; +} UI_Del_t; + +/** + * @brief UI_绘制直线段 + * + * @param grapic_line 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param x_end 终点x坐标 + * @param y_end 终点y坐标 + * @return int8_t + */ +int8_t UI_DrawLine(UI_Ele_t *grapic_line, const char *name, uint8_t type_op, + uint8_t layer, uint8_t color, uint16_t width, + uint16_t x_start, uint16_t y_start, uint16_t x_end, + uint16_t y_end); + +/** + * @brief UI_绘制矩形 + * + * @param grapic_rectangle 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param x_end 对角顶点x坐标 + * @param y_end 对角顶点y坐标 + * @return int8_t + */ +int8_t UI_DrawRectangle(UI_Ele_t *grapic_rectangle, const char *name, + uint8_t type_op, uint8_t layer, uint8_t color, + uint16_t width, uint16_t x_start, uint16_t y_start, + uint16_t x_end, uint16_t y_end); + +/** + * @brief UI_绘制正圆 + * + * @param grapic_cycle 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param width 线条宽度 + * @param x_center 圆心x坐标 + * @param y_center 圆心y坐标 + * @param radius 半径 + * @return int8_t + */ +int8_t UI_DrawCycle(UI_Ele_t *grapic_cycle, const char *name, uint8_t type_op, + uint8_t layer, uint8_t color, uint16_t width, + uint16_t x_center, uint16_t y_center, uint16_t radius); + +/** + * @brief UI_绘制椭圆 + * + * @param grapic_oval 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param width 线条宽度 + * @param x_center 圆心x坐标 + * @param y_center 圆心y坐标 + * @param x_semiaxis x半轴长度 + * @param y_semiaxis y半轴长度 + * @return int8_t + */ +int8_t UI_DrawOval(UI_Ele_t *grapic_oval, const char *name, uint8_t type_op, + uint8_t layer, uint8_t color, uint16_t width, + uint16_t x_center, uint16_t y_center, uint16_t x_semiaxis, + uint16_t y_semiaxis); + +/** + * @brief UI_绘制圆弧 + * + * @param grapic_arc 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param angle_start 起始角度 + * @param angle_end 终止角度 + * @param width 线条宽度 + * @param x_center 圆心x坐标 + * @param y_center 圆心y坐标 + * @param x_semiaxis x半轴长度 + * @param y_semiaxis y半轴长度 + * @return int8_t + */ +int8_t UI_DrawArc(UI_Ele_t *grapic_arc, const char *name, uint8_t type_op, + uint8_t layer, uint8_t color, uint16_t angle_start, + uint16_t angle_end, uint16_t width, uint16_t x_center, + uint16_t y_center, uint16_t x_semiaxis, uint16_t y_semiaxis); + +/** + * @brief UI_绘制浮点数 + * + * @param grapic_float 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param font_size 字体大小 + * @param digits 小数点后有效位数 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param float_high 32位浮点数 + * @param float_middle 32位浮点数 + * @param float_low 32位浮点数 + * @return int8_t + */ +int8_t UI_DrawFloating(UI_Ele_t *grapic_floating, const char *name, + uint8_t type_op, uint8_t layer, uint8_t color, + uint16_t font_size, uint16_t digits, uint16_t width, + uint16_t x_start, uint16_t y_start, uint16_t float_high, + uint16_t float_middle, uint16_t float_low); + +/** + * @brief UI_绘制整型数 + * + * @param grapic_integer 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param font_size 字体大小 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param int32_t_high 32位整型数 + * @param int32_t_middle 32位整型数 + * @param int32_t_low 32位整型数 + * @return int8_t + */ +int8_t UI_DrawInteger(UI_Ele_t *grapic_integer, const char *name, + uint8_t type_op, uint8_t layer, uint8_t color, + uint16_t font_size, uint16_t width, uint16_t x_start, + uint16_t y_start, uint16_t int32_t_high, + uint16_t int32_t_middle, uint16_t int32_t_low); + +/** + * @brief UI_绘制字符 + * + * @param grapic_character 结构体 + * @param name 图形名首地址 + * @param type_op 操作类型 + * @param layer 图层数 + * @param color 颜色 + * @param font_size 字体大小 + * @param length 字符长度 + * @param width 线条宽度 + * @param x_start 起点x坐标 + * @param y_start 起点y坐标 + * @param character 字符串首地址 + * @return int8_t + */ +int8_t UI_DrawCharacter(UI_Drawcharacter_t *grapic_character, const char *name, + uint8_t type_op, uint8_t layer, uint8_t color, + uint16_t font_size, uint16_t length, uint16_t width, + uint16_t x_start, uint16_t y_start, + const char *character); + +/** + * @brief UI_删除图层 + * + * @param del 结构体 + * @param opt 操作 + * @param layer 图层 + * @return int8_t + */ +int8_t UI_DelLayer(UI_Del_t *del, uint8_t opt, uint8_t layer); + +#ifdef __cplusplus +} +#endif \ No newline at end of file diff --git a/User/device/sx1281_driver/sx1281.c b/User/device/sx1281_driver/sx1281.c index f588a7a..80b9377 100644 --- a/User/device/sx1281_driver/sx1281.c +++ b/User/device/sx1281_driver/sx1281.c @@ -526,19 +526,22 @@ void SetBLEAdvertisingPacket(SX1281_t *radio, uint8_t *data, uint8_t length) { } -int8_t SX1281_SetRXSingle(void) { +int8_t SX1281_SetRXSingle(SX1281_t *radio) { + radio->appMode=APPMODE_RXSINGLE; Radio.SetDioIrqParams( RxIrqMask, RxIrqMask, IRQ_RADIO_NONE, IRQ_RADIO_NONE ); Radio.SetRx( ( TickTime_t ) { RX_TIMEOUT_TICK_SIZE, RX_TIMEOUT_VALUE } ); return DEVICE_OK; } -int8_t SX1281_SetRXSuccessive(void) { +int8_t SX1281_SetRXSuccessive(SX1281_t *radio) { + radio->appMode=APPMODE_RXSUCCESSIVE; Radio.SetDioIrqParams( RxIrqMask, RxIrqMask, IRQ_RADIO_NONE, IRQ_RADIO_NONE ); Radio.SetRx( ( TickTime_t ) { RX_TIMEOUT_TICK_SIZE, 0xFFFF } ); return DEVICE_OK; } -int8_t SX1281_SetTX (uint8_t *data,uint8_t datalength) { +int8_t SX1281_SetTX (SX1281_t *radio,uint8_t *data,uint8_t datalength) { + radio->appMode=APPMODE_TX; Radio.SetDioIrqParams( TxIrqMask, TxIrqMask, IRQ_RADIO_NONE, IRQ_RADIO_NONE ); Radio.SendPayload(data,datalength, ( TickTime_t ){ RX_TIMEOUT_TICK_SIZE, TX_TIMEOUT_VALUE }); return DEVICE_OK; @@ -726,7 +729,7 @@ int8_t SX1281_GetState(SX1281_t *radio) { int8_t SX1281_Running(SX1281_t *radio) { SX1281ProcessIrqs(); SX1281_GetState(radio); - HAL_Delay(5); +// HAL_Delay(5); return DEVICE_OK; } @@ -761,7 +764,7 @@ __attribute__((weak)) int8_t SX1281_Callback(SX1281_States_t source) { /* 打印状态 */ printf( "<>>>>>>>>OnRxErr" ); #endif - Radio.SetRx( ( TickTime_t ) { RX_TIMEOUT_TICK_SIZE, RX_TIMEOUT_VALUE } ); +// SX1281_SetRXSuccessive(&radio); break; case TX_DONE: @@ -769,7 +772,7 @@ __attribute__((weak)) int8_t SX1281_Callback(SX1281_States_t source) { /* 打印状态 */ printf( "<>>>>>>>>OnTxDone" ); #endif - SX1281_SetTX((uint8_t*)"hello", 5); +// SX1281_SetTX(&radio,(uint8_t*)"hello", 5); break; case TX_TIMEOUT: @@ -777,8 +780,7 @@ __attribute__((weak)) int8_t SX1281_Callback(SX1281_States_t source) { /* 打印状态 */ printf( "<>>>>>>>>OnTxTimeout" ); #endif - Radio.SetDioIrqParams( TxIrqMask, TxIrqMask, IRQ_RADIO_NONE, IRQ_RADIO_NONE ); - Radio.SendPayload((uint8_t*)"hello",5, ( TickTime_t ){ RX_TIMEOUT_TICK_SIZE, TX_TIMEOUT_VALUE }); +// SX1281_SetTX(&radio,(uint8_t*)"hello", 5); break; diff --git a/User/device/sx1281_driver/sx1281.h b/User/device/sx1281_driver/sx1281.h index c9babe5..d856ecc 100644 --- a/User/device/sx1281_driver/sx1281.h +++ b/User/device/sx1281_driver/sx1281.h @@ -28,7 +28,8 @@ extern "C" { typedef enum { APPMODE_SLEEP, APPMODE_TX, - APPMODE_RX + APPMODE_RXSINGLE, + APPMODE_RXSUCCESSIVE }SX1281_AppMode_t; typedef enum { @@ -141,9 +142,9 @@ typedef struct { int8_t SX1281_Init(SX1281_t *radio, SX1281_RadioMode_t mode); int8_t SX1281_SetMode(SX1281_t *radio, SX1281_RadioMode_t mode); -int8_t SX1281_SetRXSingle(void); -int8_t SX1281_SetRXSuccessive(void); -int8_t SX1281_SetTX (uint8_t *data,uint8_t data_length); +int8_t SX1281_SetRXSingle(SX1281_t *radio); +int8_t SX1281_SetRXSuccessive(SX1281_t *radio); +int8_t SX1281_SetTX (SX1281_t *radio,uint8_t *data,uint8_t data_length); int8_t SX1281_Running(SX1281_t *radio); int8_t SX1281_SetRFFrequency(SX1281_t *radio, uint32_t frequency); diff --git a/User/extension/ms.c b/User/extension/ms.c deleted file mode 100644 index 93b0daa..0000000 --- a/User/extension/ms.c +++ /dev/null @@ -1,1110 +0,0 @@ -#include "ms.h" - -#define SHELL_VERSION "1.0.6" - -static const char INIT_MESSAGE[] = - " __ __ _ _ ___ _ _ _ \r\n" - "| \\/ (_)_ _ (_) __| |_ ___| | |\r\n" - "| |\\/| | | ' \\| \\__ \\ ' \\/ -_) | |\r\n" - "|_| |_|_|_||_|_|___/_||_\\___|_|_|\r\n" - "Build:"__DATE__ - " "__TIME__ - "\r\n" - "version:" SHELL_VERSION "\r\n"; - -static const char CLEAR_ALL[] = "\033[2J\033[1H"; -static const char CLEAR_LINE[] = "\033[2K\r"; -static const char CLEAR_BEHIND[] = "\033[K"; -static const char KEY_RIGHT[] = "\033[C"; -static const char KEY_LEFT[] = "\033[D"; -static const char KEY_SAVE[] = "\033[s"; -static const char KEY_LOAD[] = "\033[u"; - -#define MS_HISTORY_NULL (0X100) - -ms_t ms; - -static void err_arg_num() { - ms_printf("ERROR: Invalid number of arguments."); - ms_enter(); -} - -static void err_file_write() { - ms_printf("ERROR: File not writable."); - ms_enter(); -} - -static void err_file_read() { - ms_printf("ERROR: File not readable."); - ms_enter(); -} - -static void err_file_found(const char* name) { - if (*name == '\0') { - ms_printf("ERROR: File not found.", name); - } else { - ms_printf("ERROR: File '%s' not found.", name); - } - ms_enter(); -} - -static void err_file_exec() { - ms_printf("File not executable."); - ms_enter(); -} - -static void err_dir_found(const char* name) { - if (*name == '\0') { - ms_printf("ERROR: Directory not found.", name); - } else { - ms_printf("ERROR: Directory '%s' not found.", name); - } - ms_enter(); -} - -static char* remove_path(char* cmd) { - char* cmd_name_index = strrchr(cmd, '/'); - if (!cmd_name_index) { - return cmd; - } - - if (*(cmd_name_index + 1) != '\0') { - *cmd_name_index = '\0'; - } - - return cmd_name_index + 1; -} - -static ms_item_t* path_to_dir(char* path) { - size_t dir_name_len = strlen(path); - ms_item_t* target = ms.ctrl.cur_dir; - - if (dir_name_len == 0) { - return target; - } - - if (path[0] == '/') { - target = &ms.sys_file.root_dir; - path++; - dir_name_len--; - if (dir_name_len == 0) { - return target; - } - } else if (path[dir_name_len - 1] == '/') { - path[dir_name_len - 1] = '\0'; - dir_name_len--; - } - - size_t index = 0; - - for (size_t i = 0; i < dir_name_len + 1; i++) { - if (path[i] != '/' && path[i] != '\0') { - continue; - } - - path[i] = '\0'; - - if (strcmp("..", path + index) == 0) { - if (target != &ms.sys_file.root_dir) { - target = target->father; - } - index = i + 1; - path[i] = '/'; - continue; - } - - if (strcmp(".", path + index) == 0) { - index = i + 1; - path[i] = '/'; - continue; - } - - om_list_head_t* pos = NULL; - - bool found = false; - - om_list_for_each(pos, &target->data.as_dir.list) { - ms_item_t* item = om_list_entry(pos, ms_item_t, self); - - if (item->mode == MS_MODE_DIR && strcmp(path + index, item->name) == 0) { - target = item; - index = i + 1; - found = true; - path[i] = '/'; - break; - } - } - - if (found) { - continue; - } - - return NULL; - } - - return target; -} - -static ms_item_t* path_to_file(char* raw) { - char* cmd_name = remove_path(raw); - - ms_item_t* search_dir = NULL; - bool search_bin = false; - - if (cmd_name == raw) { - search_dir = ms.ctrl.cur_dir; - if (ms.ctrl.cur_dir != &ms.sys_file.bin_dir) { - search_bin = true; - } - } else if (!(search_dir = path_to_dir(raw))) { - err_dir_found(raw); - return NULL; - } - - om_list_head_t* pos = NULL; - - om_list_for_each(pos, &search_dir->data.as_dir.list) { - ms_item_t* item = om_list_entry(pos, ms_item_t, self); - if (item->mode != MS_MODE_DIR && strcmp(cmd_name, item->name) == 0) { - return item; - } - } - - if (search_bin) { - om_list_for_each(pos, &ms.sys_file.bin_dir.data.as_dir.list) { - ms_item_t* item = om_list_entry(pos, ms_item_t, self); - if (item->mode != MS_MODE_DIR && strcmp(cmd_name, item->name) == 0) { - return item; - } - } - } - - err_file_found(raw); - - return NULL; -} - -#if MS_CMD_PWD -static void pwd_fun_fn(ms_item_t* item) { - if (item == &ms.sys_file.root_dir) { - return; - } - - if (item->father) { - pwd_fun_fn(item->father); - } - ms_printf("/%s", item->name); -} - -static int pwd_fun(ms_item_t* item, int argc, char* argv[]) { - OM_UNUSED(argc); - OM_UNUSED(argv); - OM_UNUSED(item); - - if (ms.ctrl.cur_dir == &ms.sys_file.root_dir) { - ms.write("/", 1); - } else { - pwd_fun_fn(ms.ctrl.cur_dir); - } - ms_enter(); - return 0; -} -#endif - -#if MS_CMD_LS -static int ls_fun(ms_item_t* _item, int argc, char* argv[]) { - OM_UNUSED(_item); - - ms_item_t* item = NULL; - if (argc == 1) { - item = ms.ctrl.cur_dir; - } else if (argc == 2) { - item = path_to_dir(argv[1]); - if (!item) { - err_dir_found(argv[1]); - return -1; - } - } - - om_list_head_t* pos = NULL; - om_list_for_each(pos, &item->data.as_dir.list) { - ms_item_t* item = om_list_entry(pos, ms_item_t, self); - - switch (item->mode) { - case MS_MODE_DIR: - ms_printf("d--- %-15s", item->name); - break; - case MS_MODE_FILE: { - if (item->data.as_file.data) { - ms_printf( - "f%c%c%c %-15s size %d", item->data.as_file.run ? 'x' : '-', - item->data.as_file.data ? 'r' : '-', - item->data.as_file.data && item->data.as_file.writeable ? 'w' - : '-', - item->name, item->data.as_file.size); - break; - } else { - ms_printf("f%c-- %-15s", item->data.as_file.run ? 'x' : '-', - item->name, item->data.as_file.size); - break; - } - } - case MS_MODE_DEV: - ms_printf("c-%c%c %-15s", item->data.as_device.read ? 'r' : '-', - item->data.as_device.write ? 'w' : '-', item->name); - break; - } - - ms_enter(); - } - - return 0; -} -#endif - -#if MS_CMD_LS -static int cd_fun(ms_item_t* item, int argc, char* argv[]) { - OM_UNUSED(item); - - if (argc == 1) { - ms.ctrl.cur_dir = &ms.sys_file.user_home_dir; - return 0; - } - - if (argc != 2) { - err_arg_num(); - return -1; - }; - - ms_item_t* dir = path_to_dir(argv[1]); - - if (dir) { - ms.ctrl.cur_dir = dir; - return 0; - } else { - err_dir_found(argv[1]); - return -1; - } -} -#endif - -#if MS_CMD_CAT -static int cat_fun(ms_item_t* _item, int argc, char* argv[]) { - OM_UNUSED(_item); - - if (argc != 2) { - err_arg_num(); - return -1; - }; - - ms_item_t* item = path_to_file(argv[1]); - - if (!item) { - return -1; - } - - switch (item->mode) { - case MS_MODE_FILE: { - if (!item->data.as_file.data) { - err_file_read(); - return -1; - } - - size_t count = strnlen(item->data.as_file.data, item->data.as_file.size); - - ms.write(item->data.as_file.data, count); - - ms_enter(); - break; - } - - case MS_MODE_DEV: - if (!item->data.as_device.read) { - err_file_read(); - return -1; - } - - int count = 0; - - while (1) { - count = - item->data.as_device.read(item, ms.buff.cat_buff, MS_CAT_BUFF_SIZE); - - if (count <= 0) { - return -1; - } - - ms.write(ms.buff.cat_buff, count); - - if (count != MS_CAT_BUFF_SIZE) { - break; - } - } - break; - default: - return -1; - } - - return 0; -} -#endif - -#if MS_CMD_ECHO -static int echo_fun(ms_item_t* item, int argc, char* argv[]) { - OM_UNUSED(item); - - if (argc == 2) { - ms_printf("%s", argv[1]); - ms_enter(); - return 0; - } else if (argc == 4) { - if (strcmp(argv[2], ">") != 0) { - err_arg_num(); - return -1; - } - - ms_item_t* item = path_to_file(argv[3]); - - if (!item) { - return -1; - } - - switch (item->mode) { - case MS_MODE_FILE: { - if ((!item->data.as_file.data) || (!item->data.as_file.writeable)) { - err_file_write(); - return -1; - } - - size_t count = strnlen(argv[1], MS_MAX_CMD_LENGTH) + 1; - - if (count > item->data.as_file.size) { - count = item->data.as_file.size; - } - - memcpy(item->data.as_file.data, argv[1], count); - break; - } - - case MS_MODE_DEV: { - if (!item->data.as_device.write) { - err_file_write(); - return -1; - } - - size_t count = strnlen(argv[1], MS_MAX_CMD_LENGTH) + 1; - - item->data.as_device.write(item, argv[1], count); - - break; - } - default: - return -1; - } - - return 0; - } else { - err_arg_num(); - return -1; - } -} -#endif - -#if MS_CMD_CLEAR -static int clear_fun(ms_item_t* item, int argc, char* argv[]) { - OM_UNUSED(argc); - OM_UNUSED(argv); - OM_UNUSED(item); - - ms_clear(); - - return 0; -} -#endif - -#if MS_FILE_TTY -static int tty_read_fun(ms_item_t* item, void* data, size_t count) { - OM_UNUSED(item); - OM_UNUSED(data); - OM_UNUSED(count); - ms.write(ms.buff.read_buff, ms.ctrl.index + 1); - return 0; -} - -static int tty_write_fun(ms_item_t* item, const void* data, size_t count) { - OM_UNUSED(item); - - ms.write(data, count); - - return (int)count; -} -#endif - -void ms_enter() { ms.write("\r\n", sizeof("\r\n")); } - -static void ms_reset() { - ms.ctrl.index = 0; - ms.ctrl.offset = 0; - ms.ctrl.ansi = 0; -} - -void ms_printf(const char* format, ...) { - va_list v_arg_list; - va_start(v_arg_list, format); - (void)vsnprintf(ms.buff.write_buff, sizeof(ms.buff.write_buff), format, - v_arg_list); - va_end(v_arg_list); - ms.write(ms.buff.write_buff, strlen(ms.buff.write_buff)); -} - -void ms_printf_insert(const char* format, ...) { - va_list v_arg_list; - va_start(v_arg_list, format); - (void)vsnprintf(ms.buff.write_buff, sizeof(ms.buff.write_buff), format, - v_arg_list); - va_end(v_arg_list); - - ms.write(CLEAR_LINE, sizeof(CLEAR_LINE)); - ms.write(ms.buff.write_buff, strlen(ms.buff.write_buff)); - ms_show_head(); - ms_printf("%s", ms.buff.read_buff); -} - -void ms_dir_init(ms_item_t* dir, const char* name) { - dir->mode = MS_MODE_DIR; - dir->name = name; - _OM_INIT_LIST_HEAD(&dir->data.as_dir.list); -} - -void ms_file_init(ms_item_t* file, const char* name, ms_cmd_fun_t run_fun, - void* data, size_t size, bool writeable) { - file->mode = MS_MODE_FILE; - file->name = name; - file->data.as_file.data = data; - file->data.as_file.size = size; - file->data.as_file.writeable = writeable; - file->data.as_file.run = run_fun; -} - -void ms_dev_init(ms_item_t* file, const char* name, ms_write_fun_t write_fun, - ms_read_fun_t read_fun) { - file->mode = MS_MODE_DEV; - file->name = name; - file->data.as_device.read = read_fun; - file->data.as_device.write = write_fun; -} - -void ms_item_add(ms_item_t* item, ms_item_t* parent_dir) { - om_list_add(&item->self, &parent_dir->data.as_dir.list); - item->father = parent_dir; -} - -void ms_cmd_add(ms_item_t* cmd) { ms_item_add(cmd, &ms.sys_file.bin_dir); } - -static ms_item_t* ms_search_cmd(char* cmd) { - ms_item_t* item = path_to_file(cmd); - - if (item) { - if (item->data.as_file.run) { - return item; - } else { - err_file_exec(); - return NULL; - } - } - - return NULL; -} - -static char* remove_space(char* cmd) { - while (ms.ctrl.index > 0 && ms.buff.read_buff[ms.ctrl.index - 1] == ' ') { - ms.ctrl.index--; - ms.buff.read_buff[ms.ctrl.index] = '\0'; - } - - while (*cmd == ' ') { - cmd++; - } - - return cmd; -} - -static void ms_prase_cmd(const char* cmd) { - if (ms.ctrl.index == 0) { - return; - } - - uint8_t arg_num = 0; - ms.buff.arg_map[0] = ms.buff.prase_buff; - - strncpy(ms.buff.prase_buff, cmd, MS_MAX_CMD_LENGTH); - - for (uint16_t i = 0; ms.buff.prase_buff[i] != '\0'; i++) { - if (ms.buff.prase_buff[i] == ' ') { - ms.buff.prase_buff[i] = '\0'; - if (ms.buff.prase_buff[i + 1] != ' ') { - arg_num++; - ms.buff.arg_map[arg_num] = ms.buff.prase_buff + i + 1; - } - } - - if (arg_num == MS_MAX_ARG_NUM) { - break; - } - } - - ms_item_t* item = ms_search_cmd(ms.buff.prase_buff); - - if (item) { - item->data.as_file.run(item, arg_num + 1, ms.buff.arg_map); - } -} - -void ms_show_head() { - if (ms.ctrl.cur_dir == &ms.sys_file.user_home_dir) { - ms_printf("%s%s@%s:%s$\e[00m ", MS_HEAD_COLOR, MS_USER_NAME, MS_OS_NAME, - "~"); - } else { - ms_printf("%s%s@%s:%s$\e[00m ", MS_HEAD_COLOR, MS_USER_NAME, MS_OS_NAME, - ms.ctrl.cur_dir->name); - } -} - -static void ms_add_history() { - ms.history.index = MS_HISTORY_NULL; - strcpy(ms.buff.history_buff[ms.history.last++ % MS_MAX_HISTORY_NUM], - ms.buff.read_buff); - ms.history.last %= MS_MAX_HISTORY_NUM; - ms.history.num++; - if (ms.history.num >= MS_MAX_HISTORY_NUM) { - ms.history.num = MS_MAX_HISTORY_NUM; - } -} - -static void ms_apply_history(uint16_t num) { - ms_clear_line(); - ms_show_head(); - ms.history.index = (int16_t)num; - ms.ctrl.index = strlen(ms.buff.history_buff[num]); - strcpy(ms.buff.read_buff, ms.buff.history_buff[num]); - ms.write(ms.buff.read_buff, ms.ctrl.index); -} - -static uint16_t ms_get_next_history() { - if (ms.history.index == MS_HISTORY_NULL) { - if (ms.history.num > 0) { - return (ms.history.last + MS_MAX_HISTORY_NUM - 1) % MS_MAX_HISTORY_NUM; - } else { - return MS_HISTORY_NULL; - } - } else if (ms.history.num == MS_MAX_HISTORY_NUM) { - if (ms.history.index != ms.history.last) { - return (ms.history.index + MS_MAX_HISTORY_NUM - 1) % MS_MAX_HISTORY_NUM; - } else { - return MS_HISTORY_NULL; - } - } else { - if (ms.history.index != 0) { - return ms.history.index - 1; - } else { - return MS_HISTORY_NULL; - } - } -} - -static uint16_t ms_get_prev_history() { - if (ms.history.index == MS_MAX_HISTORY_NUM) { - return MS_HISTORY_NULL; - - } else if (ms.history.num == MS_MAX_HISTORY_NUM) { - if (ms.history.index != - ((ms.history.last + MS_MAX_HISTORY_NUM - 1) % MS_MAX_HISTORY_NUM)) { - return (ms.history.index + 1) % MS_MAX_HISTORY_NUM; - } else { - return MS_HISTORY_NULL; - } - } else { - if (ms.history.index != ms.history.last - 1) { - return ms.history.index + 1; - } else { - return MS_HISTORY_NULL; - } - } -} - -static void ms_key_up() { - uint16_t history = ms_get_next_history(); - - if (history != MS_HISTORY_NULL) { - ms_apply_history(history); - } -} - -static void ms_key_down() { - uint16_t history = ms_get_prev_history(); - - if (history != MS_HISTORY_NULL) { - ms_apply_history(history); - } else { - ms_clear_line(); - ms_show_head(); - } -} - -static void ms_key_left() { - if (ms.ctrl.index > 0) { - ms.ctrl.index--; - ms.ctrl.offset++; - ms_printf("%s", KEY_LEFT); - } -} - -static void ms_key_right() { - if (ms.ctrl.offset > 0) { - ms.ctrl.index++; - ms.ctrl.offset--; - ms_printf("%s", KEY_RIGHT); - } -} - -static void ms_prase_ansi(char data) { - switch (ms.ctrl.ansi) { - case 1: - if (isprint((unsigned char)data)) { - ms.ctrl.ansi++; - break; - } - ms.ctrl.ansi = 0; - break; - case 2: - switch (data) { - case 'A': - ms_key_up(); - break; - case 'B': - ms_key_down(); - break; - case 'C': - ms_key_right(); - break; - case 'D': - ms_key_left(); - break; - default: - break; - } - ms.ctrl.ansi = 0; - break; - default: - break; - } -} - -static void ms_delete() { - if (ms.ctrl.index > 0) { - ms_printf("\b \b"); - ms.ctrl.index--; - ms.buff.read_buff[ms.ctrl.index] = '\0'; - - if (ms.ctrl.offset) { - for (size_t i = 0; i < ms.ctrl.offset; i++) { - ms.buff.read_buff[ms.ctrl.index + i] = - ms.buff.read_buff[ms.ctrl.index + i + 1]; - } - ms.buff.read_buff[ms.ctrl.index + ms.ctrl.offset] = '\0'; - ms_printf("%s%s", KEY_SAVE, CLEAR_BEHIND); - ms.write(ms.buff.read_buff + ms.ctrl.index, ms.ctrl.offset); - ms_printf("%s", KEY_LOAD); - } - } -} - -static void ms_display_char(char data) { - if (ms.ctrl.index + ms.ctrl.offset < MS_MAX_CMD_LENGTH - 2) { - for (size_t i = ms.ctrl.offset; i > 0; i--) { - ms.buff.read_buff[ms.ctrl.index + i] = - ms.buff.read_buff[ms.ctrl.index + i - 1]; - } - - ms.write(&data, 1); - ms.buff.read_buff[ms.ctrl.index] = data; - ms.ctrl.index++; - if (ms.ctrl.offset) { - ms.buff.read_buff[ms.ctrl.index + ms.ctrl.offset] = '\0'; - ms_printf("%s%s", KEY_SAVE, CLEAR_BEHIND); - ms.write(ms.buff.read_buff + ms.ctrl.index, ms.ctrl.offset); - ms_printf("%s", KEY_LOAD); - } - } -} - -static void ms_tab_fn(ms_item_t* item, uint16_t counter) { - if (counter == 1) { - ms.ctrl.tab_tmp = item; - ms.ctrl.tab_same_len = 0; - return; - } - - if (counter == 2) { - ms_enter(); - ms_printf("%s", ms.ctrl.tab_tmp->name); - ms.ctrl.tab_same_len = strlen(ms.ctrl.tab_tmp->name) - 1; - } - - for (uint16_t i = 0; i <= ms.ctrl.tab_same_len; i++) { - if (ms.ctrl.tab_tmp->name[i] != item->name[i] || item->name[i] == '\0') { - ms.ctrl.tab_same_len = i; - ms.ctrl.tab_tmp = item; - } - } - - ms_enter(); - ms_printf("%s", item->name); -} - -static void ms_tab(char* cmd) { - while (*cmd == ' ') { - cmd++; - } - - strcpy(ms.buff.prase_buff, cmd); - - char* last_str = strrchr(ms.buff.prase_buff, ' '); - - if (!last_str) { - last_str = ms.buff.prase_buff; - } else { - last_str++; - } - - const char* name = remove_path(last_str); - - ms_item_t* search_dir = NULL; - bool search_bin = false; - - if (name == last_str) { - search_dir = ms.ctrl.cur_dir; - if (ms.ctrl.cur_dir != &ms.sys_file.bin_dir) { - search_bin = true; - } - if (*name == '\0') { - search_dir = &ms.sys_file.bin_dir; - search_bin = false; - } - } else { - search_dir = path_to_dir(last_str); - if (!search_dir) { - return; - } - } - - if (strcmp(name, "..") == 0 || strcmp(name, ".") == 0) { - ms_display_char('/'); - return; - } - - uint16_t counter = 0; - - size_t name_len = strlen(name); - - om_list_head_t* pos = NULL; - - om_list_for_each(pos, &search_dir->data.as_dir.list) { - ms_item_t* item = om_list_entry(pos, ms_item_t, self); - if (strncmp(name, item->name, name_len) == 0) { - counter++; - ms_tab_fn(item, counter); - } - } - - if (search_bin) { - om_list_for_each(pos, &ms.sys_file.bin_dir.data.as_dir.list) { - ms_item_t* item = om_list_entry(pos, ms_item_t, self); - if (strncmp(name, item->name, name_len) == 0) { - counter++; - ms_tab_fn(item, counter); - } - } - } - - if (counter == 0) { - return; - } else if (counter == 1) { - if (ms.ctrl.tab_tmp->name[name_len] == '\0' && - ms.ctrl.tab_tmp->mode == MS_MODE_DIR) { - ms_display_char('/'); - return; - } - - name = ms.ctrl.tab_tmp->name + name_len; - while (*name) { - ms_display_char(*name); - name++; - } - return; - } else if (ms.ctrl.tab_same_len == 0) { - ms_enter(); - ms_show_head(); - ms_printf("%s", ms.buff.read_buff); - } else { - ms_enter(); - ms_show_head(); - ms.write(ms.buff.read_buff, ms.ctrl.index); - for (uint16_t i = name_len; i < ms.ctrl.tab_same_len; i++) { - ms_input(ms.ctrl.tab_tmp->name[i]); - } - } -} - -void ms_input(char data) { - if (data == '\n' || data == '\r') { - ms.ctrl.index += ms.ctrl.offset; - ms_enter(); - ms.buff.read_buff[ms.ctrl.index] = '\0'; - ms_add_history(); - ms_prase_cmd(remove_space(ms.buff.read_buff)); - ms_show_head(); - ms_reset(); - memset(ms.buff.read_buff, 0, MS_MAX_CMD_LENGTH); - return; - } - - if (ms.ctrl.ansi) { - ms_prase_ansi(data); - } else if (data == '\033') { - ms.ctrl.ansi = 1; - } else if (data == 0x7f) { - ms_delete(); - } else if (data == '\t') { - ms_tab(ms.buff.read_buff); - } else if (data == 3) { - ms_enter(); - ms_clear_line(); - ms_show_head(); - } else { - ms_display_char(data); - } -} - -void ms_clear_line() { - ms_reset(); - ms.write(CLEAR_LINE, sizeof(CLEAR_LINE)); -} - -void ms_clear() { - ms_reset(); - ms.write(CLEAR_ALL, sizeof(CLEAR_ALL)); -} - -void ms_init(int (*write_fun)(const char*, size_t)) { - OM_UNUSED(err_arg_num); - OM_UNUSED(err_file_write); - OM_UNUSED(err_file_read); - - ms.write = write_fun; - - ms.history.index = MS_HISTORY_NULL; - - ms_dir_init(&ms.sys_file.root_dir, "/"); - ms_dir_init(&ms.sys_file.bin_dir, "bin"); - ms_dir_init(&ms.sys_file.etc_dir, "etc"); - ms_dir_init(&ms.sys_file.dev_dir, "dev"); - ms_dir_init(&ms.sys_file.home_dir, "home"); - ms_dir_init(&ms.sys_file.user_home_dir, MS_USER_NAME); - - ms_item_add(&ms.sys_file.bin_dir, &ms.sys_file.root_dir); - ms_item_add(&ms.sys_file.dev_dir, &ms.sys_file.root_dir); - ms_item_add(&ms.sys_file.etc_dir, &ms.sys_file.root_dir); - ms_item_add(&ms.sys_file.home_dir, &ms.sys_file.root_dir); - ms_item_add(&ms.sys_file.user_home_dir, &ms.sys_file.home_dir); -#if MS_CMD_PWD - ms_file_init(&ms.sys_file.pwd_cmd, "pwd", pwd_fun, NULL, 0, false); - ms_cmd_add(&ms.sys_file.pwd_cmd); -#endif -#if MS_CMD_LS - ms_file_init(&ms.sys_file.ls_cmd, "ls", ls_fun, NULL, 0, false); - ms_cmd_add(&ms.sys_file.ls_cmd); -#endif -#if MS_CMD_CD - ms_file_init(&ms.sys_file.cd_cmd, "cd", cd_fun, NULL, 0, false); - ms_cmd_add(&ms.sys_file.cd_cmd); - -#endif -#if MS_CMD_CAT - ms_file_init(&ms.sys_file.cat_cmd, "cat", cat_fun, NULL, 0, false); - ms_cmd_add(&ms.sys_file.cat_cmd); -#endif -#if MS_CMD_ECHO - ms_file_init(&ms.sys_file.echo_cmd, "echo", echo_fun, NULL, 0, false); - ms_cmd_add(&ms.sys_file.echo_cmd); -#endif -#if MS_CMD_CLEAR - ms_file_init(&ms.sys_file.clear_cmd, "clear", clear_fun, NULL, 0, false); - ms_cmd_add(&ms.sys_file.clear_cmd); -#endif -#if MS_FILE_TTY - ms_dev_init(&ms.sys_file.tty_dev, "tty", tty_write_fun, tty_read_fun); - ms_item_add(&ms.sys_file.tty_dev, &ms.sys_file.dev_dir); -#endif -#if MS_FILE_README - ms_file_init(&ms.sys_file.readme_file, "README.txt", NULL, - ms.buff.readme_buff, sizeof(ms.buff.readme_buff), true); - strcpy(ms.buff.readme_buff, - "Mini Shell by jiu-xiao. https://github.com/Jiu-xiao/mini_shell"); - ms_item_add(&ms.sys_file.readme_file, &ms.sys_file.user_home_dir); -#endif - - ms.ctrl.cur_dir = &ms.sys_file.user_home_dir; -} - -void ms_start() { - ms_clear(); - const char* index = INIT_MESSAGE; - for (size_t i = 0; i < sizeof(INIT_MESSAGE); i += 64) { - if (sizeof(INIT_MESSAGE) - i > 64) { - ms.write(index, 64); - index += 64; - } else { - ms_printf("%s", index); - } - } - ms_enter(); - ms.write(MS_HELLO_MESSAGE, sizeof(MS_HELLO_MESSAGE)); - ms_enter(); - if (sizeof(MS_INIT_COMMAND) > 1) { - strncpy(ms.buff.read_buff, MS_INIT_COMMAND, sizeof(MS_INIT_COMMAND)); - ms.ctrl.index = sizeof(MS_INIT_COMMAND); - ms_input('\n'); - } - ms_show_head(); -} - -ms_item_t* ms_get_root_dir() { return &ms.sys_file.root_dir; } - -ms_item_t* ms_get_etc_dir() { return &ms.sys_file.etc_dir; } - -ms_item_t* ms_get_dev_dir() { return &ms.sys_file.dev_dir; } - -ms_item_t* ms_get_bin_dir() { return &ms.sys_file.bin_dir; } - -ms_item_t* ms_get_home_dir() { return &ms.sys_file.home_dir; } - -ms_item_t* ms_get_userhome_dir() { return &ms.sys_file.user_home_dir; } - -ms_status_t ms_path_to_dir(const char* raw_path, ms_item_t** ans) { - strncpy(ms.buff.path_prase_buff, raw_path, MS_MAX_CMD_LENGTH); - size_t dir_name_len = strlen(ms.buff.path_prase_buff); - ms_item_t* target = ms.ctrl.cur_dir; - char* path = ms.buff.path_prase_buff; - - if (dir_name_len == 0) { - *ans = target; - return MS_OK; - } - - if (path[0] == '/') { - target = &ms.sys_file.root_dir; - path++; - dir_name_len--; - if (dir_name_len == 0) { - *ans = target; - return MS_OK; - } - } else if (path[dir_name_len - 1] == '/') { - path[dir_name_len - 1] = '\0'; - dir_name_len--; - } - - size_t index = 0; - - for (size_t i = 0; i < dir_name_len + 1; i++) { - if (path[i] != '/' && path[i] != '\0') { - continue; - } - - path[i] = '\0'; - - if (strcmp("..", path + index) == 0) { - if (target != &ms.sys_file.root_dir) { - target = target->father; - } - index = i + 1; - path[i] = '/'; - continue; - } - - if (strcmp(".", path + index) == 0) { - index = i + 1; - path[i] = '/'; - continue; - } - - om_list_head_t* pos = NULL; - - bool found = false; - - om_list_for_each(pos, &target->data.as_dir.list) { - ms_item_t* item = om_list_entry(pos, ms_item_t, self); - - if (item->mode == MS_MODE_DIR && strcmp(path + index, item->name) == 0) { - target = item; - index = i + 1; - found = true; - path[i] = '/'; - break; - } - } - - if (found) { - continue; - } - - *ans = NULL; - return MS_ERROR_NULL; - } - - *ans = target; - return MS_OK; -} - -ms_status_t ms_path_to_file(const char* raw_path, ms_item_t** ans) { - strncpy(ms.buff.path_prase_buff, raw_path, MS_MAX_CMD_LENGTH); - char* path = ms.buff.path_prase_buff; - char* cmd_name = remove_path(path); - - ms_item_t* search_dir = NULL; - bool search_bin = false; - - if (cmd_name == path) { - search_dir = ms.ctrl.cur_dir; - if (ms.ctrl.cur_dir != &ms.sys_file.bin_dir) { - search_bin = true; - } - } else if (!(search_dir = path_to_dir(path))) { - *ans = NULL; - return MS_ERROR_NULL; - } - - om_list_head_t* pos = NULL; - - om_list_for_each(pos, &search_dir->data.as_dir.list) { - ms_item_t* item = om_list_entry(pos, ms_item_t, self); - if (item->mode != MS_MODE_DIR && strcmp(cmd_name, item->name) == 0) { - *ans = item; - return MS_OK; - } - } - - if (search_bin) { - om_list_for_each(pos, &ms.sys_file.bin_dir.data.as_dir.list) { - ms_item_t* item = om_list_entry(pos, ms_item_t, self); - if (item->mode != MS_MODE_DIR && strcmp(cmd_name, item->name) == 0) { - *ans = item; - return MS_OK; - } - } - } - - *ans = NULL; - return MS_ERROR_NULL; -} diff --git a/User/extension/ms.h b/User/extension/ms.h deleted file mode 100644 index 7040388..0000000 --- a/User/extension/ms.h +++ /dev/null @@ -1,202 +0,0 @@ -#ifndef __MS_H__ -#define __MS_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include -#include -#include -#include -#include - -#include "ms_config.h" -#include "om_list.h" - -#define MS_CSI(code) "\033[" #code "m" /**< ANSI CSI指令 */ - -/** - * 终端字体颜色代码 - */ -#define MS_COLOR_BLACK MS_CSI(30) /**< 黑色 */ -#define MS_COLOR_RED MS_CSI(31) /**< 红色 */ -#define MS_COLOR_GREEN MS_CSI(32) /**< 绿色 */ -#define MS_COLOR_YELLOW MS_CSI(33) /**< 黄色 */ -#define MS_COLOR_BLUE MS_CSI(34) /**< 蓝色 */ -#define MS_COLOR_FUCHSIN MS_CSI(35) /**< 品红 */ -#define MS_COLOR_CYAN MS_CSI(36) /**< 青色 */ -#define MS_COLOR_WHITE MS_CSI(37) /**< 白色 */ -#define MS_COLOR_BLACK_L MS_CSI(90) /**< 亮黑 */ -#define MS_COLOR_RED_L MS_CSI(91) /**< 亮红 */ -#define MS_COLOR_GREEN_L MS_CSI(92) /**< 亮绿 */ -#define MS_COLOR_YELLOW_L MS_CSI(93) /**< 亮黄 */ -#define MS_COLOR_BLUE_L MS_CSI(94) /**< 亮蓝 */ -#define MS_COLOR_FUCHSIN_L MS_CSI(95) /**< 亮品红 */ -#define MS_COLOR_CYAN_L MS_CSI(96) /**< 亮青 */ -#define MS_COLOR_WHITE_L MS_CSI(97) /**< 亮白 */ -#define MS_COLOR_DEFAULT MS_CSI(39) /**< 默认 */ - -typedef enum { - MS_MODE_FILE, - MS_MODE_DIR, - MS_MODE_DEV, -} ms_mode_t; - -typedef enum { - MS_OK = 0, - MS_ERROR, - MS_ERROR_NULL, - MS_ERROR_INIT, - MS_ERROR_BUSY -} ms_status_t; - -typedef struct ms_item_struct { - const char* name; - struct ms_item_struct* father; - union { - struct { - om_list_head_t list; - } as_dir; - - struct { - void* data; - size_t size; - bool writeable; - int (*run)(struct ms_item_struct* self, int argc, char* argv[]); - } as_file; - - struct { - int (*read)(struct ms_item_struct* self, void* buff, size_t size); - int (*write)(struct ms_item_struct* self, const void* buff, size_t size); - } as_device; - } data; - om_list_head_t self; - - ms_mode_t mode; -} ms_item_t; - -typedef int (*ms_cmd_fun_t)(ms_item_t*, int argc, char* argv[]); -typedef int (*ms_write_fun_t)(struct ms_item_struct* self, const void* buf, - size_t count); -typedef int (*ms_read_fun_t)(struct ms_item_struct* self, void* buf, - size_t count); - -typedef struct { - int (*write)(const char*, size_t); - struct { - char write_buff[MS_WIRITE_BUFF_SIZE]; - char read_buff[MS_MAX_CMD_LENGTH]; - char prase_buff[MS_MAX_CMD_LENGTH]; - char path_prase_buff[MS_MAX_CMD_LENGTH]; - char* arg_map[MS_MAX_ARG_NUM]; - char history_buff[MS_MAX_HISTORY_NUM][MS_MAX_CMD_LENGTH]; -#if MS_FILE_README - char readme_buff[65]; -#endif -#if MS_CMD_CAT - char cat_buff[MS_CAT_BUFF_SIZE]; -#endif - } buff; - - struct { - int16_t index; - uint16_t last; - uint16_t num; - } history; - - struct { - ms_item_t root_dir; - ms_item_t bin_dir; - ms_item_t dev_dir; - ms_item_t etc_dir; - ms_item_t home_dir; - ms_item_t user_home_dir; -#if MS_FILE_TTY - ms_item_t tty_dev; -#endif -#if MS_FILE_README - ms_item_t readme_file; -#endif -#if MS_CMD_PWD - ms_item_t pwd_cmd; -#endif -#if MS_CMD_LS - ms_item_t ls_cmd; -#endif -#if MS_CMD_CD - ms_item_t cd_cmd; -#endif -#if MS_CMD_CAT - ms_item_t cat_cmd; -#endif -#if MS_CMD_ECHO - ms_item_t echo_cmd; -#endif -#if MS_CMD_CLEAR - ms_item_t clear_cmd; -#endif - } sys_file; - - struct { - size_t index; - size_t offset; - uint8_t ansi; - ms_item_t* cur_dir; - ms_item_t* tab_tmp; - uint16_t tab_same_len; - } ctrl; -} ms_t; - -void ms_printf(const char* format, ...); - -void ms_printf_insert(const char* format, ...); - -void ms_init(int (*write_fun)(const char*, size_t)); - -void ms_input(char data); - -void ms_dir_init(ms_item_t* dir, const char* name); - -void ms_file_init(ms_item_t* file, const char* name, ms_cmd_fun_t run_fun, - void* data, size_t size, bool writeable); - -void ms_dev_init(ms_item_t* file, const char* name, ms_write_fun_t write_fun, - ms_read_fun_t read_fun); - -void ms_item_add(ms_item_t* item, ms_item_t* parent_dir); - -void ms_cmd_add(ms_item_t* cmd); - -void ms_enter(); - -void ms_clear(); - -void ms_clear_line(); - -void ms_show_head(); - -ms_item_t* ms_get_root_dir(); - -ms_item_t* ms_get_etc_dir(); - -ms_item_t* ms_get_dev_dir(); - -ms_item_t* ms_get_bin_dir(); - -ms_item_t* ms_get_home_dir(); - -ms_item_t* ms_get_userhome_dir(); - -void ms_start(); - -ms_status_t ms_path_to_file(const char* path, ms_item_t** ans); - -ms_status_t ms_path_to_dir(const char* raw_path, ms_item_t** ans); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/User/extension/om_core/om_lib.h b/User/extension/om_core/om_lib.h deleted file mode 100644 index 9c08d3f..0000000 --- a/User/extension/om_core/om_lib.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef __OM_LIB_H__ -#define __OM_LIB_H__ - -#include -#include -#include -#include -#include -#include -#include -#include - -typedef enum { - OM_OK = 0, - OM_ERROR = 1, - OM_ERROR_NULL, - OM_ERROR_BUSY, - OM_ERROR_TIMEOUT, - OM_ERROR_FULL, - OM_ERROR_EMPTY, - OM_ERROR_NOT_INIT -} om_status_t; - -#define OM_UNUSED(X) ((void)X) - -#define om_offset_of(type, member) ((size_t) & ((type*)0)->member) - -#define om_member_size_of(type, member) (sizeof(typeof(((type*)0)->member))) - -#define om_container_of(ptr, type, member) \ - ({ \ - const typeof(((type*)0)->member)* __mptr = (ptr); \ - (type*)((char*)__mptr - om_offset_of(type, member)); \ - }) - -#endif diff --git a/User/extension/om_core/om_list.c b/User/extension/om_core/om_list.c deleted file mode 100644 index a754da4..0000000 --- a/User/extension/om_core/om_list.c +++ /dev/null @@ -1,45 +0,0 @@ -#include "om_list.h" - -void _OM_INIT_LIST_HEAD(om_list_head_t* list) { list->next = list; } - -static void __list_add(om_list_head_t* new_data, om_list_head_t* prev, - om_list_head_t* next) { - new_data->next = next; - prev->next = new_data; -} - -void om_list_add(om_list_head_t* new_data, om_list_head_t* head) { - __list_add(new_data, head, head->next); -} - -static void __list_del(om_list_head_t* prev, om_list_head_t* next) { - prev->next = next; -} - -static om_list_head_t* __list_get_prev(om_list_head_t* entry) { - om_list_head_t* prev = entry; - while (prev->next != entry) { - prev = prev->next; - } - return prev; -} - -void om_list_del(om_list_head_t* entry) { - __list_del(__list_get_prev(entry), entry->next); -} - -void om_list_replace(om_list_head_t* old, om_list_head_t* new_data) { - new_data->next = old->next; - __list_get_prev(old)->next = new_data; -} - -int om_list_empty(const om_list_head_t* head) { return head->next == head; } - -size_t om_list_get_num(const om_list_head_t* head) { - uint32_t num = 0; - - om_list_head_t* pos; - om_list_for_each(pos, head) { num++; } - - return num; -} diff --git a/User/extension/om_core/om_list.h b/User/extension/om_core/om_list.h deleted file mode 100644 index 6c6b218..0000000 --- a/User/extension/om_core/om_list.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef __OM_LIST_H__ -#define __OM_LIST_H__ - -#include "om_lib.h" - -typedef struct _om_list_head { - struct _om_list_head* next; -} om_list_head_t; - -#define OM_LIST_HEAD_INIT(name) \ - { &(name), &(name) } - -#define OM_LIST_HEAD(name) om_list_head_t name = OM_LIST_HEAD_INIT(name) - -#define om_list_for_each(pos, head) \ - for (pos = (head)->next; pos != (head); pos = pos->next) - -#define om_list_for_each_safe(pos, n, head) \ - for (pos = (head)->next, n = pos->next; pos != (head); pos = n, n = pos->next) - -#define om_list_entry(ptr, type, member) om_container_of(ptr, type, member) - -void _OM_INIT_LIST_HEAD(om_list_head_t* list); - -#define OM_INIT_LIST_HEAD(arg) _OM_INIT_LIST_HEAD(arg) - -#define om_del_all(source, del_fun) \ - do { \ - om_list_head_t *pos, *tmp; \ - for (pos = (source)->next; pos != (source);) { \ - tmp = pos; \ - pos = pos->next; \ - del_fun(tmp); \ - } \ - } while (0) - -#define OM_PRASE_STRUCT(container, member) \ - sizeof(container), om_offset_of(container, member), \ - om_member_size_of(container, member) - -#define OM_PRASE_VAR(_arg) (&_arg), (sizeof(_arg)) - -void om_list_add(om_list_head_t* new_data, om_list_head_t* head); - -void om_list_del(om_list_head_t* entry); - -void om_list_replace(om_list_head_t* old, om_list_head_t* new_data); - -int om_list_empty(const om_list_head_t* head); - -size_t om_list_get_num(const om_list_head_t* head); -#endif diff --git a/User/module/123 b/User/module/123 deleted file mode 100644 index f364d54..0000000 --- a/User/module/123 +++ /dev/null @@ -1,3 +0,0 @@ -else if (strcmp(str, "MR16 ")==0) { - MR16_SettingFSM=; - } \ No newline at end of file diff --git a/User/module/config.c b/User/module/config.c new file mode 100644 index 0000000..c890ae0 --- /dev/null +++ b/User/module/config.c @@ -0,0 +1,33 @@ +/* + * 配置相关 + */ + +/* Includes ----------------------------------------------------------------- */ +#include "module/config.h" +#include "bsp/can.h" +#include "device/motor_dm.h" +#include "module/cmd.h" +#include +/* Private typedef ---------------------------------------------------------- */ +/* Private define ----------------------------------------------------------- */ +/* Private macro ------------------------------------------------------------ */ +/* Private variables -------------------------------------------------------- */ + +/* Exported variables ------------------------------------------------------- */ + +// 机器人参数配置 +Config_RobotParam_t robot_config = { + + +}; + +/* Private function prototypes ---------------------------------------------- */ +/* Exported functions ------------------------------------------------------- */ + +/** + * @brief 获取机器人配置参数 + * @return 机器人配置参数指针 + */ +Config_RobotParam_t* Config_GetRobotParam(void) { + return &robot_config; +} \ No newline at end of file diff --git a/User/module/config.h b/User/module/config.h new file mode 100644 index 0000000..8ac3595 --- /dev/null +++ b/User/module/config.h @@ -0,0 +1,27 @@ +/* + * 配置相关 + */ + +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif + +#include + + +typedef struct { + +} Config_RobotParam_t; + +/* Exported functions prototypes -------------------------------------------- */ + +/** + * @brief 获取机器人配置参数 + * @return 机器人配置参数指针 + */ +Config_RobotParam_t* Config_GetRobotParam(void); +#ifdef __cplusplus +} +#endif diff --git a/User/module/mr16.c b/User/module/mr16.c index 6b195ac..b74ac24 100644 --- a/User/module/mr16.c +++ b/User/module/mr16.c @@ -6,11 +6,11 @@ #include #include #include - +#include "usart.h" #include "device/sx1281_driver/radio.h" -#include "device/sx1281_driver/sx1281.h" #include "device/lcd_driver/lcd.h" #include "device/sx1281_driver/sx1281_driver.h" +#include "component/FreeRTOS_CLI.h" /* USER INCLUDE BEGIN */ /* USER INCLUDE END */ @@ -66,7 +66,7 @@ SX1281_t radio; //lcd点阵数组 extern const unsigned char logo_M[]; //串口接收数据及字长 -extern uint8_t uart2_data[255],data_length; +extern uint8_t uart2_data[255],uart2_datalength; uint8_t radioRXBuffer[BUFFER_SIZE]; uint8_t radioRXSize; @@ -78,6 +78,8 @@ static MR16_FSM_t MR16_FSM = MR16_FSM_NONE; static MR16_SettingFSM_t MR16_SettingFSM=MR16_SETTINGFSM_home; extern MR16_t mr16; + +int8_t MR16_CLI_Init(); /* Private function -------------------------------------------------------- */ /* USER FUNCTION BEGIN */ @@ -98,19 +100,12 @@ int8_t SX1281_Callback(SX1281_States_t source) { mr16.packetCount[i]++; } } - - - - - /* 重启接收 */ - //Radio.SetRx( ( TickTime_t ) { RX_TIMEOUT_TICK_SIZE, RX_TIMEOUT_VALUE } ); break; case RX_TIMEOUT: /* 打印状态 */ printf( "<>>>>>>>>OnRXTimeout" ); - //Radio.SetRx( ( TickTime_t ) { RX_TIMEOUT_TICK_SIZE, RX_TIMEOUT_VALUE } ); - Radio.SetRx( ( TickTime_t ) { RADIO_TICK_SIZE_1000_US, 0x1000 } ); + SX1281_SetRXSuccessive(&radio); break; case RX_ERROR: @@ -124,9 +119,10 @@ int8_t SX1281_Callback(SX1281_States_t source) { printf( "<>>>>>>>>OnTxDone" ); // radio.param.packetParams.Params.Flrc.PayloadLength = data_length; // Radio.SetPacketParams( &radio.param.packetParams ); - a++;if (a>100) a=0; - uint8_t haha[5]={a,2,3,4,a}; - SX1281_SetTX((uint8_t*)haha,5); + // a++;if (a>100) a=0; + // uint8_t haha[5]={a,2,3,4,a}; + // SX1281_SetTX(&radio,(uint8_t*)haha,5); + SX1281_SetTX(&radio,mr16.txbuffer,mr16.txbuffer[2]+5); // SX1281_SetTX(uart_data,data_length); break; @@ -148,11 +144,14 @@ int8_t SX1281_Callback(SX1281_States_t source) { /* Exported functions ------------------------------------------------------- */ int8_t MR16_Init(MR16_Mode_t mr16Mode, SX1281_RadioMode_t radioMode) { + MR16_CLI_Init(); + + MR16_Mode=mr16Mode; MR16_FSM=MR16_FSM_INIT; SX1281_Init(&radio, radioMode); -// SX1281_SetTX(uart_data,data_length); - SX1281_SetRXSuccessive(); +// SX1281_SetTX(&radio,uart_data,data_length); + SX1281_SetRXSuccessive(&radio); // LCD显示 LCD_Init(1); LCD_Clear(BLACK); @@ -175,112 +174,38 @@ int8_t MR16_UI_Setting() { } -int8_t MR16_Setting(const char str[]) { - - switch (MR16_SettingFSM) { - case MR16_SETTINGFSM_home: - if (strcmp(str, "MR16 mode")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_mode; - }else if (strcmp(str, "MR16 RXID")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_RX_ID; - }else if (strcmp(str, "MR16 radioParams")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_radioParams; - } - break; - case MR16_SETTINGFSM_mode: - if (strcmp(str, "MR16 RFUART")==0) { - mr16.mode=MR16_MODE_RFUART; - }else if (strcmp(str, "MR16 RC")==0) { - mr16.mode=MR16_MODE_RC; - } - break; - case MR16_SETTINGFSM_RX_ID: - //MR16 RXID1 ffff - if (strncmp(str, "MR16 RXID", 9) == 0) { - sscanf(str, "MR16 RXID%*d %hx", &mr16.RX_ID[(uint8_t)str[10]]); - } - break; - case MR16_SETTINGFSM_radioParams: - if (strcmp(str, "MR16 radioMode")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_radioMode; - }else if (strcmp(str, "MR16 modulation")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_modulationParams; - }else if (strcmp(str, "MR16 packet")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_packetParams; - }else if (strcmp(str, "MR16 rfFreq")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_rfFrequency; - }else if (strcmp(str, "MR16 Power")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_txOutputPower; - }else if (strcmp(str, "MR16 rampTime")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_rampTime; - }else if (strcmp(str, "MR16 baudrate")==0) { - MR16_SettingFSM=MR16_SETTINGFSM_baudrate; - } - break; - case MR16_SETTINGFSM_radioMode: - if (strcmp(str, "MR16 BLE")==0) { - SX1281_SetMode(&radio, RADIOMODE_BLE); - }else if (strcmp(str, "MR16 LoRa")==0) { - SX1281_SetMode(&radio, RADIOMODE_LORA); - }else if (strcmp(str, "MR16 GFSK")==0) { - SX1281_SetMode(&radio, RADIOMODE_GFSK); - }else if (strcmp(str, "MR16 FLRC")==0) { - SX1281_SetMode(&radio, RADIOMODE_FLRC); - } - break; - case MR16_SETTINGFSM_modulationParams: - switch (radio.param.modulationParams.PacketType) { - case PACKET_TYPE_BLE: - printf("BLE:\n"); - printf("ConnectionState\nCrcField\nBlePacketType\nWhitening\n"); - break; - case PACKET_TYPE_LORA: - printf("LORA:\n"); - printf("PreambleLength\nHeaderType\nPayloadLength\nCrcMode\nInvertIQ\n"); - break; - case PACKET_TYPE_GFSK: - printf("\nGFSK&FLRC:\n"); - printf("PreambleLength\nSyncWordLength\nSyncWordMatch\nHeaderType\nPayloadLength\nCrcLength\nWhitening\n"); - break; - case PACKET_TYPE_FLRC: - printf("\nGFSK&FLRC:\n"); - printf("PreambleLength\nSyncWordLength\nSyncWordMatch\nHeaderType\nPayloadLength\nCrcLength\nWhitening\n"); - break; - default: - break; - } - - break; - case MR16_SETTINGFSM_packetParams: - break; - case MR16_SETTINGFSM_rfFrequency: - break; - case MR16_SETTINGFSM_txOutputPower: - break; - case MR16_SETTINGFSM_rampTime: - break; - case MR16_SETTINGFSM_baudrate: - break; - default: - break; - } - - return 0; +bool UART2_IdleFlag = false; +void MR16_NotifyUARTIdle(void) +{ + UART2_IdleFlag=true; } - - +char cInputBuffer[256]; +char cOutputBuffer[256]; int8_t MR16_Main(MR16_t mr16, uint8_t data[],uint8_t data_length) { - - char str[256]; - memcpy(str, uart2_data, data_length); - str[data_length] = '\0'; - - if (strcmp(str, "MR16 Set") == 0) { - mr16.mode=MR16_MODE_SETTING; + + if (UART2_IdleFlag==true) { + UART2_IdleFlag = false; + mr16.mode=MR16_MODE_SETTING; + + if (uart2_datalength > 0 && uart2_datalength < sizeof(cInputBuffer)) { + memcpy(cInputBuffer, uart2_data, uart2_datalength); + cInputBuffer[uart2_datalength] = '\0'; + } else { + cInputBuffer[0] = '\0'; + } + + cOutputBuffer[0] = '\0'; + BaseType_t xMore = pdTRUE; + do { + xMore = FreeRTOS_CLIProcessCommand(cInputBuffer, cOutputBuffer, sizeof(cOutputBuffer)); + if (cOutputBuffer[0] != '\0') { + printf("%s", cOutputBuffer); + } + cOutputBuffer[0] = '\0'; + } while (xMore == pdTRUE); } - - + switch (mr16.mode) { case MR16_MODE_RFUART: @@ -288,11 +213,12 @@ int8_t MR16_Main(MR16_t mr16, uint8_t data[],uint8_t data_length) { case MR16_MODE_RC: switch (MR16_FSM) { case MR16_FSM_INIT: - if (radio.appMode==APPMODE_RX) {MR16_FSM=MR16_FSM_RX;} + if (radio.appMode==APPMODE_RXSINGLE||radio.appMode==APPMODE_RXSUCCESSIVE) {MR16_FSM=MR16_FSM_RX;} else if (radio.appMode==APPMODE_TX) {MR16_FSM=MR16_FSM_TX;} break; case MR16_FSM_TX: - SX1281_SetTX(data, data_length); + SX1281_Running(&radio); + SX1281_SetTX(&radio,data, data_length); break; case MR16_FSM_RX: SX1281_Running(&radio); @@ -300,6 +226,18 @@ int8_t MR16_Main(MR16_t mr16, uint8_t data[],uint8_t data_length) { default: break; } + + switch (radio.appMode) { + case APPMODE_TX: + SX1281_Running(&radio); + SX1281_SetTX(&radio,mr16.txbuffer,mr16.txbuffer[2]+5); + break; + case APPMODE_RXSUCCESSIVE: + SX1281_Running(&radio); + break; + default: + break; + } case MR16_MODE_SETTING: break; case MR16_MODE_NONE: @@ -307,4 +245,120 @@ int8_t MR16_Main(MR16_t mr16, uint8_t data[],uint8_t data_length) { default: break; } +} + + +/*------------------------------------------------- + + CLI + +--------------------------------------------------*/ + + + +static BaseType_t mr16CommandHandler( char *pcWriteBuffer, size_t xWriteBufferLen, const char *pcCommandString ) { + BaseType_t len1 = 0, len2 = 0; + const char *p1 = FreeRTOS_CLIGetParameter(pcCommandString, 1, &len1); // 第1个参数(不包含命令名) + const char *p2 = FreeRTOS_CLIGetParameter(pcCommandString, 2, &len2); // 第2个参数 + + char arg1[32] = {0}; + char arg2[32] = {0}; + + if (p1) { + size_t c1 = (len1 < (BaseType_t)(sizeof(arg1)-1)) ? (size_t)len1 : sizeof(arg1)-1; + strncpy(arg1, p1, c1); + arg1[c1] = '\0'; + } + if (p2) { + size_t c2 = (len2 < (BaseType_t)(sizeof(arg2)-1)) ? (size_t)len2 : sizeof(arg2)-1; + strncpy(arg2, p2, c2); + arg2[c2] = '\0'; + } + + + if (strcasecmp(arg1, "mode") == 0) { + if (arg2[0] != '\0') { + if (strcasecmp(arg2, "RFUART") == 0) { + mr16.mode = MR16_MODE_RFUART; + snprintf(pcWriteBuffer, xWriteBufferLen, "mode set to: %s\r\n", arg2); + } else if (strcasecmp(arg2, "RC") == 0) { + mr16.mode = MR16_MODE_RC; + snprintf(pcWriteBuffer, xWriteBufferLen, "mode set to: %s\r\n", arg2); + } else { + snprintf(pcWriteBuffer, xWriteBufferLen, "Invalid mode: %s\r\n", arg2); + return pdFALSE; + } + } + snprintf(pcWriteBuffer, xWriteBufferLen, "Set -> %s\r\n", arg2); + } else if (strcasecmp(arg1, "tx") == 0){ + SX1281_SetTX(&radio,mr16.txbuffer,mr16.txbuffer[2]+5); + } else if (strcasecmp(arg1, "rx") == 0){ + + + + } else if (strcasecmp(arg1, "rxid1") == 0) { + if (arg2[0] != '\0') { + uint16_t rxid; + sscanf(arg2, "%hx", &rxid); + if(rxid >0x0001 && rxid <0xFFFE){ + mr16.RX_ID[0] = rxid; + snprintf(pcWriteBuffer, xWriteBufferLen, "RXID1 set to: 0x%04X\r\n", mr16.RX_ID[0]); + }else{ + snprintf(pcWriteBuffer, xWriteBufferLen, "RXID1 set failed: invalid value\r\n"); + snprintf(pcWriteBuffer, xWriteBufferLen, "RXID1 now: 0x%04X\r\n", mr16.RX_ID[0]); + } + } + } + + return pdFALSE; +} + +static BaseType_t radioCommandHandler( char *pcWriteBuffer, size_t xWriteBufferLen, const char *pcCommandString ) { + BaseType_t len1 = 0, len2 = 0; + const char *p1 = FreeRTOS_CLIGetParameter(pcCommandString, 1, &len1); // 第1个参数(不包含命令名) + const char *p2 = FreeRTOS_CLIGetParameter(pcCommandString, 2, &len2); // 第2个参数 + + char arg1[32] = {0}; + char arg2[64] = {0}; + + if (p1) { + size_t c1 = (len1 < (BaseType_t)(sizeof(arg1)-1)) ? (size_t)len1 : sizeof(arg1)-1; + strncpy(arg1, p1, c1); + arg1[c1] = '\0'; + } + if (p2) { + size_t c2 = (len2 < (BaseType_t)(sizeof(arg2)-1)) ? (size_t)len2 : sizeof(arg2)-1; + strncpy(arg2, p2, c2); + arg2[c2] = '\0'; + } + + // 示例:处理 "MR16 Set hello" + if (strcmp(arg1, "Set") == 0) { + // arg2 是 "hello" + snprintf(pcWriteBuffer, xWriteBufferLen, "Set -> %s\r\n", arg2); + } else { + snprintf(pcWriteBuffer, xWriteBufferLen, "Got: %s %s\r\n", arg1, arg2); + } + + return pdFALSE; +} + + + + +int8_t MR16_CLI_Init() { + static const CLI_Command_Definition_t mr16Command = { + "mr16", // 命令名 + "mr16 \r\n", // 帮助信息 + mr16CommandHandler, // 处理函数 + -1 // 可变参数数量 + }; + static const CLI_Command_Definition_t radioCommand = { + "radio", // 命令名 + "radio \r\n", // 帮助信息 + radioCommandHandler, // 处理函数 + -1 // 可变参数数量 + }; + FreeRTOS_CLIRegisterCommand(&mr16Command); + FreeRTOS_CLIRegisterCommand(&radioCommand); } \ No newline at end of file diff --git a/User/module/mr16.h b/User/module/mr16.h index 54efc86..ddc54b3 100644 --- a/User/module/mr16.h +++ b/User/module/mr16.h @@ -8,6 +8,7 @@ extern "C" { #include #include +#include "device/sx1281_driver/sx1281.h" /* USER INCLUDE BEGIN */ /* USER INCLUDE END */ @@ -29,35 +30,64 @@ typedef enum { MR16_MODE_SETTING }MR16_Mode_t; +typedef struct { + uint16_t ch_l_x; + uint16_t ch_l_y; + uint16_t ch_r_x; + uint16_t ch_r_y; + bool sw[16];//二值按键 + bool threePosLever[8];//三值按键 + uint16_t res1;//保留位1 + uint16_t res2;//保留位2 + uint16_t res3;//保留位3 +}MR16_RCData_t; +typedef struct { + uint8_t header1; + uint8_t header2; + union { + MR16_RCData_t rc; + }data; + + uint16_t crc; +}MR16_Data_t; typedef struct { uint8_t header1; uint8_t header2; - uint16 crc; -}MR16_Data_t; - -typedef struct { - - + uint16_t crc; }MR16_TXBuffer_t; typedef struct { - uint16_t TX_ID; - + enum{ + RadioRoleTX, + RadioRoleRX, + }RadioRole; + MR16_Mode_t mode; - MR16_Data_t data; - + MR16_Data_t *data; + + /* + [0]header1 + [1]header2 + [2]datalength(<=122) + [...]data + [2+datalength+1]crc_highbyte + [2+datalength+2]crc_lowbyte + */ + uint8_t txbuffer[127]; + + uint16_t TX_ID; uint16_t RX_ID[3];//最多识别三台设备的信号 uint32_t packetCount[3]; }MR16_t; /* Exported functions prototypes -------------------------------------------- */ - - +int8_t MR16_Init(MR16_Mode_t mr16Mode, SX1281_RadioMode_t radioMode); +int8_t MR16_Main(MR16_t mr16, uint8_t data[],uint8_t data_length); /* USER FUNCTION BEGIN */ /* USER FUNCTION END */ diff --git a/User/task/config.yaml b/User/task/config.yaml new file mode 100644 index 0000000..0a78ef6 --- /dev/null +++ b/User/task/config.yaml @@ -0,0 +1,7 @@ +- delay: 0 + description: '' + freq_control: true + frequency: 10000.0 + function: Task_radio + name: radio + stack: 256 diff --git a/User/task/init.c b/User/task/init.c new file mode 100644 index 0000000..f3b368e --- /dev/null +++ b/User/task/init.c @@ -0,0 +1,42 @@ +/* + Init Task + 任务初始化,创建各个线程任务和消息队列 +*/ + +/* Includes ----------------------------------------------------------------- */ +#include "task/user_task.h" + +/* USER INCLUDE BEGIN */ + +/* USER INCLUDE END */ + +/* Private typedef ---------------------------------------------------------- */ +/* Private define ----------------------------------------------------------- */ +/* Private macro ------------------------------------------------------------ */ +/* Private variables -------------------------------------------------------- */ +/* Private function --------------------------------------------------------- */ +/* Exported functions ------------------------------------------------------- */ + +/** + * \brief 初始化 + * + * \param argument 未使用 + */ +void Task_Init(void *argument) { + (void)argument; /* 未使用argument,消除警告 */ + /* USER CODE INIT BEGIN */ + + /* USER CODE INIT END */ + osKernelLock(); /* 锁定内核,防止任务切换 */ + + /* 创建任务线程 */ + task_runtime.thread.radio = osThreadNew(Task_radio, NULL, &attr_radio); + + // 创建消息队列 + /* USER MESSAGE BEGIN */ + task_runtime.msgq.user_msg= osMessageQueueNew(2u, 10, NULL); + /* USER MESSAGE END */ + + osKernelUnlock(); // 解锁内核 + osThreadTerminate(osThreadGetId()); // 任务完成后结束自身 +} \ No newline at end of file diff --git a/User/task/radio.c b/User/task/radio.c new file mode 100644 index 0000000..e16eef8 --- /dev/null +++ b/User/task/radio.c @@ -0,0 +1,56 @@ +/* + radio Task + +*/ + +/* Includes ----------------------------------------------------------------- */ +#include "task/user_task.h" +/* USER INCLUDE BEGIN */ +#include "dma.h" +#include "usart.h" +#include "module/mr16.h" +#include "bsp/flash.h" +#include "device/sx1281_driver/radio.h" +#include "device/sx1281_driver/sx1281.h" + +#include "module/mr16.h" +/* USER INCLUDE END */ + +/* Private typedef ---------------------------------------------------------- */ +/* Private define ----------------------------------------------------------- */ +/* Private macro ------------------------------------------------------------ */ +/* Private variables -------------------------------------------------------- */ +/* USER STRUCT BEGIN */ +MR16_t mr16; +/* USER STRUCT END */ + +/* Private function --------------------------------------------------------- */ +uint8_t txdata[1]; + +/* Exported functions ------------------------------------------------------- */ +void Task_radio(void *argument) { + (void)argument; /* 未使用argument,消除警告 */ + + + /* 计算任务运行到指定频率需要等待的tick数 */ + const uint32_t delay_tick = osKernelGetTickFreq() / RADIO_FREQ; + + osDelay(RADIO_INIT_DELAY); /* 延时一段时间再开启任务 */ + + uint32_t tick = osKernelGetTickCount(); /* 控制任务运行频率的计时 */ + /* USER CODE INIT BEGIN */ +__HAL_UART_ENABLE_IT(&huart2,UART_IT_IDLE); + MR16_Init(MR16_MODE_RC, RADIOMODE_FLRC); +// mr16.RX_ID[0]=0x1234; +// BSP_Flash_ReadBytes(0x8000); + /* USER CODE INIT END */ + + while (1) { + tick += delay_tick; /* 计算下一个唤醒时刻 */ + /* USER CODE BEGIN */ + MR16_Main(mr16, txdata,sizeof(txdata)); + /* USER CODE END */ + osDelayUntil(tick); /* 运行结束,等待下一次唤醒 */ + } + +} \ No newline at end of file diff --git a/User/task/user_task.c b/User/task/user_task.c new file mode 100644 index 0000000..fe5c946 --- /dev/null +++ b/User/task/user_task.c @@ -0,0 +1,16 @@ +#include "task/user_task.h" + +Task_Runtime_t task_runtime; + +const osThreadAttr_t attr_init = { + .name = "Task_Init", + .priority = osPriorityRealtime, + .stack_size = 256 * 4, +}; + +/* User_task */ +const osThreadAttr_t attr_radio = { + .name = "radio", + .priority = osPriorityNormal, + .stack_size = 256 * 4, +}; \ No newline at end of file diff --git a/User/task/user_task.h b/User/task/user_task.h new file mode 100644 index 0000000..d685058 --- /dev/null +++ b/User/task/user_task.h @@ -0,0 +1,80 @@ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif +/* Includes ----------------------------------------------------------------- */ +#include +#include "FreeRTOS.h" +#include "task.h" + +/* USER INCLUDE BEGIN */ + +/* USER INCLUDE END */ +/* Exported constants ------------------------------------------------------- */ +/* 任务运行频率 */ +#define RADIO_FREQ (10000.0) + +/* 任务初始化延时ms */ +#define TASK_INIT_DELAY (100u) +#define RADIO_INIT_DELAY (0) + +/* Exported defines --------------------------------------------------------- */ +/* Exported macro ----------------------------------------------------------- */ +/* Exported types ----------------------------------------------------------- */ + +/* 任务运行时结构体 */ +typedef struct { + /* 各任务,也可以叫做线程 */ + struct { + osThreadId_t radio; + } thread; + + /* USER MESSAGE BEGIN */ + struct { + osMessageQueueId_t user_msg; /* 用户自定义任务消息队列 */ + } msgq; + /* USER MESSAGE END */ + + /* 机器人状态 */ + struct { + float battery; /* 电池电量百分比 */ + float vbat; /* 电池电压 */ + float cpu_temp; /* CPU温度 */ + } status; + + /* USER CONFIG BEGIN */ + + /* USER CONFIG END */ + + /* 各任务的stack使用 */ + struct { + UBaseType_t radio; + } stack_water_mark; + + /* 各任务运行频率 */ + struct { + float radio; + } freq; + + /* 任务最近运行时间 */ + struct { + float radio; + } last_up_time; + +} Task_Runtime_t; + +/* 任务运行时结构体 */ +extern Task_Runtime_t task_runtime; + +/* 初始化任务句柄 */ +extern const osThreadAttr_t attr_init; +extern const osThreadAttr_t attr_radio; + +/* 任务函数声明 */ +void Task_Init(void *argument); +void Task_radio(void *argument); + +#ifdef __cplusplus +} +#endif \ No newline at end of file diff --git a/cmake/stm32cubemx/CMakeLists.txt b/cmake/stm32cubemx/CMakeLists.txt index 0085f7b..2909824 100644 --- a/cmake/stm32cubemx/CMakeLists.txt +++ b/cmake/stm32cubemx/CMakeLists.txt @@ -11,16 +11,21 @@ set(MX_Defines_Syms # STM32CubeMX generated include paths set(MX_Include_Dirs ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Inc - ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Inc ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Inc/Legacy + ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Inc + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/include + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3 ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/CMSIS/Device/ST/STM32F1xx/Include ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/CMSIS/Include ) # STM32CubeMX generated application sources -set(MX_Application_Src +set(MX_Application_Src ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/main.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/gpio.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/freertos.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/dma.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/spi.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/tim.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/usart.c @@ -28,14 +33,13 @@ set(MX_Application_Src ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/stm32f1xx_hal_msp.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/sysmem.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/syscalls.c - ${CMAKE_CURRENT_SOURCE_DIR}/../../startup_stm32f103xb.s -) + ${CMAKE_CURRENT_SOURCE_DIR}/../../startup_stm32f103xb.s +) # STM32 HAL/LL Drivers -set(STM32_Drivers_Src +set(STM32_Drivers_Src ${CMAKE_CURRENT_SOURCE_DIR}/../../Core/Src/system_stm32f1xx.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c - ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c @@ -46,14 +50,27 @@ set(STM32_Drivers_Src ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c - ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c -) + ${CMAKE_CURRENT_SOURCE_DIR}/../../Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c +) # Drivers Midllewares +set(FreeRTOS_Src + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/croutine.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/event_groups.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/list.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/queue.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/tasks.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/timers.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c + ${CMAKE_CURRENT_SOURCE_DIR}/../../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3/port.c +) # Link directories setup set(MX_LINK_DIRS @@ -63,7 +80,7 @@ set(MX_LINK_DIRS set(MX_LINK_LIBS STM32_Drivers ${TOOLCHAIN_LINK_LIBRARIES} - + FreeRTOS ) # Interface library for includes and symbols add_library(stm32cubemx INTERFACE) @@ -75,6 +92,11 @@ add_library(STM32_Drivers OBJECT) target_sources(STM32_Drivers PRIVATE ${STM32_Drivers_Src}) target_link_libraries(STM32_Drivers PUBLIC stm32cubemx) + +# Create FreeRTOS static library +add_library(FreeRTOS OBJECT) +target_sources(FreeRTOS PRIVATE ${FreeRTOS_Src}) +target_link_libraries(FreeRTOS PUBLIC stm32cubemx) # Add STM32CubeMX generated application sources to the project target_sources(${CMAKE_PROJECT_NAME} PRIVATE ${MX_Application_Src})