mbed library sources. Supersedes mbed-src.

Fork of mbed-dev by Umar Naeem

Committer:
ranaumarnaeem
Date:
Tue May 23 12:54:50 2017 +0000
Revision:
165:2dd56e6daeec
Parent:
149:156823d33999
jhjg

Who changed what in which revision?

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