From b24352b8c8614de80cef75eb64da6d53d0ff409f Mon Sep 17 00:00:00 2001 From: Ishan Vermani Date: Fri, 13 Dec 2024 13:36:51 -0500 Subject: [PATCH 1/5] Motion Profiling --- firmware/RAD/release/.cproject | 10 +- firmware/RAD/release/.project | 5 + firmware/RAD/release/Core/Inc/motionprofile.h | 17 + firmware/RAD/release/Core/Src/main.c | 25 + firmware/RAD/release/Core/Src/motionprofile.c | 25 + firmware/RAD/release/can-testbench/writer.py | 111 + .../STM32 Drivers/Motion_Profiler/.cproject | 187 + .../STM32 Drivers/Motion_Profiler/.mxproject | 37 + .../STM32 Drivers/Motion_Profiler/.project | 32 + .../Motion_Profiler/Core/Inc/adc.h | 55 + .../Motion_Profiler/Core/Inc/can.h | 52 + .../Motion_Profiler/Core/Inc/gpio.h | 81 + .../Motion_Profiler/Core/Inc/i2c.h | 52 + .../Motion_Profiler/Core/Inc/main.h | 106 + .../Motion_Profiler/Core/Inc/spi.h | 55 + .../Core/Inc/stm32f1xx_hal_conf.h | 391 + .../Motion_Profiler/Core/Inc/stm32f1xx_it.h | 70 + .../Motion_Profiler/Core/Inc/tim.h | 54 + .../Motion_Profiler/Core/Src/adc.c | 252 + .../Motion_Profiler/Core/Src/can.c | 125 + .../Motion_Profiler/Core/Src/gpio.c | 228 + .../Motion_Profiler/Core/Src/i2c.c | 114 + .../Motion_Profiler/Core/Src/main.c | 242 + .../Motion_Profiler/Core/Src/spi.c | 202 + .../Core/Src/stm32f1xx_hal_msp.c | 86 + .../Motion_Profiler/Core/Src/stm32f1xx_it.c | 262 + .../Motion_Profiler/Core/Src/syscalls.c | 176 + .../Motion_Profiler/Core/Src/sysmem.c | 79 + .../Core/Src/system_stm32f1xx.c | 406 + .../Motion_Profiler/Core/Src/tim.c | 135 + .../Core/Startup/startup_stm32f103c8tx.s | 364 + .../Device/ST/STM32F1xx/Include/stm32f103xb.h | 10240 ++++++++++++++++ .../Device/ST/STM32F1xx/Include/stm32f1xx.h | 273 + .../ST/STM32F1xx/Include/system_stm32f1xx.h | 96 + .../CMSIS/Device/ST/STM32F1xx/LICENSE.txt | 6 + .../Drivers/CMSIS/Include/cmsis_armcc.h | 865 ++ .../Drivers/CMSIS/Include/cmsis_armclang.h | 1869 +++ .../Drivers/CMSIS/Include/cmsis_compiler.h | 266 + .../Drivers/CMSIS/Include/cmsis_gcc.h | 2085 ++++ .../Drivers/CMSIS/Include/cmsis_iccarm.h | 935 ++ .../Drivers/CMSIS/Include/cmsis_version.h | 39 + .../Drivers/CMSIS/Include/core_armv8mbl.h | 1918 +++ .../Drivers/CMSIS/Include/core_armv8mml.h | 2927 +++++ .../Drivers/CMSIS/Include/core_cm0.h | 949 ++ .../Drivers/CMSIS/Include/core_cm0plus.h | 1083 ++ .../Drivers/CMSIS/Include/core_cm1.h | 976 ++ .../Drivers/CMSIS/Include/core_cm23.h | 1993 +++ .../Drivers/CMSIS/Include/core_cm3.h | 1941 +++ .../Drivers/CMSIS/Include/core_cm33.h | 3002 +++++ .../Drivers/CMSIS/Include/core_cm4.h | 2129 ++++ .../Drivers/CMSIS/Include/core_cm7.h | 2671 ++++ .../Drivers/CMSIS/Include/core_sc000.h | 1022 ++ .../Drivers/CMSIS/Include/core_sc300.h | 1915 +++ .../Drivers/CMSIS/Include/mpu_armv7.h | 270 + .../Drivers/CMSIS/Include/mpu_armv8.h | 333 + .../Drivers/CMSIS/Include/tz_context.h | 70 + .../Motion_Profiler/Drivers/CMSIS/LICENSE.txt | 201 + .../Motion_Profiler/Inc/motion_profiler.h | 81 + .../Motion_Profiler/Src/motion_profiler.c | 198 + .../Inc/Legacy/stm32_hal_legacy.h | 4334 +++++++ .../STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h | 357 + .../Inc/stm32f1xx_hal_adc.h | 1000 ++ .../Inc/stm32f1xx_hal_adc_ex.h | 706 ++ .../Inc/stm32f1xx_hal_can.h | 855 ++ .../Inc/stm32f1xx_hal_cortex.h | 408 + .../Inc/stm32f1xx_hal_def.h | 211 + .../Inc/stm32f1xx_hal_dma.h | 455 + .../Inc/stm32f1xx_hal_dma_ex.h | 275 + .../Inc/stm32f1xx_hal_exti.h | 318 + .../Inc/stm32f1xx_hal_flash.h | 325 + .../Inc/stm32f1xx_hal_flash_ex.h | 783 ++ .../Inc/stm32f1xx_hal_gpio.h | 306 + .../Inc/stm32f1xx_hal_gpio_ex.h | 892 ++ .../Inc/stm32f1xx_hal_i2c.h | 738 ++ .../Inc/stm32f1xx_hal_pwr.h | 385 + .../Inc/stm32f1xx_hal_rcc.h | 1375 +++ .../Inc/stm32f1xx_hal_rcc_ex.h | 1905 +++ .../Inc/stm32f1xx_hal_spi.h | 730 ++ .../Inc/stm32f1xx_hal_tim.h | 2154 ++++ .../Inc/stm32f1xx_hal_tim_ex.h | 261 + .../Inc/stm32f1xx_ll_adc.h | 3929 ++++++ .../Inc/stm32f1xx_ll_bus.h | 1012 ++ .../Inc/stm32f1xx_ll_cortex.h | 638 + .../Inc/stm32f1xx_ll_dma.h | 1958 +++ .../Inc/stm32f1xx_ll_exti.h | 886 ++ .../Inc/stm32f1xx_ll_gpio.h | 2341 ++++ .../Inc/stm32f1xx_ll_i2c.h | 1782 +++ .../Inc/stm32f1xx_ll_pwr.h | 437 + .../Inc/stm32f1xx_ll_rcc.h | 2309 ++++ .../Inc/stm32f1xx_ll_spi.h | 1936 +++ .../Inc/stm32f1xx_ll_system.h | 575 + .../Inc/stm32f1xx_ll_tim.h | 3890 ++++++ .../Inc/stm32f1xx_ll_utils.h | 270 + .../Drivers/STM32F1xx_HAL_Driver/LICENSE.txt | 6 + .../STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c | 607 + .../Src/stm32f1xx_hal_adc.c | 2428 ++++ .../Src/stm32f1xx_hal_adc_ex.c | 1325 ++ .../Src/stm32f1xx_hal_can.c | 2437 ++++ .../Src/stm32f1xx_hal_cortex.c | 503 + .../Src/stm32f1xx_hal_dma.c | 897 ++ .../Src/stm32f1xx_hal_exti.c | 553 + .../Src/stm32f1xx_hal_flash.c | 964 ++ .../Src/stm32f1xx_hal_flash_ex.c | 1124 ++ .../Src/stm32f1xx_hal_gpio.c | 586 + .../Src/stm32f1xx_hal_gpio_ex.c | 126 + .../Src/stm32f1xx_hal_i2c.c | 7644 ++++++++++++ .../Src/stm32f1xx_hal_pwr.c | 618 + .../Src/stm32f1xx_hal_rcc.c | 1400 +++ .../Src/stm32f1xx_hal_rcc_ex.c | 860 ++ .../Src/stm32f1xx_hal_spi.c | 4019 ++++++ .../Src/stm32f1xx_hal_tim.c | 7619 ++++++++++++ .../Src/stm32f1xx_hal_tim_ex.c | 2379 ++++ .../Motion_Profiler/Motion_Profiler.ioc | 268 + .../Motion_Profiler/STM32F103C8TX_FLASH.ld | 187 + 114 files changed, 121670 insertions(+), 5 deletions(-) create mode 100644 firmware/RAD/release/Core/Inc/motionprofile.h create mode 100644 firmware/RAD/release/Core/Src/motionprofile.c create mode 100644 firmware/RAD/release/can-testbench/writer.py create mode 100644 firmware/STM32 Drivers/Motion_Profiler/.cproject create mode 100644 firmware/STM32 Drivers/Motion_Profiler/.mxproject create mode 100644 firmware/STM32 Drivers/Motion_Profiler/.project create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Inc/adc.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Inc/can.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Inc/gpio.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Inc/i2c.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Inc/main.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Inc/spi.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Inc/stm32f1xx_hal_conf.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Inc/stm32f1xx_it.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Inc/tim.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/adc.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/can.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/gpio.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/i2c.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/main.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/spi.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/stm32f1xx_hal_msp.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/stm32f1xx_it.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/syscalls.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/sysmem.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/system_stm32f1xx.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Src/tim.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Core/Startup/startup_stm32f103c8tx.s create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Device/ST/STM32F1xx/LICENSE.txt create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/cmsis_armcc.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/cmsis_armclang.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/cmsis_compiler.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/cmsis_gcc.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/cmsis_iccarm.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/cmsis_version.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_armv8mbl.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_armv8mml.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_cm0.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_cm0plus.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_cm1.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_cm23.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_cm3.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_cm33.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_cm4.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_cm7.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_sc000.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/core_sc300.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/mpu_armv7.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/mpu_armv8.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/Include/tz_context.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/CMSIS/LICENSE.txt create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/Motion_Profiler/Inc/motion_profiler.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/Motion_Profiler/Src/motion_profiler.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_adc_ex.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_can.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_dma_ex.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_exti.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash_ex.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_gpio_ex.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2c.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_pwr.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_rcc_ex.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_spi.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim_ex.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_adc.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_bus.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_cortex.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_dma.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_exti.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_gpio.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_i2c.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_pwr.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_rcc.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_spi.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_system.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_tim.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_utils.h create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/LICENSE.txt create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_can.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c create mode 100644 firmware/STM32 Drivers/Motion_Profiler/Motion_Profiler.ioc create mode 100644 firmware/STM32 Drivers/Motion_Profiler/STM32F103C8TX_FLASH.ld diff --git a/firmware/RAD/release/.cproject b/firmware/RAD/release/.cproject index 316d9ff4..e28343e2 100644 --- a/firmware/RAD/release/.cproject +++ b/firmware/RAD/release/.cproject @@ -38,6 +38,7 @@ + @@ -60,6 +61,7 @@ + @@ -69,6 +71,7 @@