STMicroelectronics / x-cube-azrtos-h7

X-CUBE-AZRTOS-H7 (Azure RTOS Software Expansion for STM32Cube) provides a full integration of Microsoft Azure RTOS in the STM32Cube environment for the STM32H7 series of microcontrollers.
https://www.st.com/en/embedded-software/x-cube-azrtos-h7.html
Other
149 stars 56 forks source link

Update FileX driver's state after UNINIT #32

Open HaoboGu opened 1 year ago

HaoboGu commented 1 year ago

In filex nor flash driver, current_driver->initialized is set to FX_TRUE after FX_DRIVER_INIT, but this state is not set to FX_FALSE in FX_DRIVER_UNINIT, here is the code:

https://github.com/STMicroelectronics/x-cube-azrtos-h7/blob/437ec3bb3455a26c535de52f0fc7f553c739acb7/Middlewares/ST/filex/common/drivers/fx_stm32_levelx_nor_driver.c#L135C1-L139C1

Is it a bug or by design?