diff --git a/src/common/platforms/arm/arm_nsleep100_m3.S b/src/common/platforms/arm/arm_nsleep100_m3.S index cae920e3..0ce16bf5 100644 --- a/src/common/platforms/arm/arm_nsleep100_m3.S +++ b/src/common/platforms/arm/arm_nsleep100_m3.S @@ -26,11 +26,7 @@ .global mgos_nsleep100_impl .global mgos_nsleep100_loop_count -#ifdef STM32 -.section .RamFunc.mgos_nsleep100_impl -#else -.section .iram.mgos_nsleep100_impl -#endif +.section .text.IRAM.mgos_nsleep100_impl .type mgos_nsleep100_impl, %function .align 4 diff --git a/src/common/platforms/arm/arm_nsleep100_m4.S b/src/common/platforms/arm/arm_nsleep100_m4.S index afb596fa..ae5e0a5a 100644 --- a/src/common/platforms/arm/arm_nsleep100_m4.S +++ b/src/common/platforms/arm/arm_nsleep100_m4.S @@ -26,10 +26,10 @@ .global mgos_nsleep100_impl .global mgos_nsleep100_loop_count -#ifdef STM32 -.section .RamFunc.mgos_nsleep100_impl -#else +#if defined(TARGET_IS_CC3200) || defined(TARGET_IS_CC3220) .section .iram.mgos_nsleep100_impl +#else +.section .text.IRAM.mgos_nsleep100_impl #endif .type mgos_nsleep100_impl, %function .align 4 diff --git a/src/common/platforms/arm/arm_nsleep100_m7.S b/src/common/platforms/arm/arm_nsleep100_m7.S index 36c878fd..be6da6f7 100644 --- a/src/common/platforms/arm/arm_nsleep100_m7.S +++ b/src/common/platforms/arm/arm_nsleep100_m7.S @@ -26,11 +26,7 @@ .global mgos_nsleep100_impl .global mgos_nsleep100_loop_count -#ifdef STM32 -.section .RamFunc.mgos_nsleep100_impl -#else -.section .iram.mgos_nsleep100_impl -#endif +.section .text.IRAM.mgos_nsleep100_impl .type mgos_nsleep100_impl, %function .align 4