mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL_PX4: remove unused functions
This commit is contained in:
parent
e0a6d83457
commit
1de0e0a5a6
@ -85,26 +85,6 @@ void PX4Scheduler::init(void *unused)
|
||||
pthread_create(&_storage_thread_ctx, &thread_attr, (pthread_startroutine_t)&PX4::PX4Scheduler::_storage_thread, this);
|
||||
}
|
||||
|
||||
uint64_t PX4Scheduler::micros64()
|
||||
{
|
||||
return AP_HAL::micros64();
|
||||
}
|
||||
|
||||
uint64_t PX4Scheduler::millis64()
|
||||
{
|
||||
return AP_HAL::millis64();
|
||||
}
|
||||
|
||||
uint32_t PX4Scheduler::micros()
|
||||
{
|
||||
return AP_HAL::micros();
|
||||
}
|
||||
|
||||
uint32_t PX4Scheduler::millis()
|
||||
{
|
||||
return AP_HAL::millis();
|
||||
}
|
||||
|
||||
/**
|
||||
delay for a specified number of microseconds using a semaphore wait
|
||||
*/
|
||||
@ -374,20 +354,6 @@ void *PX4Scheduler::_storage_thread(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void PX4Scheduler::panic(const char *errormsg, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, errormsg);
|
||||
vdprintf(1, errormsg, ap);
|
||||
va_end(ap);
|
||||
write(1, "\n", 1);
|
||||
|
||||
hal.scheduler->delay_microseconds(10000);
|
||||
_px4_thread_should_exit = true;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
bool PX4Scheduler::in_timerprocess()
|
||||
{
|
||||
return getpid() != _main_task_pid;
|
||||
|
@ -47,10 +47,6 @@ public:
|
||||
|
||||
void init(void *unused);
|
||||
void delay(uint16_t ms);
|
||||
uint32_t millis();
|
||||
uint32_t micros();
|
||||
uint64_t millis64();
|
||||
uint64_t micros64();
|
||||
void delay_microseconds(uint16_t us);
|
||||
void delay_microseconds_boost(uint16_t us);
|
||||
void register_delay_callback(AP_HAL::Proc, uint16_t min_time_ms);
|
||||
@ -60,7 +56,6 @@ public:
|
||||
void suspend_timer_procs();
|
||||
void resume_timer_procs();
|
||||
void reboot(bool hold_in_bootloader);
|
||||
void panic(const char *errormsg, ...) FORMAT(2, 3) NORETURN;
|
||||
|
||||
bool in_timerprocess();
|
||||
bool system_initializing();
|
||||
|
Loading…
Reference in New Issue
Block a user