Merge pull request #9992 from pan-/ble-use-low-power-ticker

BLE - Use low power timing primitives
pull/10081/head
Cruz Monrreal 2019-03-16 22:56:43 -05:00 committed by GitHub
commit 9ecde429f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -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 {

View File

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