AP_HAL_Empty: update Device interface
This commit is contained in:
parent
37de995960
commit
7669d54265
@ -65,11 +65,18 @@ public:
|
||||
AP_HAL::Semaphore *get_semaphore() { return nullptr; }
|
||||
|
||||
/* See AP_HAL::Device::register_periodic_callback() */
|
||||
AP_HAL::Device::PeriodicHandle *register_periodic_callback(
|
||||
uint32_t period_usec, AP_HAL::MemberProc) override
|
||||
AP_HAL::Device::PeriodicHandle register_periodic_callback(
|
||||
uint32_t period_usec, AP_HAL::Device::PeriodicCb) override
|
||||
{
|
||||
return nullptr;
|
||||
};
|
||||
}
|
||||
|
||||
/* See Device::adjust_periodic_callback() */
|
||||
virtual bool adjust_periodic_callback(
|
||||
AP_HAL::Device::PeriodicHandle h, uint32_t period_usec) override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/* See AP_HAL::Device::get_fd() */
|
||||
int get_fd() { return -1; }
|
||||
|
@ -63,11 +63,11 @@ public:
|
||||
}
|
||||
|
||||
/* See AP_HAL::Device::register_periodic_callback() */
|
||||
AP_HAL::Device::PeriodicHandle *register_periodic_callback(
|
||||
uint32_t period_usec, AP_HAL::MemberProc) override
|
||||
AP_HAL::Device::PeriodicHandle register_periodic_callback(
|
||||
uint32_t period_usec, AP_HAL::Device::PeriodicCb) override
|
||||
{
|
||||
return nullptr;
|
||||
};
|
||||
}
|
||||
|
||||
/* See AP_HAL::Device::get_fd() */
|
||||
int get_fd() override { return -1; }
|
||||
|
Loading…
Reference in New Issue
Block a user