AP_HAL_Empty: update Device interface

This commit is contained in:
Lucas De Marchi 2016-07-19 09:44:51 -03:00
parent 37de995960
commit 7669d54265
2 changed files with 13 additions and 6 deletions

View File

@ -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; }

View File

@ -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; }