Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hw/mcu/stm32: Fix WFI in RAM for -O3
Even though function stm32_wfi_from_ram() has attribute to be placed in ram in -03 it can be inlined that can effectively run WFI from flash. Now additional attribute is added to make sure that it is not inlined. bx lr is also removed allowing compiler to make normal exit from function (which in most cases will be bx lr) Signed-off-by: Jerzy Kasenberg <jerzy@apache.org>
- Loading branch information