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.

Committer:
AnnaBridge
Date:
Fri Sep 16 13:57:13 2016 +0100
Revision:
126:abea610beb85
Child:
128:9bcdf88f62b0
Release 126 of the mbed library

Changes:

New Targets:
#2504: [Disco_F769NI] adding new target [https://github.com/ARMmbed/mbed-os/pull/2504]
#2654: DELTA_DFBM_NQ620 platform porting [https://github.com/ARMmbed/mbed-os/pull/2654]
#2615: [MTM_MTCONNECT04S] Added support for MTM_MTCONNECT04S [https://github.com/ARMmbed/mbed-os/pull/2615]
#2548: Nucleof303ze [https://github.com/ARMmbed/mbed-os/pull/2548]

Fixes:

#2657: [MAX326xx] Removed echoing of characters and carriage return. [https://github.com/ARMmbed/mbed-os/pull/2657]
#2651: Use lp_timer to count time in the deepsleep tests [https://github.com/ARMmbed/mbed-os/pull/2651]
#2643: Fix thread self termination [https://github.com/ARMmbed/mbed-os/pull/2643]
#2623: DISCO_L476VG - Add Serial Flow Control pins + add SERIAL_FC macro [https://github.com/ARMmbed/mbed-os/pull/2623]
#2617: STM32F2xx - Enable Serial Flow Control [https://github.com/ARMmbed/mbed-os/pull/2617]
#2601: Adding ON Semiconductor copyright notice to source and header files. [https://github.com/ARMmbed/mbed-os/pull/2601]
#2597: [HAL] Fixed "intrinsic is deprecated" warnings [https://github.com/ARMmbed/mbed-os/pull/2597]
#2589: [NUC472] Fix heap configuration error with armcc [https://github.com/ARMmbed/mbed-os/pull/2589]
#2587: add PTEx pins as option for SPI on Hexiwear - for SD Card Interface [https://github.com/ARMmbed/mbed-os/pull/2587]
#2584: Set size of callback irq array to IrqCnt [https://github.com/ARMmbed/mbed-os/pull/2584]
#2582: [GCC_CR] fix runtime hang for baremetal build [https://github.com/ARMmbed/mbed-os/pull/2582]
#2562: Fix GCC lazy init race condition and add test [https://github.com/ARMmbed/mbed-os/pull/2562]
#2538: STM32F4xx - Add support of ADC internal channels (Temp, VRef, VBat) [https://github.com/ARMmbed/mbed-os/pull/2538]
#2514: Updated FlexCan and SAI SDK drivers [https://github.com/ARMmbed/mbed-os/pull/2514]
#2442: Malloc heap info [https://github.com/ARMmbed/mbed-os/pull/2442]
#2419: [STM32F1] Add asynchronous serial [https://github.com/ARMmbed/mbed-os/pull/2419]
#2130: stm32 : reduce number of device.h files [https://github.com/ARMmbed/mbed-os/pull/2130]
#2678: Fixing NCS36510 compile on Linux [https://github.com/ARMmbed/mbed-os/pull/2678]
#2607: Fix uvisor memory tracing [https://github.com/ARMmbed/mbed-os/pull/2607]
#2596: [HAL] Improve memory tracer [https://github.com/ARMmbed/mbed-os/pull/2596]
#2487: Runtime dynamic memory tracing [https://github.com/ARMmbed/mbed-os/pull/2487]

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 126:abea610beb85 1 /* mbed Microcontroller Library
AnnaBridge 126:abea610beb85 2 *******************************************************************************
AnnaBridge 126:abea610beb85 3 * Copyright (c) 2016, STMicroelectronics
AnnaBridge 126:abea610beb85 4 * All rights reserved.
AnnaBridge 126:abea610beb85 5 *
AnnaBridge 126:abea610beb85 6 * Redistribution and use in source and binary forms, with or without
AnnaBridge 126:abea610beb85 7 * modification, are permitted provided that the following conditions are met:
AnnaBridge 126:abea610beb85 8 *
AnnaBridge 126:abea610beb85 9 * 1. Redistributions of source code must retain the above copyright notice,
AnnaBridge 126:abea610beb85 10 * this list of conditions and the following disclaimer.
AnnaBridge 126:abea610beb85 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
AnnaBridge 126:abea610beb85 12 * this list of conditions and the following disclaimer in the documentation
AnnaBridge 126:abea610beb85 13 * and/or other materials provided with the distribution.
AnnaBridge 126:abea610beb85 14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
AnnaBridge 126:abea610beb85 15 * may be used to endorse or promote products derived from this software
AnnaBridge 126:abea610beb85 16 * without specific prior written permission.
AnnaBridge 126:abea610beb85 17 *
AnnaBridge 126:abea610beb85 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AnnaBridge 126:abea610beb85 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
AnnaBridge 126:abea610beb85 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
AnnaBridge 126:abea610beb85 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
AnnaBridge 126:abea610beb85 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
AnnaBridge 126:abea610beb85 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
AnnaBridge 126:abea610beb85 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
AnnaBridge 126:abea610beb85 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
AnnaBridge 126:abea610beb85 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
AnnaBridge 126:abea610beb85 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
AnnaBridge 126:abea610beb85 28 *******************************************************************************
AnnaBridge 126:abea610beb85 29 */
AnnaBridge 126:abea610beb85 30 #ifndef MBED_COMMON_OBJECTS_H
AnnaBridge 126:abea610beb85 31 #define MBED_COMMON_OBJECTS_H
AnnaBridge 126:abea610beb85 32
AnnaBridge 126:abea610beb85 33 #include "cmsis.h"
AnnaBridge 126:abea610beb85 34 #include "PortNames.h"
AnnaBridge 126:abea610beb85 35 #include "PeripheralNames.h"
AnnaBridge 126:abea610beb85 36 #include "PinNames.h"
AnnaBridge 126:abea610beb85 37
AnnaBridge 126:abea610beb85 38 #ifdef __cplusplus
AnnaBridge 126:abea610beb85 39 extern "C" {
AnnaBridge 126:abea610beb85 40 #endif
AnnaBridge 126:abea610beb85 41
AnnaBridge 126:abea610beb85 42 struct pwmout_s {
AnnaBridge 126:abea610beb85 43 PWMName pwm;
AnnaBridge 126:abea610beb85 44 PinName pin;
AnnaBridge 126:abea610beb85 45 uint32_t prescaler;
AnnaBridge 126:abea610beb85 46 uint32_t period;
AnnaBridge 126:abea610beb85 47 uint32_t pulse;
AnnaBridge 126:abea610beb85 48 uint8_t channel;
AnnaBridge 126:abea610beb85 49 uint8_t inverted;
AnnaBridge 126:abea610beb85 50 };
AnnaBridge 126:abea610beb85 51
AnnaBridge 126:abea610beb85 52 struct serial_s {
AnnaBridge 126:abea610beb85 53 UARTName uart;
AnnaBridge 126:abea610beb85 54 int index; // Used by irq
AnnaBridge 126:abea610beb85 55 uint32_t baudrate;
AnnaBridge 126:abea610beb85 56 uint32_t databits;
AnnaBridge 126:abea610beb85 57 uint32_t stopbits;
AnnaBridge 126:abea610beb85 58 uint32_t parity;
AnnaBridge 126:abea610beb85 59 PinName pin_tx;
AnnaBridge 126:abea610beb85 60 PinName pin_rx;
AnnaBridge 126:abea610beb85 61 #if DEVICE_SERIAL_ASYNCH
AnnaBridge 126:abea610beb85 62 uint32_t events;
AnnaBridge 126:abea610beb85 63 #endif
AnnaBridge 126:abea610beb85 64 #if DEVICE_SERIAL_FC
AnnaBridge 126:abea610beb85 65 uint32_t hw_flow_ctl;
AnnaBridge 126:abea610beb85 66 PinName pin_rts;
AnnaBridge 126:abea610beb85 67 PinName pin_cts;
AnnaBridge 126:abea610beb85 68 #endif
AnnaBridge 126:abea610beb85 69 };
AnnaBridge 126:abea610beb85 70
AnnaBridge 126:abea610beb85 71 #include "gpio_object.h"
AnnaBridge 126:abea610beb85 72
AnnaBridge 126:abea610beb85 73 #ifdef __cplusplus
AnnaBridge 126:abea610beb85 74 }
AnnaBridge 126:abea610beb85 75 #endif
AnnaBridge 126:abea610beb85 76
AnnaBridge 126:abea610beb85 77 #endif
AnnaBridge 126:abea610beb85 78