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:
Kojto
Date:
Thu Jul 07 14:34:11 2016 +0100
Revision:
122:f9eeca106725
Parent:
109:9296ab0bfc11
Release 122 of the mbed library

Changes:
- new targets - Nucleo L432KC, Beetle, Nucleo F446ZE, Nucleo L011K4
- Thread safety addition - mbed API should contain a statement about thread safety
- critical section API addition
- CAS API (core_util_atomic_incr/decr)
- DEVICE_ are generated from targets.json file, device.h deprecated
- Callback replaces FunctionPointer to provide std like interface
- mbed HAL API docs improvements
- toolchain - prexif attributes with MBED_
- add new attributes - packed, weak, forcedinline, align
- target.json - contains targets definitions
- ST - L1XX - Cube update to 1.5
- SPI clock selection fix (clock from APB domain)
- F7 - Cube update v1.4.0
- L0 - baudrate init fix
- L1 - Cube update v1.5
- F3 - baudrate init fix, 3 targets CAN support
- F4 - Cube update v1.12.0, 3 targets CAN support
- L4XX - Cube update v1.5.1
- F0 - update Cube to v1.5.0
- L4 - 2 targets (L476RG/VG) CAN support
- NXP - pwm clock fix for KSDK2 MCU
- LPC2368 - remove ARM toolchain support - due to regression
- KSDK2 - fix SPI , I2C address and repeat start
- Silabs - some fixes backported from mbed 3
- Renesas - RZ_A1H - SystemCoreClockUpdate addition

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 122:f9eeca106725 1 // The 'features' section in 'target.json' is now used to create the device's hardware preprocessor switches.
Kojto 122:f9eeca106725 2 // Check the 'features' section of the target description in 'targets.json' for more details.
Kojto 109:9296ab0bfc11 3 /* mbed Microcontroller Library
Kojto 109:9296ab0bfc11 4 *******************************************************************************
Kojto 109:9296ab0bfc11 5 * Copyright (c) 2015 WIZnet Co.,Ltd. All rights reserved.
Kojto 109:9296ab0bfc11 6 * All rights reserved.
Kojto 109:9296ab0bfc11 7 *
Kojto 109:9296ab0bfc11 8 * Redistribution and use in source and binary forms, with or without
Kojto 109:9296ab0bfc11 9 * modification, are permitted provided that the following conditions are met:
Kojto 109:9296ab0bfc11 10 *
Kojto 109:9296ab0bfc11 11 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 109:9296ab0bfc11 12 * this list of conditions and the following disclaimer.
Kojto 109:9296ab0bfc11 13 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 109:9296ab0bfc11 14 * this list of conditions and the following disclaimer in the documentation
Kojto 109:9296ab0bfc11 15 * and/or other materials provided with the distribution.
Kojto 109:9296ab0bfc11 16 * 3. Neither the name of ARM Limited nor the names of its contributors
Kojto 109:9296ab0bfc11 17 * may be used to endorse or promote products derived from this software
Kojto 109:9296ab0bfc11 18 * without specific prior written permission.
Kojto 109:9296ab0bfc11 19 *
Kojto 109:9296ab0bfc11 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 109:9296ab0bfc11 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 109:9296ab0bfc11 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 109:9296ab0bfc11 23 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 109:9296ab0bfc11 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 109:9296ab0bfc11 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 109:9296ab0bfc11 26 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 109:9296ab0bfc11 27 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 109:9296ab0bfc11 28 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 109:9296ab0bfc11 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 109:9296ab0bfc11 30 *******************************************************************************
Kojto 109:9296ab0bfc11 31 */
Kojto 109:9296ab0bfc11 32
Kojto 109:9296ab0bfc11 33 #ifndef MBED_DEVICE_H
Kojto 109:9296ab0bfc11 34 #define MBED_DEVICE_H
Kojto 109:9296ab0bfc11 35
Kojto 122:f9eeca106725 36
Kojto 109:9296ab0bfc11 37
Kojto 109:9296ab0bfc11 38
Kojto 109:9296ab0bfc11 39
Kojto 109:9296ab0bfc11 40
Kojto 109:9296ab0bfc11 41
Kojto 109:9296ab0bfc11 42
Kojto 109:9296ab0bfc11 43
Kojto 109:9296ab0bfc11 44
Kojto 109:9296ab0bfc11 45
Kojto 109:9296ab0bfc11 46
Kojto 109:9296ab0bfc11 47 //=======================================
Kojto 109:9296ab0bfc11 48
Kojto 109:9296ab0bfc11 49 #define DEVICE_ID_LENGTH 24
Kojto 109:9296ab0bfc11 50
Kojto 109:9296ab0bfc11 51
Kojto 109:9296ab0bfc11 52
Kojto 109:9296ab0bfc11 53 #define STDIO_UART_TX PC_10
Kojto 109:9296ab0bfc11 54 #define STDIO_UART_RX PC_11
Kojto 109:9296ab0bfc11 55 #define STDIO_UART UART_2
Kojto 109:9296ab0bfc11 56
Kojto 109:9296ab0bfc11 57
Kojto 109:9296ab0bfc11 58
Kojto 109:9296ab0bfc11 59 #include "objects.h"
Kojto 109:9296ab0bfc11 60
Kojto 109:9296ab0bfc11 61 #endif