The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_EFM32PG12_STK3402/TARGET_Silicon_Labs/TARGET_EFM32/sleepmodes.h@143:86740a56073b, 2017-05-26 (annotated)
- Committer:
- AnnaBridge
- Date:
- Fri May 26 12:30:20 2017 +0100
- Revision:
- 143:86740a56073b
- Parent:
- 139:856d2700e60b
Release 143 of the mbed library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 139:856d2700e60b | 1 | /***************************************************************************//** |
<> | 139:856d2700e60b | 2 | * @file sleepmodes.h |
<> | 139:856d2700e60b | 3 | ******************************************************************************* |
<> | 139:856d2700e60b | 4 | * @section License |
<> | 139:856d2700e60b | 5 | * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b> |
<> | 139:856d2700e60b | 6 | ******************************************************************************* |
<> | 139:856d2700e60b | 7 | * |
<> | 139:856d2700e60b | 8 | * SPDX-License-Identifier: Apache-2.0 |
<> | 139:856d2700e60b | 9 | * |
<> | 139:856d2700e60b | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
<> | 139:856d2700e60b | 11 | * not use this file except in compliance with the License. |
<> | 139:856d2700e60b | 12 | * You may obtain a copy of the License at |
<> | 139:856d2700e60b | 13 | * |
<> | 139:856d2700e60b | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 139:856d2700e60b | 15 | * |
<> | 139:856d2700e60b | 16 | * Unless required by applicable law or agreed to in writing, software |
<> | 139:856d2700e60b | 17 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
<> | 139:856d2700e60b | 18 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 139:856d2700e60b | 19 | * See the License for the specific language governing permissions and |
<> | 139:856d2700e60b | 20 | * limitations under the License. |
<> | 139:856d2700e60b | 21 | * |
<> | 139:856d2700e60b | 22 | ******************************************************************************/ |
<> | 139:856d2700e60b | 23 | |
<> | 139:856d2700e60b | 24 | #ifndef MBED_SLEEPMODES_H |
<> | 139:856d2700e60b | 25 | #define MBED_SLEEPMODES_H |
<> | 139:856d2700e60b | 26 | |
<> | 139:856d2700e60b | 27 | #include "em_gpio.h" |
<> | 139:856d2700e60b | 28 | |
<> | 139:856d2700e60b | 29 | #ifdef __cplusplus |
<> | 139:856d2700e60b | 30 | extern "C" { |
<> | 139:856d2700e60b | 31 | #endif |
<> | 139:856d2700e60b | 32 | |
<> | 139:856d2700e60b | 33 | /* |
<> | 139:856d2700e60b | 34 | * Blocks all sleepmodes below the one passed as argument |
<> | 139:856d2700e60b | 35 | * |
<> | 139:856d2700e60b | 36 | * @param minimumMode The lowest-power sleep mode which must remain active |
<> | 139:856d2700e60b | 37 | */ |
<> | 139:856d2700e60b | 38 | void blockSleepMode(sleepstate_enum minimumMode); |
<> | 139:856d2700e60b | 39 | |
<> | 139:856d2700e60b | 40 | /* |
<> | 139:856d2700e60b | 41 | * Unblocks a previously-blocked sleep mode |
<> | 139:856d2700e60b | 42 | * |
<> | 139:856d2700e60b | 43 | *@param minimumMode The same sleepmode that was previously passed to blockSleepMode |
<> | 139:856d2700e60b | 44 | */ |
<> | 139:856d2700e60b | 45 | void unblockSleepMode(sleepstate_enum minimumMode); |
<> | 139:856d2700e60b | 46 | |
<> | 139:856d2700e60b | 47 | #ifdef __cplusplus |
<> | 139:856d2700e60b | 48 | } |
<> | 139:856d2700e60b | 49 | #endif |
<> | 139:856d2700e60b | 50 | |
<> | 139:856d2700e60b | 51 | #endif |