mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-13 18:14:19 -03:00
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; }
|
AP_HAL::Semaphore *get_semaphore() { return nullptr; }
|
||||||
|
|
||||||
/* See AP_HAL::Device::register_periodic_callback() */
|
/* See AP_HAL::Device::register_periodic_callback() */
|
||||||
AP_HAL::Device::PeriodicHandle *register_periodic_callback(
|
AP_HAL::Device::PeriodicHandle register_periodic_callback(
|
||||||
uint32_t period_usec, AP_HAL::MemberProc) override
|
uint32_t period_usec, AP_HAL::Device::PeriodicCb) override
|
||||||
{
|
{
|
||||||
return nullptr;
|
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() */
|
/* See AP_HAL::Device::get_fd() */
|
||||||
int get_fd() { return -1; }
|
int get_fd() { return -1; }
|
||||||
|
@ -63,11 +63,11 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* See AP_HAL::Device::register_periodic_callback() */
|
/* See AP_HAL::Device::register_periodic_callback() */
|
||||||
AP_HAL::Device::PeriodicHandle *register_periodic_callback(
|
AP_HAL::Device::PeriodicHandle register_periodic_callback(
|
||||||
uint32_t period_usec, AP_HAL::MemberProc) override
|
uint32_t period_usec, AP_HAL::Device::PeriodicCb) override
|
||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
};
|
}
|
||||||
|
|
||||||
/* See AP_HAL::Device::get_fd() */
|
/* See AP_HAL::Device::get_fd() */
|
||||||
int get_fd() override { return -1; }
|
int get_fd() override { return -1; }
|
||||||
|
Loading…
Reference in New Issue
Block a user