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_EFM32PG_STK3401/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:
- 122:f9eeca106725
Release 143 of the mbed library.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 119:aae6fcc7d9bb | 1 | /***************************************************************************//** |
Kojto | 119:aae6fcc7d9bb | 2 | * @file sleepmodes.h |
Kojto | 119:aae6fcc7d9bb | 3 | ******************************************************************************* |
Kojto | 119:aae6fcc7d9bb | 4 | * @section License |
Kojto | 119:aae6fcc7d9bb | 5 | * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b> |
Kojto | 119:aae6fcc7d9bb | 6 | ******************************************************************************* |
Kojto | 119:aae6fcc7d9bb | 7 | * |
Kojto | 122:f9eeca106725 | 8 | * SPDX-License-Identifier: Apache-2.0 |
Kojto | 119:aae6fcc7d9bb | 9 | * |
Kojto | 122:f9eeca106725 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
Kojto | 122:f9eeca106725 | 11 | * not use this file except in compliance with the License. |
Kojto | 122:f9eeca106725 | 12 | * You may obtain a copy of the License at |
Kojto | 119:aae6fcc7d9bb | 13 | * |
Kojto | 122:f9eeca106725 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 119:aae6fcc7d9bb | 15 | * |
Kojto | 122:f9eeca106725 | 16 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 122:f9eeca106725 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
Kojto | 122:f9eeca106725 | 18 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 122:f9eeca106725 | 19 | * See the License for the specific language governing permissions and |
Kojto | 122:f9eeca106725 | 20 | * limitations under the License. |
Kojto | 119:aae6fcc7d9bb | 21 | * |
Kojto | 119:aae6fcc7d9bb | 22 | ******************************************************************************/ |
Kojto | 119:aae6fcc7d9bb | 23 | |
Kojto | 119:aae6fcc7d9bb | 24 | #ifndef MBED_SLEEPMODES_H |
Kojto | 119:aae6fcc7d9bb | 25 | #define MBED_SLEEPMODES_H |
Kojto | 119:aae6fcc7d9bb | 26 | |
Kojto | 119:aae6fcc7d9bb | 27 | #include "em_gpio.h" |
Kojto | 119:aae6fcc7d9bb | 28 | |
Kojto | 119:aae6fcc7d9bb | 29 | #ifdef __cplusplus |
Kojto | 119:aae6fcc7d9bb | 30 | extern "C" { |
Kojto | 119:aae6fcc7d9bb | 31 | #endif |
Kojto | 119:aae6fcc7d9bb | 32 | |
Kojto | 119:aae6fcc7d9bb | 33 | /* |
Kojto | 119:aae6fcc7d9bb | 34 | * Blocks all sleepmodes below the one passed as argument |
Kojto | 119:aae6fcc7d9bb | 35 | * |
Kojto | 119:aae6fcc7d9bb | 36 | * @param minimumMode The lowest-power sleep mode which must remain active |
Kojto | 119:aae6fcc7d9bb | 37 | */ |
Kojto | 119:aae6fcc7d9bb | 38 | void blockSleepMode(sleepstate_enum minimumMode); |
Kojto | 119:aae6fcc7d9bb | 39 | |
Kojto | 119:aae6fcc7d9bb | 40 | /* |
Kojto | 119:aae6fcc7d9bb | 41 | * Unblocks a previously-blocked sleep mode |
Kojto | 119:aae6fcc7d9bb | 42 | * |
Kojto | 119:aae6fcc7d9bb | 43 | *@param minimumMode The same sleepmode that was previously passed to blockSleepMode |
Kojto | 119:aae6fcc7d9bb | 44 | */ |
Kojto | 119:aae6fcc7d9bb | 45 | void unblockSleepMode(sleepstate_enum minimumMode); |
Kojto | 119:aae6fcc7d9bb | 46 | |
Kojto | 119:aae6fcc7d9bb | 47 | #ifdef __cplusplus |
Kojto | 119:aae6fcc7d9bb | 48 | } |
Kojto | 119:aae6fcc7d9bb | 49 | #endif |
Kojto | 119:aae6fcc7d9bb | 50 | |
Kojto | 119:aae6fcc7d9bb | 51 | #endif |