Opencv 3.1 project on GR-PEACH board
Fork of gr-peach-opencv-project by
drivers/LowPowerTimeout.h@167:1657b442184c, 2017-06-29 (annotated)
- Committer:
- thedo
- Date:
- Thu Jun 29 11:01:39 2017 +0000
- Revision:
- 167:1657b442184c
Opencv 3.1 project on GR-PEACH board, 4 apps
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thedo | 167:1657b442184c | 1 | /* mbed Microcontroller Library |
thedo | 167:1657b442184c | 2 | * Copyright (c) 2015 ARM Limited |
thedo | 167:1657b442184c | 3 | * |
thedo | 167:1657b442184c | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
thedo | 167:1657b442184c | 5 | * you may not use this file except in compliance with the License. |
thedo | 167:1657b442184c | 6 | * You may obtain a copy of the License at |
thedo | 167:1657b442184c | 7 | * |
thedo | 167:1657b442184c | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
thedo | 167:1657b442184c | 9 | * |
thedo | 167:1657b442184c | 10 | * Unless required by applicable law or agreed to in writing, software |
thedo | 167:1657b442184c | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
thedo | 167:1657b442184c | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
thedo | 167:1657b442184c | 13 | * See the License for the specific language governing permissions and |
thedo | 167:1657b442184c | 14 | * limitations under the License. |
thedo | 167:1657b442184c | 15 | */ |
thedo | 167:1657b442184c | 16 | #ifndef MBED_LOWPOWERTIMEOUT_H |
thedo | 167:1657b442184c | 17 | #define MBED_LOWPOWERTIMEOUT_H |
thedo | 167:1657b442184c | 18 | |
thedo | 167:1657b442184c | 19 | #include "platform/platform.h" |
thedo | 167:1657b442184c | 20 | |
thedo | 167:1657b442184c | 21 | #if defined (DEVICE_LOWPOWERTIMER) || defined(DOXYGEN_ONLY) |
thedo | 167:1657b442184c | 22 | |
thedo | 167:1657b442184c | 23 | #include "hal/lp_ticker_api.h" |
thedo | 167:1657b442184c | 24 | #include "drivers/LowPowerTicker.h" |
thedo | 167:1657b442184c | 25 | |
thedo | 167:1657b442184c | 26 | namespace mbed { |
thedo | 167:1657b442184c | 27 | /** \addtogroup drivers */ |
thedo | 167:1657b442184c | 28 | |
thedo | 167:1657b442184c | 29 | /** Low Power Timout |
thedo | 167:1657b442184c | 30 | * |
thedo | 167:1657b442184c | 31 | * @note Synchronization level: Interrupt safe |
thedo | 167:1657b442184c | 32 | * @ingroup drivers |
thedo | 167:1657b442184c | 33 | */ |
thedo | 167:1657b442184c | 34 | class LowPowerTimeout : public LowPowerTicker { |
thedo | 167:1657b442184c | 35 | |
thedo | 167:1657b442184c | 36 | private: |
thedo | 167:1657b442184c | 37 | virtual void handler(void) { |
thedo | 167:1657b442184c | 38 | _function.call(); |
thedo | 167:1657b442184c | 39 | } |
thedo | 167:1657b442184c | 40 | }; |
thedo | 167:1657b442184c | 41 | |
thedo | 167:1657b442184c | 42 | } |
thedo | 167:1657b442184c | 43 | |
thedo | 167:1657b442184c | 44 | #endif |
thedo | 167:1657b442184c | 45 | |
thedo | 167:1657b442184c | 46 | #endif |
thedo | 167:1657b442184c | 47 |