Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
LowPowerTicker.h@98:8ab26030e058, 2015-04-29 (annotated)
- Committer:
- Kojto
- Date:
- Wed Apr 29 10:16:23 2015 +0100
- Revision:
- 98:8ab26030e058
- Child:
- 122:f9eeca106725
Release 98 of the mbed library
Changes:
- Silabs new targets (Giant, Zero, Happy, Leopard, Wonder Geckos)
- Asynchronous SPI, I2C, Serial
- LowPower classes
- Nordic - nordic SDK v8.0 update
- Teensy - gcc arm fix for startup
- Nucleo F411 - usb freq fix
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| Kojto | 98:8ab26030e058 | 1 | /* mbed Microcontroller Library | 
| Kojto | 98:8ab26030e058 | 2 | * Copyright (c) 2015 ARM Limited | 
| Kojto | 98:8ab26030e058 | 3 | * | 
| Kojto | 98:8ab26030e058 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 
| Kojto | 98:8ab26030e058 | 5 | * you may not use this file except in compliance with the License. | 
| Kojto | 98:8ab26030e058 | 6 | * You may obtain a copy of the License at | 
| Kojto | 98:8ab26030e058 | 7 | * | 
| Kojto | 98:8ab26030e058 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 | 
| Kojto | 98:8ab26030e058 | 9 | * | 
| Kojto | 98:8ab26030e058 | 10 | * Unless required by applicable law or agreed to in writing, software | 
| Kojto | 98:8ab26030e058 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, | 
| Kojto | 98:8ab26030e058 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
| Kojto | 98:8ab26030e058 | 13 | * See the License for the specific language governing permissions and | 
| Kojto | 98:8ab26030e058 | 14 | * limitations under the License. | 
| Kojto | 98:8ab26030e058 | 15 | */ | 
| Kojto | 98:8ab26030e058 | 16 | #ifndef MBED_LOWPOWERTICKER_H | 
| Kojto | 98:8ab26030e058 | 17 | #define MBED_LOWPOWERTICKER_H | 
| Kojto | 98:8ab26030e058 | 18 | |
| Kojto | 98:8ab26030e058 | 19 | #include "platform.h" | 
| Kojto | 98:8ab26030e058 | 20 | #include "Ticker.h" | 
| Kojto | 98:8ab26030e058 | 21 | |
| Kojto | 98:8ab26030e058 | 22 | #if DEVICE_LOWPOWERTIMER | 
| Kojto | 98:8ab26030e058 | 23 | |
| Kojto | 98:8ab26030e058 | 24 | #include "lp_ticker_api.h" | 
| Kojto | 98:8ab26030e058 | 25 | |
| Kojto | 98:8ab26030e058 | 26 | namespace mbed { | 
| Kojto | 98:8ab26030e058 | 27 | |
| Kojto | 98:8ab26030e058 | 28 | /** Low Power Ticker | 
| Kojto | 98:8ab26030e058 | 29 | */ | 
| Kojto | 98:8ab26030e058 | 30 | class LowPowerTicker : public Ticker { | 
| Kojto | 98:8ab26030e058 | 31 | |
| Kojto | 98:8ab26030e058 | 32 | public: | 
| Kojto | 98:8ab26030e058 | 33 | LowPowerTicker() : Ticker(get_lp_ticker_data()) { | 
| Kojto | 98:8ab26030e058 | 34 | } | 
| Kojto | 98:8ab26030e058 | 35 | |
| Kojto | 98:8ab26030e058 | 36 | virtual ~LowPowerTicker() { | 
| Kojto | 98:8ab26030e058 | 37 | } | 
| Kojto | 98:8ab26030e058 | 38 | }; | 
| Kojto | 98:8ab26030e058 | 39 | |
| Kojto | 98:8ab26030e058 | 40 | } // namespace mbed | 
| Kojto | 98:8ab26030e058 | 41 | |
| Kojto | 98:8ab26030e058 | 42 | #endif | 
| Kojto | 98:8ab26030e058 | 43 | |
| Kojto | 98:8ab26030e058 | 44 | #endif | 


