ads1115 only
Fork of mbed by
mbed.h@132:9baf128c2fab, 2016-12-20 (annotated)
- Committer:
- <>
- Date:
- Tue Dec 20 15:36:52 2016 +0000
- Revision:
- 132:9baf128c2fab
- Parent:
- 131:faff56e089b2
- Child:
- 133:99b5ccf27215
Release 132 of the mbed library
Ports for Upcoming Targets
3241: Add support for FRDM-KW41 https://github.com/ARMmbed/mbed-os/pull/3241
3291: Adding mbed enabled Maker board with NINA-B1 and EVA-M8Q https://github.com/ARMmbed/mbed-os/pull/3291
Fixes and Changes
3062: TARGET_STM :USB device FS https://github.com/ARMmbed/mbed-os/pull/3062
3213: STM32: Refactor us_ticker.c + hal_tick.c files https://github.com/ARMmbed/mbed-os/pull/3213
3288: Dev spi asynch l0l1 https://github.com/ARMmbed/mbed-os/pull/3288
3289: Bug fix of initial value of interrupt edge in "gpio_irq_init" function. https://github.com/ARMmbed/mbed-os/pull/3289
3302: STM32F4 AnalogIn - Clear VBATE and TSVREFE bits before configuring ADC channels https://github.com/ARMmbed/mbed-os/pull/3302
3320: STM32 - Add ADC_VREF label https://github.com/ARMmbed/mbed-os/pull/3320
3321: no HSE available by default for NUCLEO_L432KC https://github.com/ARMmbed/mbed-os/pull/3321
3352: ublox eva nina - fix line endings https://github.com/ARMmbed/mbed-os/pull/3352
3322: DISCO_L053C8 doesn't support LSE https://github.com/ARMmbed/mbed-os/pull/3322
3345: STM32 - Remove TIM_IT_UPDATE flag in HAL_Suspend/ResumeTick functions https://github.com/ARMmbed/mbed-os/pull/3345
3309: [NUC472/M453] Fix CI failed tests https://github.com/ARMmbed/mbed-os/pull/3309
3157: [Silicon Labs] Adding support for EFR32MG1 wireless SoC https://github.com/ARMmbed/mbed-os/pull/3157
3301: I2C - correct return values for write functions (docs) - part 1 https://github.com/ARMmbed/mbed-os/pull/3301
3303: Fix #2956 #2939 #2957 #2959 #2960: Add HAL_DeInit function in gpio_irq destructor https://github.com/ARMmbed/mbed-os/pull/3303
3304: STM32L476: no HSE is present in NUCLEO and DISCO boards https://github.com/ARMmbed/mbed-os/pull/3304
3318: Register map changes for RevG https://github.com/ARMmbed/mbed-os/pull/3318
3317: NUCLEO_F429ZI has integrated LSE https://github.com/ARMmbed/mbed-os/pull/3317
3312: K64F: SPI Asynch API implementation https://github.com/ARMmbed/mbed-os/pull/3312
3324: Dev i2c common code https://github.com/ARMmbed/mbed-os/pull/3324
3369: Add CAN2 missing pins for connector CN12 https://github.com/ARMmbed/mbed-os/pull/3369
3377: STM32 NUCLEO-L152RE Update system core clock to 32MHz https://github.com/ARMmbed/mbed-os/pull/3377
3378: K66F: Enable LWIP feature https://github.com/ARMmbed/mbed-os/pull/3378
3382: [MAX32620] Fixing serial readable function. https://github.com/ARMmbed/mbed-os/pull/3382
3399: NUCLEO_F103RB - Add SERIAL_FC feature https://github.com/ARMmbed/mbed-os/pull/3399
3409: STM32L1 : map ST HAL assert into MBED assert https://github.com/ARMmbed/mbed-os/pull/3409
3416: Renames i2c_api.c for STM32F1 targets to fix IAR exporter https://github.com/ARMmbed/mbed-os/pull/3416
3348: Fix frequency function of CAN driver. https://github.com/ARMmbed/mbed-os/pull/3348
3366: NUCLEO_F412ZG - Add new platform https://github.com/ARMmbed/mbed-os/pull/3366
3379: STM32F0 : map ST HAL assert into MBED assert https://github.com/ARMmbed/mbed-os/pull/3379
3393: ISR register never re-evaluated in HAL_DMA_PollForTransfer for STM32F4 https://github.com/ARMmbed/mbed-os/pull/3393
3408: STM32F7 : map ST HAL assert into MBED assert https://github.com/ARMmbed/mbed-os/pull/3408
3411: STM32L0 : map ST HAL assert into MBED assert https://github.com/ARMmbed/mbed-os/pull/3411
3424: STM32F4 - FIX to add the update of hdma->State variable https://github.com/ARMmbed/mbed-os/pull/3424
3427: Fix stm i2c slave https://github.com/ARMmbed/mbed-os/pull/3427
3429: Fix stm i2c fix init https://github.com/ARMmbed/mbed-os/pull/3429
3434: [NUC472/M453] Fix stuck in lp_ticker_init and other updates https://github.com/ARMmbed/mbed-os/pull/3434
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 65:5798e58a58b1 | 1 | /* mbed Microcontroller Library |
bogdanm | 65:5798e58a58b1 | 2 | * Copyright (c) 2006-2013 ARM Limited |
bogdanm | 65:5798e58a58b1 | 3 | * |
bogdanm | 65:5798e58a58b1 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
bogdanm | 65:5798e58a58b1 | 5 | * you may not use this file except in compliance with the License. |
bogdanm | 65:5798e58a58b1 | 6 | * You may obtain a copy of the License at |
bogdanm | 65:5798e58a58b1 | 7 | * |
bogdanm | 65:5798e58a58b1 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
bogdanm | 65:5798e58a58b1 | 9 | * |
bogdanm | 65:5798e58a58b1 | 10 | * Unless required by applicable law or agreed to in writing, software |
bogdanm | 65:5798e58a58b1 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
bogdanm | 65:5798e58a58b1 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
bogdanm | 65:5798e58a58b1 | 13 | * See the License for the specific language governing permissions and |
bogdanm | 65:5798e58a58b1 | 14 | * limitations under the License. |
bogdanm | 65:5798e58a58b1 | 15 | */ |
bogdanm | 65:5798e58a58b1 | 16 | #ifndef MBED_H |
bogdanm | 65:5798e58a58b1 | 17 | #define MBED_H |
bogdanm | 65:5798e58a58b1 | 18 | |
<> | 132:9baf128c2fab | 19 | #define MBED_LIBRARY_VERSION 132 |
<> | 130:d75b3fe1f5cb | 20 | |
<> | 130:d75b3fe1f5cb | 21 | #if MBED_CONF_RTOS_PRESENT |
<> | 130:d75b3fe1f5cb | 22 | // RTOS present, this is valid only for mbed OS 5 |
<> | 130:d75b3fe1f5cb | 23 | #define MBED_MAJOR_VERSION 5 |
<> | 131:faff56e089b2 | 24 | #define MBED_MINOR_VERSION 3 |
<> | 132:9baf128c2fab | 25 | #define MBED_PATCH_VERSION 1 |
<> | 130:d75b3fe1f5cb | 26 | |
<> | 130:d75b3fe1f5cb | 27 | #else |
<> | 130:d75b3fe1f5cb | 28 | // mbed 2 |
<> | 130:d75b3fe1f5cb | 29 | #define MBED_MAJOR_VERSION 2 |
<> | 130:d75b3fe1f5cb | 30 | #define MBED_MINOR_VERSION 0 |
<> | 130:d75b3fe1f5cb | 31 | #define MBED_PATCH_VERSION MBED_LIBRARY_VERSION |
<> | 130:d75b3fe1f5cb | 32 | #endif |
<> | 130:d75b3fe1f5cb | 33 | |
<> | 130:d75b3fe1f5cb | 34 | #define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch)) |
<> | 130:d75b3fe1f5cb | 35 | |
<> | 130:d75b3fe1f5cb | 36 | #define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION) |
Kojto | 123:b0220dba8be7 | 37 | |
Kojto | 123:b0220dba8be7 | 38 | #if MBED_CONF_RTOS_PRESENT |
Kojto | 123:b0220dba8be7 | 39 | #include "rtos/rtos.h" |
Kojto | 123:b0220dba8be7 | 40 | #endif |
Kojto | 123:b0220dba8be7 | 41 | |
Kojto | 123:b0220dba8be7 | 42 | #if MBED_CONF_NSAPI_PRESENT |
<> | 128:9bcdf88f62b0 | 43 | #include "netsocket/nsapi.h" |
Kojto | 123:b0220dba8be7 | 44 | #endif |
bogdanm | 65:5798e58a58b1 | 45 | |
<> | 128:9bcdf88f62b0 | 46 | #if MBED_CONF_EVENTS_PRESENT |
<> | 128:9bcdf88f62b0 | 47 | #include "events/mbed_events.h" |
<> | 128:9bcdf88f62b0 | 48 | #endif |
<> | 128:9bcdf88f62b0 | 49 | |
<> | 128:9bcdf88f62b0 | 50 | #include "platform/toolchain.h" |
<> | 128:9bcdf88f62b0 | 51 | #include "platform/platform.h" |
bogdanm | 65:5798e58a58b1 | 52 | |
bogdanm | 65:5798e58a58b1 | 53 | // Useful C libraries |
bogdanm | 65:5798e58a58b1 | 54 | #include <math.h> |
bogdanm | 65:5798e58a58b1 | 55 | #include <time.h> |
bogdanm | 65:5798e58a58b1 | 56 | |
bogdanm | 65:5798e58a58b1 | 57 | // mbed Debug libraries |
<> | 128:9bcdf88f62b0 | 58 | #include "platform/mbed_error.h" |
<> | 128:9bcdf88f62b0 | 59 | #include "platform/mbed_interface.h" |
<> | 128:9bcdf88f62b0 | 60 | #include "platform/mbed_assert.h" |
bogdanm | 65:5798e58a58b1 | 61 | |
bogdanm | 65:5798e58a58b1 | 62 | // mbed Peripheral components |
<> | 128:9bcdf88f62b0 | 63 | #include "drivers/DigitalIn.h" |
<> | 128:9bcdf88f62b0 | 64 | #include "drivers/DigitalOut.h" |
<> | 128:9bcdf88f62b0 | 65 | #include "drivers/DigitalInOut.h" |
<> | 128:9bcdf88f62b0 | 66 | #include "drivers/BusIn.h" |
<> | 128:9bcdf88f62b0 | 67 | #include "drivers/BusOut.h" |
<> | 128:9bcdf88f62b0 | 68 | #include "drivers/BusInOut.h" |
<> | 128:9bcdf88f62b0 | 69 | #include "drivers/PortIn.h" |
<> | 128:9bcdf88f62b0 | 70 | #include "drivers/PortInOut.h" |
<> | 128:9bcdf88f62b0 | 71 | #include "drivers/PortOut.h" |
<> | 128:9bcdf88f62b0 | 72 | #include "drivers/AnalogIn.h" |
<> | 128:9bcdf88f62b0 | 73 | #include "drivers/AnalogOut.h" |
<> | 128:9bcdf88f62b0 | 74 | #include "drivers/PwmOut.h" |
<> | 128:9bcdf88f62b0 | 75 | #include "drivers/Serial.h" |
<> | 128:9bcdf88f62b0 | 76 | #include "drivers/SPI.h" |
<> | 128:9bcdf88f62b0 | 77 | #include "drivers/SPISlave.h" |
<> | 128:9bcdf88f62b0 | 78 | #include "drivers/I2C.h" |
<> | 128:9bcdf88f62b0 | 79 | #include "drivers/I2CSlave.h" |
<> | 128:9bcdf88f62b0 | 80 | #include "drivers/Ethernet.h" |
<> | 128:9bcdf88f62b0 | 81 | #include "drivers/CAN.h" |
<> | 128:9bcdf88f62b0 | 82 | #include "drivers/RawSerial.h" |
bogdanm | 65:5798e58a58b1 | 83 | |
bogdanm | 65:5798e58a58b1 | 84 | // mbed Internal components |
<> | 128:9bcdf88f62b0 | 85 | #include "drivers/Timer.h" |
<> | 128:9bcdf88f62b0 | 86 | #include "drivers/Ticker.h" |
<> | 128:9bcdf88f62b0 | 87 | #include "drivers/Timeout.h" |
<> | 128:9bcdf88f62b0 | 88 | #include "drivers/LowPowerTimeout.h" |
<> | 128:9bcdf88f62b0 | 89 | #include "drivers/LowPowerTicker.h" |
<> | 128:9bcdf88f62b0 | 90 | #include "drivers/LowPowerTimer.h" |
<> | 128:9bcdf88f62b0 | 91 | #include "drivers/LocalFileSystem.h" |
<> | 128:9bcdf88f62b0 | 92 | #include "drivers/InterruptIn.h" |
<> | 128:9bcdf88f62b0 | 93 | #include "platform/wait_api.h" |
<> | 128:9bcdf88f62b0 | 94 | #include "hal/sleep_api.h" |
<> | 128:9bcdf88f62b0 | 95 | #include "platform/rtc_time.h" |
bogdanm | 65:5798e58a58b1 | 96 | |
Kojto | 122:f9eeca106725 | 97 | // mbed Non-hardware components |
<> | 128:9bcdf88f62b0 | 98 | #include "platform/Callback.h" |
<> | 128:9bcdf88f62b0 | 99 | #include "platform/FunctionPointer.h" |
Kojto | 122:f9eeca106725 | 100 | |
bogdanm | 65:5798e58a58b1 | 101 | using namespace mbed; |
bogdanm | 65:5798e58a58b1 | 102 | using namespace std; |
bogdanm | 65:5798e58a58b1 | 103 | |
bogdanm | 65:5798e58a58b1 | 104 | #endif |