help :(
Dependencies: FFT
mbed/drivers/LowPowerTicker.h@11:951bbb0385aa, 2020-12-04 (annotated)
- Committer:
- dimitryjl23
- Date:
- Fri Dec 04 18:01:22 2020 +0000
- Revision:
- 11:951bbb0385aa
- Parent:
- 0:d6c9b09b4042
Final :)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
annieluo2 | 0:d6c9b09b4042 | 1 | /* mbed Microcontroller Library |
annieluo2 | 0:d6c9b09b4042 | 2 | * Copyright (c) 2015 ARM Limited |
annieluo2 | 0:d6c9b09b4042 | 3 | * |
annieluo2 | 0:d6c9b09b4042 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
annieluo2 | 0:d6c9b09b4042 | 5 | * you may not use this file except in compliance with the License. |
annieluo2 | 0:d6c9b09b4042 | 6 | * You may obtain a copy of the License at |
annieluo2 | 0:d6c9b09b4042 | 7 | * |
annieluo2 | 0:d6c9b09b4042 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
annieluo2 | 0:d6c9b09b4042 | 9 | * |
annieluo2 | 0:d6c9b09b4042 | 10 | * Unless required by applicable law or agreed to in writing, software |
annieluo2 | 0:d6c9b09b4042 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
annieluo2 | 0:d6c9b09b4042 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
annieluo2 | 0:d6c9b09b4042 | 13 | * See the License for the specific language governing permissions and |
annieluo2 | 0:d6c9b09b4042 | 14 | * limitations under the License. |
annieluo2 | 0:d6c9b09b4042 | 15 | */ |
annieluo2 | 0:d6c9b09b4042 | 16 | #ifndef MBED_LOWPOWERTICKER_H |
annieluo2 | 0:d6c9b09b4042 | 17 | #define MBED_LOWPOWERTICKER_H |
annieluo2 | 0:d6c9b09b4042 | 18 | |
annieluo2 | 0:d6c9b09b4042 | 19 | #include "platform/platform.h" |
annieluo2 | 0:d6c9b09b4042 | 20 | #include "drivers/Ticker.h" |
annieluo2 | 0:d6c9b09b4042 | 21 | |
annieluo2 | 0:d6c9b09b4042 | 22 | #if DEVICE_LOWPOWERTIMER |
annieluo2 | 0:d6c9b09b4042 | 23 | |
annieluo2 | 0:d6c9b09b4042 | 24 | #include "hal/lp_ticker_api.h" |
annieluo2 | 0:d6c9b09b4042 | 25 | |
annieluo2 | 0:d6c9b09b4042 | 26 | namespace mbed { |
annieluo2 | 0:d6c9b09b4042 | 27 | /** \addtogroup drivers */ |
annieluo2 | 0:d6c9b09b4042 | 28 | /** @{*/ |
annieluo2 | 0:d6c9b09b4042 | 29 | |
annieluo2 | 0:d6c9b09b4042 | 30 | /** Low Power Ticker |
annieluo2 | 0:d6c9b09b4042 | 31 | * |
annieluo2 | 0:d6c9b09b4042 | 32 | * @Note Synchronization level: Interrupt safe |
annieluo2 | 0:d6c9b09b4042 | 33 | */ |
annieluo2 | 0:d6c9b09b4042 | 34 | class LowPowerTicker : public Ticker { |
annieluo2 | 0:d6c9b09b4042 | 35 | |
annieluo2 | 0:d6c9b09b4042 | 36 | public: |
annieluo2 | 0:d6c9b09b4042 | 37 | LowPowerTicker() : Ticker(get_lp_ticker_data()) { |
annieluo2 | 0:d6c9b09b4042 | 38 | } |
annieluo2 | 0:d6c9b09b4042 | 39 | |
annieluo2 | 0:d6c9b09b4042 | 40 | virtual ~LowPowerTicker() { |
annieluo2 | 0:d6c9b09b4042 | 41 | } |
annieluo2 | 0:d6c9b09b4042 | 42 | }; |
annieluo2 | 0:d6c9b09b4042 | 43 | |
annieluo2 | 0:d6c9b09b4042 | 44 | } // namespace mbed |
annieluo2 | 0:d6c9b09b4042 | 45 | |
annieluo2 | 0:d6c9b09b4042 | 46 | #endif |
annieluo2 | 0:d6c9b09b4042 | 47 | |
annieluo2 | 0:d6c9b09b4042 | 48 | #endif |
annieluo2 | 0:d6c9b09b4042 | 49 | |
annieluo2 | 0:d6c9b09b4042 | 50 | /** @}*/ |