mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_HAL_Empty: remove unused functions
This commit is contained in:
parent
c5fc0deee9
commit
420dfc7ce2
@ -16,22 +16,6 @@ void EmptyScheduler::init(void* machtnichts)
|
||||
void EmptyScheduler::delay(uint16_t ms)
|
||||
{}
|
||||
|
||||
uint64_t EmptyScheduler::millis64() {
|
||||
return 10000;
|
||||
}
|
||||
|
||||
uint64_t EmptyScheduler::micros64() {
|
||||
return 200000;
|
||||
}
|
||||
|
||||
uint32_t EmptyScheduler::millis() {
|
||||
return millis64();
|
||||
}
|
||||
|
||||
uint32_t EmptyScheduler::micros() {
|
||||
return micros64();
|
||||
}
|
||||
|
||||
void EmptyScheduler::delay_microseconds(uint16_t us)
|
||||
{}
|
||||
|
||||
@ -71,18 +55,6 @@ bool EmptyScheduler::system_initializing() {
|
||||
void EmptyScheduler::system_initialized()
|
||||
{}
|
||||
|
||||
void EmptyScheduler::panic(const char *errormsg, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, errormsg);
|
||||
hal.console->vprintf(errormsg, ap);
|
||||
va_end(ap);
|
||||
hal.console->printf("\n");
|
||||
|
||||
for(;;);
|
||||
}
|
||||
|
||||
void EmptyScheduler::reboot(bool hold_in_bootloader) {
|
||||
for(;;);
|
||||
}
|
||||
|
@ -9,10 +9,6 @@ public:
|
||||
EmptyScheduler();
|
||||
void init(void* machtnichts);
|
||||
void delay(uint16_t ms);
|
||||
uint32_t millis();
|
||||
uint32_t micros();
|
||||
uint64_t millis64();
|
||||
uint64_t micros64();
|
||||
void delay_microseconds(uint16_t us);
|
||||
void register_delay_callback(AP_HAL::Proc,
|
||||
uint16_t min_time_ms);
|
||||
@ -32,7 +28,6 @@ public:
|
||||
bool system_initializing();
|
||||
void system_initialized();
|
||||
|
||||
void panic(const char *errormsg, ...) FORMAT(2, 3) NORETURN;
|
||||
void reboot(bool hold_in_bootloader);
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user