| 142 | } |
| 143 | |
| 144 | void Scheduler::_debug_stack() |
| 145 | { |
| 146 | uint64_t now = AP_HAL::millis64(); |
| 147 | |
| 148 | if (now - _last_stack_debug_msec > 5000) { |
| 149 | fprintf(stderr, "Stack Usage:\n" |
| 150 | "\ttimer = %zu\n" |
| 151 | "\tio = %zu\n" |
| 152 | "\trcin = %zu\n" |
| 153 | "\tuart = %zu\n", |
| 154 | _timer_thread.get_stack_usage(), |
| 155 | _io_thread.get_stack_usage(), |
| 156 | _rcin_thread.get_stack_usage(), |
| 157 | _uart_thread.get_stack_usage()); |
| 158 | _last_stack_debug_msec = now; |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | void Scheduler::microsleep(uint32_t usec) |
| 163 | { |
nothing calls this directly
no test coverage detected