LPC11U35 ADC Tick & USBSerial

Dependencies:   mbed

Dependents:   SmallDoseMeter_SingleCH_AE_lpc11u35_V1_00

Committer:
H_Tsunemoto
Date:
Mon Feb 19 09:09:52 2018 +0000
Revision:
1:b1a3be5f48ab
Parent:
0:871ab6846b18
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
H_Tsunemoto 0:871ab6846b18 1 /* mbed Microcontroller Library
H_Tsunemoto 0:871ab6846b18 2 * Copyright (c) 2006-2013 ARM Limited
H_Tsunemoto 0:871ab6846b18 3 *
H_Tsunemoto 0:871ab6846b18 4 * Licensed under the Apache License, Version 2.0 (the "License");
H_Tsunemoto 0:871ab6846b18 5 * you may not use this file except in compliance with the License.
H_Tsunemoto 0:871ab6846b18 6 * You may obtain a copy of the License at
H_Tsunemoto 0:871ab6846b18 7 *
H_Tsunemoto 0:871ab6846b18 8 * http://www.apache.org/licenses/LICENSE-2.0
H_Tsunemoto 0:871ab6846b18 9 *
H_Tsunemoto 0:871ab6846b18 10 * Unless required by applicable law or agreed to in writing, software
H_Tsunemoto 0:871ab6846b18 11 * distributed under the License is distributed on an "AS IS" BASIS,
H_Tsunemoto 0:871ab6846b18 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
H_Tsunemoto 0:871ab6846b18 13 * See the License for the specific language governing permissions and
H_Tsunemoto 0:871ab6846b18 14 * limitations under the License.
H_Tsunemoto 0:871ab6846b18 15 */
H_Tsunemoto 0:871ab6846b18 16 #ifndef MBED_SLEEP_API_H
H_Tsunemoto 0:871ab6846b18 17 #define MBED_SLEEP_API_H
H_Tsunemoto 0:871ab6846b18 18
H_Tsunemoto 0:871ab6846b18 19 #include "device.h"
H_Tsunemoto 0:871ab6846b18 20
H_Tsunemoto 0:871ab6846b18 21 #if DEVICE_SLEEP
H_Tsunemoto 0:871ab6846b18 22
H_Tsunemoto 0:871ab6846b18 23 #ifdef __cplusplus
H_Tsunemoto 0:871ab6846b18 24 extern "C" {
H_Tsunemoto 0:871ab6846b18 25 #endif
H_Tsunemoto 0:871ab6846b18 26
H_Tsunemoto 0:871ab6846b18 27 /** Send the microcontroller to sleep
H_Tsunemoto 0:871ab6846b18 28 *
H_Tsunemoto 0:871ab6846b18 29 * The processor is setup ready for sleep, and sent to sleep using __WFI(). In this mode, the
H_Tsunemoto 0:871ab6846b18 30 * system clock to the core is stopped until a reset or an interrupt occurs. This eliminates
H_Tsunemoto 0:871ab6846b18 31 * dynamic power used by the processor, memory systems and buses. The processor, peripheral and
H_Tsunemoto 0:871ab6846b18 32 * memory state are maintained, and the peripherals continue to work and can generate interrupts.
H_Tsunemoto 0:871ab6846b18 33 *
H_Tsunemoto 0:871ab6846b18 34 * The processor can be woken up by any internal peripheral interrupt or external pin interrupt.
H_Tsunemoto 0:871ab6846b18 35 *
H_Tsunemoto 0:871ab6846b18 36 * @note
H_Tsunemoto 0:871ab6846b18 37 * The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored.
H_Tsunemoto 0:871ab6846b18 38 * Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be
H_Tsunemoto 0:871ab6846b18 39 * able to access the LocalFileSystem
H_Tsunemoto 0:871ab6846b18 40 */
H_Tsunemoto 0:871ab6846b18 41 void sleep(void);
H_Tsunemoto 0:871ab6846b18 42
H_Tsunemoto 0:871ab6846b18 43 /** Send the microcontroller to deep sleep
H_Tsunemoto 0:871ab6846b18 44 *
H_Tsunemoto 0:871ab6846b18 45 * This processor is setup ready for deep sleep, and sent to sleep using __WFI(). This mode
H_Tsunemoto 0:871ab6846b18 46 * has the same sleep features as sleep plus it powers down peripherals and clocks. All state
H_Tsunemoto 0:871ab6846b18 47 * is still maintained.
H_Tsunemoto 0:871ab6846b18 48 *
H_Tsunemoto 0:871ab6846b18 49 * The processor can only be woken up by an external interrupt on a pin or a watchdog timer.
H_Tsunemoto 0:871ab6846b18 50 *
H_Tsunemoto 0:871ab6846b18 51 * @note
H_Tsunemoto 0:871ab6846b18 52 * The mbed interface semihosting is disconnected as part of going to sleep, and can not be restored.
H_Tsunemoto 0:871ab6846b18 53 * Flash re-programming and the USB serial port will remain active, but the mbed program will no longer be
H_Tsunemoto 0:871ab6846b18 54 * able to access the LocalFileSystem
H_Tsunemoto 0:871ab6846b18 55 */
H_Tsunemoto 0:871ab6846b18 56 void deepsleep(void);
H_Tsunemoto 0:871ab6846b18 57
H_Tsunemoto 0:871ab6846b18 58 #ifdef __cplusplus
H_Tsunemoto 0:871ab6846b18 59 }
H_Tsunemoto 0:871ab6846b18 60 #endif
H_Tsunemoto 0:871ab6846b18 61
H_Tsunemoto 0:871ab6846b18 62 #endif
H_Tsunemoto 0:871ab6846b18 63
H_Tsunemoto 0:871ab6846b18 64 #endif