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:
Tue Feb 02 14:43:35 2016 +0000
Revision:
113:f141b2784e32
Child:
122:f9eeca106725
Release 113 of the mbed library

Changes:
- new targets - Silabs Perl Gecko, TY51822
- Silabs - emlib update to 4.1.0, various bugfixes as result
- STM B96B_F446VE - add async serial support
- Freescale KLXX - rtc lock fix
- LPC11U68 and LPC1549 - pwm bugfixes - duty cycle

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 113:f141b2784e32 1 /***************************************************************************//**
Kojto 113:f141b2784e32 2 * @file serial_api_HAL.h
Kojto 113:f141b2784e32 3 *******************************************************************************
Kojto 113:f141b2784e32 4 * @section License
Kojto 113:f141b2784e32 5 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
Kojto 113:f141b2784e32 6 *******************************************************************************
Kojto 113:f141b2784e32 7 *
Kojto 113:f141b2784e32 8 * Permission is granted to anyone to use this software for any purpose,
Kojto 113:f141b2784e32 9 * including commercial applications, and to alter it and redistribute it
Kojto 113:f141b2784e32 10 * freely, subject to the following restrictions:
Kojto 113:f141b2784e32 11 *
Kojto 113:f141b2784e32 12 * 1. The origin of this software must not be misrepresented; you must not
Kojto 113:f141b2784e32 13 * claim that you wrote the original software.
Kojto 113:f141b2784e32 14 * 2. Altered source versions must be plainly marked as such, and must not be
Kojto 113:f141b2784e32 15 * misrepresented as being the original software.
Kojto 113:f141b2784e32 16 * 3. This notice may not be removed or altered from any source distribution.
Kojto 113:f141b2784e32 17 *
Kojto 113:f141b2784e32 18 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no
Kojto 113:f141b2784e32 19 * obligation to support this Software. Silicon Labs is providing the
Kojto 113:f141b2784e32 20 * Software "AS IS", with no express or implied warranties of any kind,
Kojto 113:f141b2784e32 21 * including, but not limited to, any implied warranties of merchantability
Kojto 113:f141b2784e32 22 * or fitness for any particular purpose or warranties against infringement
Kojto 113:f141b2784e32 23 * of any proprietary rights of a third party.
Kojto 113:f141b2784e32 24 *
Kojto 113:f141b2784e32 25 * Silicon Labs will not be liable for any consequential, incidental, or
Kojto 113:f141b2784e32 26 * special damages, or any other relief, or for any claim by any third party,
Kojto 113:f141b2784e32 27 * arising from your use of this Software.
Kojto 113:f141b2784e32 28 *
Kojto 113:f141b2784e32 29 ******************************************************************************/
Kojto 113:f141b2784e32 30
Kojto 113:f141b2784e32 31 #ifndef MBED_SERIAL_API_HAL_H
Kojto 113:f141b2784e32 32 #define MBED_SERIAL_API_HAL_H
Kojto 113:f141b2784e32 33
Kojto 113:f141b2784e32 34 #include "em_device.h"
Kojto 113:f141b2784e32 35
Kojto 113:f141b2784e32 36 #ifdef _SILICON_LABS_32B_PLATFORM_2
Kojto 113:f141b2784e32 37
Kojto 113:f141b2784e32 38 #define UART_TYPE_USART 0x01
Kojto 113:f141b2784e32 39 #define UART_TYPE_LEUART 0x02
Kojto 113:f141b2784e32 40
Kojto 113:f141b2784e32 41 #ifdef __cplusplus
Kojto 113:f141b2784e32 42 extern "C" {
Kojto 113:f141b2784e32 43 #endif
Kojto 113:f141b2784e32 44
Kojto 113:f141b2784e32 45 #ifdef __cplusplus
Kojto 113:f141b2784e32 46 }
Kojto 113:f141b2784e32 47 #endif
Kojto 113:f141b2784e32 48
Kojto 113:f141b2784e32 49
Kojto 113:f141b2784e32 50 #endif
Kojto 113:f141b2784e32 51
Kojto 113:f141b2784e32 52 #endif