diff options
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Proximity/Core/Src/app_lld_ble_iar_asm.s')
-rw-r--r-- | Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Proximity/Core/Src/app_lld_ble_iar_asm.s | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Proximity/Core/Src/app_lld_ble_iar_asm.s b/Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Proximity/Core/Src/app_lld_ble_iar_asm.s new file mode 100644 index 000000000..987eb201e --- /dev/null +++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/LLD_BLE/LLD_BLE_Proximity/Core/Src/app_lld_ble_iar_asm.s @@ -0,0 +1,86 @@ +;/** +; ****************************************************************************** +; * @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 +; */ + PUBLIC us_delay_16m + SECTION .text:CODE:NOROOT(3) +us_delay_16m +loop_16m: + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + nop + SUBS R0, R0, #1 + BHI loop_16m + BX LR + + PUBLIC us_delay_32m + SECTION .text:CODE:NOROOT(3) +us_delay_32m +loop_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 + SUBS R0, R0, #1 + BHI loop_32m + BX LR + + END + +;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE***** + |