FOME-Tech / fome-fw

Free Open Motorsports ECU
https://www.fome.tech
Other
35 stars 17 forks source link

re-visit/update ChibiOS FOME customizations doc #387

Open nmschulte opened 4 months ago

nmschulte commented 4 months ago

https://github.com/FOME-Tech/fome-fw/blame/master/firmware/docs/rusEFI_custom_chibios.md#L9

(soon: https://github.com/FOME-Tech/fome-fw/blame/master/firmware/docs/FOME_custom_ChibiOS.md#L9)

# TODO items below this line need to be reviewed, seems to NOT be up to date with 20.3 patch

*) minor OS monitoring and maintainability fixes:
   chDbgStackOverflowPanic allows to know which thread has stack overflow
   ON_LOCK_HOOK is used to measure durations of critical sections

*) MMC timeout waitCounter

*) Support for half/timeout-ISR for UART-DMA in /os/hal/include/uart.h and os/hal/ports/STM32/LLD/USARTv1/uart_lld.* by andreika

Weird changes without an explanation:

3) Uncommented "ASMXOBJS" support in os/common/ports/ARMCMx/compilers/GCC/rules.mk

8) Use local "struct tm *t" in os/hal/ports/STM32/LLD/RTCv1/rtc_lld.c

11) Fixes for UART4-UART8, USART_ISR_* flags USART_CR1_M in os/hal/ports/STM32/LLD/USARTv2/serial_lld.c and os/hal/ports/STM32/LLD/USARTv2/uart_lld.c

15) Use QueryPerformanceCounter() instead of POSIX gettimeofday() in os/rt/ports/SIMIA32/chcore.c

New files: 
    os/common/startup/SIMIA32/compilers/GCC/rules.mk
    os/hal/ports/simulator/posix/*