mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-14 12:02:38 +08:00
AP_InertialSensor_MPU6000: uses new semaphores
* some refactoring to fix differences between timerprocess and non-timerprocess usage
This commit is contained in:
1 parent
5d91f342bb
commit
d808c19c10
2 files changed
+69
-49
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -52,11 +52,13 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
static void read_data();
|
||||
static bool data_ready();
|
||||
static void poll_data(uint32_t now);
|
||||
static void _read_data_from_timerprocess();
|
||||
static void _read_data_transaction();
|
||||
static bool _data_ready();
|
||||
static void _poll_data(uint32_t now);
|
||||
static AP_HAL::DigitalSource *_drdy_pin;
|
||||
static uint8_t register_read( uint8_t reg );
|
||||
static uint8_t _register_read( uint8_t reg );
|
||||
static bool _register_read_from_timerprocess( uint8_t reg, uint8_t *val );
|
||||
static void register_write( uint8_t reg, uint8_t val );
|
||||
void wait_for_sample();
|
||||
void hardware_init(Sample_rate sample_rate);
|
||||
|
||||
Reference in new issue
Block a user