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:
Anna Bridge
Date:
Fri Apr 20 11:08:29 2018 +0100
Revision:
166:5aab5a7997ee
Parent:
133:99b5ccf27215
Updating mbed 2 version number

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 133:99b5ccf27215 1 /* mbed Microcontroller Library
<> 133:99b5ccf27215 2 *******************************************************************************
<> 133:99b5ccf27215 3 * Copyright (c) 2015, STMicroelectronics
<> 133:99b5ccf27215 4 * All rights reserved.
<> 133:99b5ccf27215 5 *
<> 133:99b5ccf27215 6 * Redistribution and use in source and binary forms, with or without
<> 133:99b5ccf27215 7 * modification, are permitted provided that the following conditions are met:
<> 133:99b5ccf27215 8 *
<> 133:99b5ccf27215 9 * 1. Redistributions of source code must retain the above copyright notice,
<> 133:99b5ccf27215 10 * this list of conditions and the following disclaimer.
<> 133:99b5ccf27215 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
<> 133:99b5ccf27215 12 * this list of conditions and the following disclaimer in the documentation
<> 133:99b5ccf27215 13 * and/or other materials provided with the distribution.
<> 133:99b5ccf27215 14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
<> 133:99b5ccf27215 15 * may be used to endorse or promote products derived from this software
<> 133:99b5ccf27215 16 * without specific prior written permission.
<> 133:99b5ccf27215 17 *
<> 133:99b5ccf27215 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
<> 133:99b5ccf27215 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
<> 133:99b5ccf27215 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
<> 133:99b5ccf27215 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
<> 133:99b5ccf27215 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
<> 133:99b5ccf27215 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
<> 133:99b5ccf27215 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
<> 133:99b5ccf27215 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
<> 133:99b5ccf27215 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<> 133:99b5ccf27215 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<> 133:99b5ccf27215 28 *******************************************************************************
<> 133:99b5ccf27215 29 */
<> 133:99b5ccf27215 30 #ifndef MBED_I2C_DEVICE_H
<> 133:99b5ccf27215 31 #define MBED_I2C_DEVICE_H
<> 133:99b5ccf27215 32
<> 133:99b5ccf27215 33 #include "cmsis.h"
<> 133:99b5ccf27215 34
<> 133:99b5ccf27215 35 #ifdef __cplusplus
<> 133:99b5ccf27215 36 extern "C" {
<> 133:99b5ccf27215 37 #endif
<> 133:99b5ccf27215 38
<> 133:99b5ccf27215 39 #ifdef DEVICE_I2C
<> 133:99b5ccf27215 40
<> 133:99b5ccf27215 41 /* Define IP version */
<> 133:99b5ccf27215 42 #define I2C_IP_VERSION_V1
<> 133:99b5ccf27215 43
<> 133:99b5ccf27215 44 #define I2C_IT_ALL (I2C_IT_EVT | I2C_IT_BUF | I2C_IT_ERR)
<> 133:99b5ccf27215 45
<> 133:99b5ccf27215 46 #endif // DEVICE_I2C
<> 133:99b5ccf27215 47
<> 133:99b5ccf27215 48 #endif