File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,16 @@ pub fn bkpt() {
26
26
27
27
/// Blocks the program for *at least* `n` instruction cycles
28
28
///
29
- /// This is implemented in assembly so its execution time is the same regardless of the optimization
30
- /// level.
29
+ /// This is implemented in assembly so its execution time is independent of the optimization
30
+ /// level, however it is dependent on the specific architecture and core configuration .
31
31
///
32
- /// NOTE that the delay can take much longer if interrupts are serviced during its execution.
32
+ /// NOTE that the delay can take much longer if interrupts are serviced during its execution
33
+ /// and the execution time may vary with other factors. This delay is mainly useful for simple
34
+ /// timer-less initialization of peripherals if and only if accurate timing is not essential. In
35
+ /// any other case please use a more accurate method to produce a delay.
33
36
#[ inline]
34
37
pub fn delay ( _n : u32 ) {
35
- // NOTE(divide by 4) is easier to compute than `/ 3` is it's just a shift (`>> 2`).
38
+ // NOTE(divide by 4) is easier to compute than `/ 3` because it's just a shift (`>> 2`).
36
39
match ( ) {
37
40
#[ cfg( all( cortex_m, feature = "inline-asm" ) ) ]
38
41
( ) => unsafe {
You can’t perform that action at this time.
0 commit comments