mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: drivers/Ticker.h
- Revision:
- 189:f392fc9709a3
- Parent:
- 188:bcfe06ba3d64
--- a/drivers/Ticker.h Thu Nov 08 11:46:34 2018 +0000 +++ b/drivers/Ticker.h Wed Feb 20 22:31:08 2019 +0000 @@ -1,5 +1,6 @@ /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -116,17 +117,7 @@ * for threads scheduling. * */ - void attach_us(Callback<void()> func, us_timestamp_t t) - { - core_util_critical_section_enter(); - // lock only for the initial callback setup and this is not low power ticker - if (!_function && _lock_deepsleep) { - sleep_manager_lock_deep_sleep(); - } - _function = func; - setup(t); - core_util_critical_section_exit(); - } + void attach_us(Callback<void()> func, us_timestamp_t t); /** Attach a member function to be called by the Ticker, specifying the interval in microseconds *