diff options
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/Phy_802_15_4/Phy_802_15_4_Cli/STM32CubeIDE/Application/Startup/app_lld_tests_iar_asm.s')
-rw-r--r-- | Projects/P-NUCLEO-WB55.Nucleo/Applications/Phy_802_15_4/Phy_802_15_4_Cli/STM32CubeIDE/Application/Startup/app_lld_tests_iar_asm.s | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Phy_802_15_4/Phy_802_15_4_Cli/STM32CubeIDE/Application/Startup/app_lld_tests_iar_asm.s b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Phy_802_15_4/Phy_802_15_4_Cli/STM32CubeIDE/Application/Startup/app_lld_tests_iar_asm.s new file mode 100644 index 000000000..b770df4df --- /dev/null +++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Phy_802_15_4/Phy_802_15_4_Cli/STM32CubeIDE/Application/Startup/app_lld_tests_iar_asm.s @@ -0,0 +1,84 @@ +;/** +; ****************************************************************************** +; * @file app_lld_tests_iar_asm.s +; * @brief Common functionnalities for RF LLD tests that must be writen +; * in assembler for IAR compilator +; ****************************************************************************** +; * @attention +; * +; * <h2><center>© COPYRIGHT 2018 STMicroelectronics</center></h2> +; * +; ****************************************************************************** +; */ +; +;/** +; * @brief Active polling for a given delay +; * @param microsec the delay in us unit +; * +; * Caution: +; * - This function has been implemented for system clock set to 16MHz. It must +; * be rewiewed (twice more NOP) for 32Mhz config. +; * - This function can be interrupted if used in interruptible part of code. +; * - Be carefull with the use of critical section that can interrupt the reel +; * time during input microsec value. +; * - If 0 is given as input +; */ + .global us_delay_16m + .section .text.us_delay_16m +us_delay_16m: + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + SUB R0, R0, #1 + BHI us_delay_16m + BX LR + + .global us_delay_32m + .section .text.us_delay_32m + +us_delay_32m: + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + SUB R0, R0, #1 + BHI us_delay_32m + BX LR + + + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****/ |