| 121 | } |
| 122 | |
| 123 | static void cpu_us_delay(rt_uint32_t us) |
| 124 | { |
| 125 | volatile rt_base_t start = cpu_get_cycles(), cycles; |
| 126 | |
| 127 | cycles = ((us * 0x10c7UL) * loops_per_tick[rt_hw_cpu_id()] * RT_TICK_PER_SECOND) >> 32; |
| 128 | |
| 129 | while ((cpu_get_cycles() - start) < cycles) |
| 130 | { |
| 131 | rt_hw_cpu_relax(); |
| 132 | } |
| 133 | } |
| 134 | #endif /* RT_USING_HWTIMER */ |
| 135 | |
| 136 | rt_weak void rt_hw_idle_wfi(void) |
nothing calls this directly
no test coverage detected