APM:Libraries
|
#include <Scheduler.h>
Public Member Functions | |
Scheduler () | |
void | init () |
void | delay (uint16_t ms) override |
void | delay_microseconds (uint16_t us) override |
void | delay_microseconds_boost (uint16_t us) override |
void | boost_end (void) override |
void | register_timer_process (AP_HAL::MemberProc) override |
void | register_io_process (AP_HAL::MemberProc) override |
void | register_timer_failsafe (AP_HAL::Proc, uint32_t period_us) override |
void | suspend_timer_procs () override |
void | resume_timer_procs () override |
void | reboot (bool hold_in_bootloader) override |
bool | in_main_thread () const override |
void | system_initialized () |
void | hal_initialized () |
bool | check_called_boost (void) |
void * | disable_interrupts_save (void) override |
void | restore_interrupts (void *) override |
![]() | |
Scheduler () | |
virtual void | register_delay_callback (AP_HAL::Proc, uint16_t min_time_ms) |
virtual bool | in_delay_callback () const |
virtual void | stop_clock (uint64_t time_usec) |
virtual void | create_uavcan_thread () |
virtual void | call_delay_cb () |
Private Member Functions | |
void | _run_timers (bool called_from_timer_thread) |
void | _run_io (void) |
Static Private Member Functions | |
static void | _timer_thread (void *arg) |
static void | _rcin_thread (void *arg) |
static void | _io_thread (void *arg) |
static void | _storage_thread (void *arg) |
static void | _uart_thread (void *arg) |
static void | _toneAlarm_thread (void *arg) |
Private Attributes | |
bool | _initialized |
volatile bool | _hal_initialized |
AP_HAL::Proc | _failsafe |
bool | _called_boost |
bool | _priority_boosted |
volatile bool | _timer_suspended |
AP_HAL::MemberProc | _timer_proc [CHIBIOS_SCHEDULER_MAX_TIMER_PROCS] |
uint8_t | _num_timer_procs |
volatile bool | _in_timer_proc |
AP_HAL::MemberProc | _io_proc [CHIBIOS_SCHEDULER_MAX_TIMER_PROCS] |
uint8_t | _num_io_procs |
volatile bool | _in_io_proc |
volatile bool | _timer_event_missed |
thread_t * | _timer_thread_ctx |
thread_t * | _rcin_thread_ctx |
thread_t * | _io_thread_ctx |
thread_t * | _storage_thread_ctx |
thread_t * | _toneAlarm_thread_ctx |
Additional Inherited Members | |
![]() | |
uint16_t | _min_delay_cb_ms |
Definition at line 62 of file Scheduler.h.
Scheduler::Scheduler | ( | ) |
Definition at line 51 of file Scheduler.cpp.
|
staticprivate |
Definition at line 379 of file Scheduler.cpp.
Referenced by init().
|
staticprivate |
Definition at line 331 of file Scheduler.cpp.
Referenced by init().
|
private |
Definition at line 360 of file Scheduler.cpp.
Referenced by _io_thread().
|
private |
Definition at line 263 of file Scheduler.cpp.
Referenced by _timer_thread(), and resume_timer_procs().
|
staticprivate |
Definition at line 394 of file Scheduler.cpp.
Referenced by init().
|
staticprivate |
Definition at line 294 of file Scheduler.cpp.
Referenced by init().
|
staticprivate |
|
staticprivate |
|
overridevirtual |
Reimplemented from AP_HAL::Scheduler.
Definition at line 134 of file Scheduler.cpp.
bool Scheduler::check_called_boost | ( | void | ) |
Definition at line 163 of file Scheduler.cpp.
Referenced by hal_initialized(), and THD_FUNCTION().
|
overridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 172 of file Scheduler.cpp.
|
overridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 102 of file Scheduler.cpp.
Referenced by _io_thread(), _rcin_thread(), _storage_thread(), _timer_thread(), delay(), and delay_microseconds_boost().
|
overridevirtual |
Reimplemented from AP_HAL::Scheduler.
Definition at line 150 of file Scheduler.cpp.
|
overridevirtual |
Reimplemented from AP_HAL::Scheduler.
Definition at line 428 of file Scheduler.cpp.
Referenced by hal_initialized(), and reboot().
|
inline |
Definition at line 82 of file Scheduler.h.
Referenced by THD_FUNCTION().
|
overridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 409 of file Scheduler.cpp.
Referenced by boost_end(), delay(), and delay_microseconds_boost().
|
virtual |
Implements AP_HAL::Scheduler.
Definition at line 54 of file Scheduler.cpp.
|
overridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 239 of file Scheduler.cpp.
|
overridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 204 of file Scheduler.cpp.
|
overridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 220 of file Scheduler.cpp.
|
overridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 188 of file Scheduler.cpp.
|
overridevirtual |
Reimplemented from AP_HAL::Scheduler.
Definition at line 436 of file Scheduler.cpp.
Referenced by hal_initialized().
|
overridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 230 of file Scheduler.cpp.
|
overridevirtual |
Implements AP_HAL::Scheduler.
Definition at line 225 of file Scheduler.cpp.
|
virtual |
Implements AP_HAL::Scheduler.
Definition at line 414 of file Scheduler.cpp.
|
private |
Definition at line 102 of file Scheduler.h.
Referenced by check_called_boost(), and delay_microseconds_boost().
|
private |
Definition at line 101 of file Scheduler.h.
Referenced by _run_timers(), and register_timer_failsafe().
|
private |
Definition at line 100 of file Scheduler.h.
Referenced by _io_thread(), _rcin_thread(), _storage_thread(), _timer_thread(), and hal_initialized().
|
private |
Definition at line 113 of file Scheduler.h.
Referenced by _run_io().
|
private |
Definition at line 109 of file Scheduler.h.
Referenced by _run_timers().
|
private |
Definition at line 99 of file Scheduler.h.
Referenced by system_initialized().
|
private |
Definition at line 111 of file Scheduler.h.
Referenced by _run_io(), and register_io_process().
|
private |
Definition at line 119 of file Scheduler.h.
Referenced by init().
|
private |
Definition at line 112 of file Scheduler.h.
Referenced by _run_io(), and register_io_process().
|
private |
Definition at line 108 of file Scheduler.h.
Referenced by _run_timers(), and register_timer_process().
|
private |
Definition at line 103 of file Scheduler.h.
Referenced by boost_end(), and delay_microseconds_boost().
|
private |
Definition at line 118 of file Scheduler.h.
Referenced by init().
|
private |
Definition at line 120 of file Scheduler.h.
Referenced by init().
|
private |
Definition at line 115 of file Scheduler.h.
Referenced by _run_timers(), and resume_timer_procs().
|
private |
Definition at line 107 of file Scheduler.h.
Referenced by _run_timers(), and register_timer_process().
|
private |
Definition at line 105 of file Scheduler.h.
Referenced by _run_io(), _run_timers(), resume_timer_procs(), and suspend_timer_procs().
|
private |
Definition at line 117 of file Scheduler.h.
Referenced by init().
|
private |
Definition at line 121 of file Scheduler.h.
Referenced by init().