renesas-rx / amazon-freertos

A fork/prototype of the Amazon FreeRTOS to support Renesas RX MCUs. Please refer to our wiki for more details.
https://github.com/renesas-rx/amazon-freertos/wiki
MIT License
7 stars 6 forks source link

FreeRTOS system root timer implementation #4

Open HirokiIshiguro opened 5 years ago

HirokiIshiguro commented 5 years ago

Is your feature request related to a problem? Please describe. FreeRTOS port layer uses CMT register in directly in vApplicationSetupTimerInterrupt(). https://github.com/renesas-rx/amazon-freertos/blob/master/lib/FreeRTOS/portable/Renesas/RX600v2/port.c

So, CMT module has to detect which channel is used by FreeRTOS. https://github.com/renesas-rx/amazon-freertos/blob/master/lib/third_party/mcu_vendor/renesas/FIT/RDP_v1.15_modified/r_cmt_rx/src/r_cmt_rx.c

It is very confusing.

Describe the solution you'd like port.c should use r_cmt APIs.

Describe alternatives you've considered None

Additional context Need to pull request to Amazon FreeRTOS trunk.