From 49383b1b3249fa05f383c241bda0f58d4c763ee2 Mon Sep 17 00:00:00 2001 From: Attila BODY Date: Mon, 10 Feb 2020 15:06:45 +0100 Subject: [PATCH] WIP --- .cproject | 32 +- .gitignore | 1 + .mxproject | 10 +- App/application.cpp | 66 ++++ App/application.h | 49 +++ App/{globals.c => globals.cpp} | 1 + App/globals.h | 7 + App/ili9341.cpp | 204 ++++++++-- App/ili9341.h | 33 +- App/interrupt_handlers.cpp | 25 +- App/interrupt_handlers.h | 4 + App/mainloop.cpp | 55 --- App/mainloop.h | 27 -- .../Device/ST/STM32F4xx/Include/stm32f407xx.h | 8 +- .../Device/ST/STM32F4xx/Include/stm32f4xx.h | 4 +- .../Inc/Legacy/stm32_hal_legacy.h | 367 +++++++++++++++++- .../STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h | 12 + .../Inc/stm32f4xx_hal_crc.h | 184 +++++++++ .../Inc/stm32f4xx_hal_exti.h | 230 ++++++++--- .../Inc/stm32f4xx_hal_gpio.h | 2 +- .../Inc/stm32f4xx_hal_tim.h | 245 +++++++----- .../Inc/stm32f4xx_hal_tim_ex.h | 47 ++- .../Inc/stm32f4xx_ll_gpio.h | 5 +- .../Inc/stm32f4xx_ll_usart.h | 8 +- .../STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c | 20 +- .../Src/stm32f4xx_hal_crc.c | 330 ++++++++++++++++ .../Src/stm32f4xx_hal_dma.c | 1 - .../Src/stm32f4xx_hal_exti.c | 235 ++++++++--- .../Src/stm32f4xx_hal_flash.c | 8 +- .../Src/stm32f4xx_hal_gpio.c | 57 +-- .../Src/stm32f4xx_hal_rcc.c | 23 +- .../Src/stm32f4xx_hal_rcc_ex.c | 18 +- .../Src/stm32f4xx_hal_tim.c | 133 ++++--- .../Src/stm32f4xx_hal_tim_ex.c | 47 ++- .../Src/stm32f4xx_ll_gpio.c | 34 +- .../Src/stm32f4xx_ll_rcc.c | 12 +- .../Src/stm32f4xx_ll_usart.c | 4 +- F407_test.ioc | 55 ++- Inc/crc.h | 58 +++ Inc/dma.h | 2 +- Inc/fsmc.h | 2 +- Inc/gpio.h | 2 +- Inc/stm32_assert.h | 4 +- Inc/stm32f4xx_hal_conf.h | 8 +- Inc/stm32f4xx_it.h | 2 + Inc/usart.h | 2 +- STM32F407VETX_FLASH.ld | 4 +- Src/crc.c | 77 ++++ Src/dma.c | 8 +- Src/fsmc.c | 3 +- Src/gpio.c | 2 +- Src/main.c | 6 +- Src/stm32f4xx_it.c | 30 +- Src/usart.c | 45 ++- components/f4ll_cpp/crcscheduler.cpp | 190 +++++++++ components/f4ll_cpp/crcscheduler.h | 68 ++++ components/f4ll_cpp/dmahelper.cpp | 28 +- components/f4ll_cpp/dmahelper.h | 26 +- components/f4ll_cpp/memcpydma.cpp | 35 ++ components/f4ll_cpp/memcpydma.h | 30 ++ components/f4ll_cpp/packetuart.cpp | 282 ++++++++++++++ components/f4ll_cpp/packetuart.h | 103 +++++ components/f4ll_cpp/serialconsole.h | 161 ++++++++ {App => components/f4ll_cpp}/singleton.h | 0 components/f4ll_cpp/strutil.c | 110 ++++++ components/f4ll_cpp/strutil.h | 31 ++ components/f4ll_cpp/uartbase.cpp | 46 +++ components/f4ll_cpp/uartbase.h | 27 ++ 68 files changed, 3385 insertions(+), 610 deletions(-) create mode 100644 App/application.cpp create mode 100644 App/application.h rename App/{globals.c => globals.cpp} (70%) delete mode 100644 App/mainloop.cpp delete mode 100644 App/mainloop.h create mode 100644 Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h create mode 100644 Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c create mode 100644 Inc/crc.h create mode 100644 Src/crc.c create mode 100644 components/f4ll_cpp/crcscheduler.cpp create mode 100644 components/f4ll_cpp/crcscheduler.h create mode 100644 components/f4ll_cpp/memcpydma.cpp create mode 100644 components/f4ll_cpp/memcpydma.h create mode 100644 components/f4ll_cpp/packetuart.cpp create mode 100644 components/f4ll_cpp/packetuart.h create mode 100644 components/f4ll_cpp/serialconsole.h rename {App => components/f4ll_cpp}/singleton.h (100%) create mode 100644 components/f4ll_cpp/strutil.c create mode 100644 components/f4ll_cpp/strutil.h create mode 100644 components/f4ll_cpp/uartbase.cpp create mode 100644 components/f4ll_cpp/uartbase.h diff --git a/.cproject b/.cproject index 1410f48..862f96a 100644 --- a/.cproject +++ b/.cproject @@ -24,7 +24,7 @@