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

use none-blocking call and callback for R_FLASH_* #2

Open HirokiIshiguro opened 5 years ago

HirokiIshiguro commented 5 years ago

Is your feature request related to a problem? Please describe. related commit: da8be8c4ae66da1ae1824352806ec4598c11261f

I would like to improve FLASH erase/write from blocking with disable interrupt to none-blocking without disable interrupt with serializing the process.

RFLASH functions are not thread safe. I added disable interrupt code before RFLASH and added enable interrupt code after RFLASH*. But this is not good implementation because user cannot execute other code during erase/write FLASH. This might have take a time as ms order. I will consider serializing the calls in next.

Describe the solution you'd like To use none-blocking without disable interrupt with serializing the process.

Describe alternatives you've considered No.

Additional context No.