mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9992 from pan-/ble-use-low-power-ticker
BLE - Use low power timing primitivespull/10081/head
commit
9ecde429f9
|
@ -30,7 +30,8 @@
|
|||
#include "ble/pal/ConnectionEventMonitor.h"
|
||||
#include "ble/pal/Deprecated.h"
|
||||
|
||||
#include "drivers/Timeout.h"
|
||||
#include "drivers/LowPowerTimeout.h"
|
||||
#include "drivers/LowPowerTicker.h"
|
||||
#include "platform/mbed_error.h"
|
||||
|
||||
namespace ble {
|
||||
|
@ -802,9 +803,9 @@ private:
|
|||
bool _random_address_rotating;
|
||||
|
||||
bool _scan_enabled;
|
||||
mbed::Timeout _advertising_timeout;
|
||||
mbed::Timeout _scan_timeout;
|
||||
mbed::Ticker _address_rotation_ticker;
|
||||
mbed::LowPowerTimeout _advertising_timeout;
|
||||
mbed::LowPowerTimeout _scan_timeout;
|
||||
mbed::LowPowerTicker _address_rotation_ticker;
|
||||
|
||||
template<size_t bit_size>
|
||||
struct BitArray {
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include "ble/generic/GenericGap.h"
|
||||
#include "ble/generic/GenericSecurityManager.h"
|
||||
#include "SimpleEventQueue.h"
|
||||
#include "Timer.h"
|
||||
#include "drivers/LowPowerTimer.h"
|
||||
#include "SigningMonitorProxy.h"
|
||||
#include "CordioPalSecurityManager.h"
|
||||
#include "BleImplementationForward.h"
|
||||
|
@ -171,7 +171,7 @@ private:
|
|||
|
||||
::BLE::InstanceID_t instanceID;
|
||||
mutable SimpleEventQueue _event_queue;
|
||||
mbed::Timer _timer;
|
||||
mbed::LowPowerTimer _timer;
|
||||
uint64_t _last_update_us;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue