mbed library sources. Supersedes mbed-src. RTC working even after reset

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Fri Sep 16 16:24:25 2016 +0100
Revision:
147:30b64687e01f
Parent:
144:ef7eb2e8f9f7
This updates the lib to the mbed lib v126

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 144:ef7eb2e8f9f7 1 /* mbed Microcontroller Library
<> 144:ef7eb2e8f9f7 2 * Copyright (c) 2006-2013 ARM Limited
<> 144:ef7eb2e8f9f7 3 *
<> 144:ef7eb2e8f9f7 4 * Licensed under the Apache License, Version 2.0 (the "License");
<> 144:ef7eb2e8f9f7 5 * you may not use this file except in compliance with the License.
<> 144:ef7eb2e8f9f7 6 * You may obtain a copy of the License at
<> 144:ef7eb2e8f9f7 7 *
<> 144:ef7eb2e8f9f7 8 * http://www.apache.org/licenses/LICENSE-2.0
<> 144:ef7eb2e8f9f7 9 *
<> 144:ef7eb2e8f9f7 10 * Unless required by applicable law or agreed to in writing, software
<> 144:ef7eb2e8f9f7 11 * distributed under the License is distributed on an "AS IS" BASIS,
<> 144:ef7eb2e8f9f7 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 144:ef7eb2e8f9f7 13 * See the License for the specific language governing permissions and
<> 144:ef7eb2e8f9f7 14 * limitations under the License.
<> 144:ef7eb2e8f9f7 15 */
<> 144:ef7eb2e8f9f7 16 #ifndef MBED_H
<> 144:ef7eb2e8f9f7 17 #define MBED_H
<> 144:ef7eb2e8f9f7 18
<> 147:30b64687e01f 19 #define MBED_LIBRARY_VERSION 126
<> 144:ef7eb2e8f9f7 20
<> 144:ef7eb2e8f9f7 21 #if MBED_CONF_RTOS_PRESENT
<> 144:ef7eb2e8f9f7 22 #include "rtos/rtos.h"
<> 144:ef7eb2e8f9f7 23 #endif
<> 144:ef7eb2e8f9f7 24
<> 144:ef7eb2e8f9f7 25 #if MBED_CONF_NSAPI_PRESENT
<> 144:ef7eb2e8f9f7 26 #include "network-socket/nsapi.h"
<> 144:ef7eb2e8f9f7 27 #endif
<> 144:ef7eb2e8f9f7 28
<> 144:ef7eb2e8f9f7 29 #include "toolchain.h"
<> 144:ef7eb2e8f9f7 30 #include "platform.h"
<> 144:ef7eb2e8f9f7 31
<> 144:ef7eb2e8f9f7 32 // Useful C libraries
<> 144:ef7eb2e8f9f7 33 #include <math.h>
<> 144:ef7eb2e8f9f7 34 #include <time.h>
<> 144:ef7eb2e8f9f7 35
<> 144:ef7eb2e8f9f7 36 // mbed Debug libraries
<> 144:ef7eb2e8f9f7 37 #include "mbed_error.h"
<> 144:ef7eb2e8f9f7 38 #include "mbed_interface.h"
<> 144:ef7eb2e8f9f7 39 #include "mbed_assert.h"
<> 144:ef7eb2e8f9f7 40
<> 144:ef7eb2e8f9f7 41 // mbed Peripheral components
<> 144:ef7eb2e8f9f7 42 #include "DigitalIn.h"
<> 144:ef7eb2e8f9f7 43 #include "DigitalOut.h"
<> 144:ef7eb2e8f9f7 44 #include "DigitalInOut.h"
<> 144:ef7eb2e8f9f7 45 #include "BusIn.h"
<> 144:ef7eb2e8f9f7 46 #include "BusOut.h"
<> 144:ef7eb2e8f9f7 47 #include "BusInOut.h"
<> 144:ef7eb2e8f9f7 48 #include "PortIn.h"
<> 144:ef7eb2e8f9f7 49 #include "PortInOut.h"
<> 144:ef7eb2e8f9f7 50 #include "PortOut.h"
<> 144:ef7eb2e8f9f7 51 #include "AnalogIn.h"
<> 144:ef7eb2e8f9f7 52 #include "AnalogOut.h"
<> 144:ef7eb2e8f9f7 53 #include "PwmOut.h"
<> 144:ef7eb2e8f9f7 54 #include "Serial.h"
<> 144:ef7eb2e8f9f7 55 #include "SPI.h"
<> 144:ef7eb2e8f9f7 56 #include "SPISlave.h"
<> 144:ef7eb2e8f9f7 57 #include "I2C.h"
<> 144:ef7eb2e8f9f7 58 #include "I2CSlave.h"
<> 144:ef7eb2e8f9f7 59 #include "Ethernet.h"
<> 144:ef7eb2e8f9f7 60 #include "CAN.h"
<> 144:ef7eb2e8f9f7 61 #include "RawSerial.h"
<> 144:ef7eb2e8f9f7 62
<> 144:ef7eb2e8f9f7 63 // mbed Internal components
<> 144:ef7eb2e8f9f7 64 #include "Timer.h"
<> 144:ef7eb2e8f9f7 65 #include "Ticker.h"
<> 144:ef7eb2e8f9f7 66 #include "Timeout.h"
<> 144:ef7eb2e8f9f7 67 #include "LowPowerTimeout.h"
<> 144:ef7eb2e8f9f7 68 #include "LowPowerTicker.h"
<> 144:ef7eb2e8f9f7 69 #include "LowPowerTimer.h"
<> 144:ef7eb2e8f9f7 70 #include "LocalFileSystem.h"
<> 144:ef7eb2e8f9f7 71 #include "InterruptIn.h"
<> 144:ef7eb2e8f9f7 72 #include "wait_api.h"
<> 144:ef7eb2e8f9f7 73 #include "sleep_api.h"
<> 144:ef7eb2e8f9f7 74 #include "rtc_time.h"
<> 144:ef7eb2e8f9f7 75
<> 144:ef7eb2e8f9f7 76 // mbed Non-hardware components
<> 144:ef7eb2e8f9f7 77 #include "Callback.h"
<> 144:ef7eb2e8f9f7 78 #include "FunctionPointer.h"
<> 144:ef7eb2e8f9f7 79
<> 144:ef7eb2e8f9f7 80 using namespace mbed;
<> 144:ef7eb2e8f9f7 81 using namespace std;
<> 144:ef7eb2e8f9f7 82
<> 144:ef7eb2e8f9f7 83 #endif