Theo/Ludo/Joe / ER2_Labyrinthe_V3

Dependencies:   mbed

Committer:
joehatier
Date:
Mon Jun 24 12:37:09 2019 +0000
Revision:
4:31025db8e579
Parent:
0:1a801a2a7b4b
laby;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joehatier 0:1a801a2a7b4b 1 /* mbed Microcontroller Library
joehatier 0:1a801a2a7b4b 2 * Copyright (c) 2015 ARM Limited
joehatier 0:1a801a2a7b4b 3 *
joehatier 0:1a801a2a7b4b 4 * Licensed under the Apache License, Version 2.0 (the "License");
joehatier 0:1a801a2a7b4b 5 * you may not use this file except in compliance with the License.
joehatier 0:1a801a2a7b4b 6 * You may obtain a copy of the License at
joehatier 0:1a801a2a7b4b 7 *
joehatier 0:1a801a2a7b4b 8 * http://www.apache.org/licenses/LICENSE-2.0
joehatier 0:1a801a2a7b4b 9 *
joehatier 0:1a801a2a7b4b 10 * Unless required by applicable law or agreed to in writing, software
joehatier 0:1a801a2a7b4b 11 * distributed under the License is distributed on an "AS IS" BASIS,
joehatier 0:1a801a2a7b4b 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
joehatier 0:1a801a2a7b4b 13 * See the License for the specific language governing permissions and
joehatier 0:1a801a2a7b4b 14 * limitations under the License.
joehatier 0:1a801a2a7b4b 15 */
joehatier 0:1a801a2a7b4b 16 #ifndef MBED_LOWPOWERTIMEOUT_H
joehatier 0:1a801a2a7b4b 17 #define MBED_LOWPOWERTIMEOUT_H
joehatier 0:1a801a2a7b4b 18
joehatier 0:1a801a2a7b4b 19 #include "platform/platform.h"
joehatier 0:1a801a2a7b4b 20
joehatier 0:1a801a2a7b4b 21 #if defined (DEVICE_LPTICKER) || defined(DOXYGEN_ONLY)
joehatier 0:1a801a2a7b4b 22
joehatier 0:1a801a2a7b4b 23 #include "hal/lp_ticker_api.h"
joehatier 0:1a801a2a7b4b 24 #include "drivers/LowPowerTicker.h"
joehatier 0:1a801a2a7b4b 25 #include "platform/NonCopyable.h"
joehatier 0:1a801a2a7b4b 26
joehatier 0:1a801a2a7b4b 27 namespace mbed {
joehatier 0:1a801a2a7b4b 28 /** \addtogroup drivers */
joehatier 0:1a801a2a7b4b 29
joehatier 0:1a801a2a7b4b 30 /** Low Power Timout
joehatier 0:1a801a2a7b4b 31 *
joehatier 0:1a801a2a7b4b 32 * @note Synchronization level: Interrupt safe
joehatier 0:1a801a2a7b4b 33 * @ingroup drivers
joehatier 0:1a801a2a7b4b 34 */
joehatier 0:1a801a2a7b4b 35 class LowPowerTimeout : public LowPowerTicker, private NonCopyable<LowPowerTimeout> {
joehatier 0:1a801a2a7b4b 36
joehatier 0:1a801a2a7b4b 37 private:
joehatier 0:1a801a2a7b4b 38 virtual void handler(void)
joehatier 0:1a801a2a7b4b 39 {
joehatier 0:1a801a2a7b4b 40 _function.call();
joehatier 0:1a801a2a7b4b 41 }
joehatier 0:1a801a2a7b4b 42 };
joehatier 0:1a801a2a7b4b 43
joehatier 0:1a801a2a7b4b 44 }
joehatier 0:1a801a2a7b4b 45
joehatier 0:1a801a2a7b4b 46 #endif
joehatier 0:1a801a2a7b4b 47
joehatier 0:1a801a2a7b4b 48 #endif