Welcome to mirror list, hosted at ThFree Co, Russian Federation.

app_lld_tests_iar_asm.s « EWARM « Phy_802_15_4_Cli « Phy_802_15_4 « Applications « P-NUCLEO-WB55.Nucleo « Projects - github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 987eb201ea004a1b7dae0fde61f83bd49d5335b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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>&copy; 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*****