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:
Fri Oct 02 07:35:07 2015 +0200
Revision:
108:34e6b704fe68
Parent:
98:8ab26030e058
Child:
122:f9eeca106725
Release 108  of the mbed library

Changes:
- new platforms - ELMO_F411RE, WIZNET_7500P, ARM_MPS2_BEID
- EFM32 - bugfixes in rtc, serial
- Cortex A cmsis - update files
- STML4 - RAM fixes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 108:34e6b704fe68 1 /***************************************************************************//**
Kojto 108:34e6b704fe68 2 * @file pinmap_function.h
Kojto 108:34e6b704fe68 3 *******************************************************************************
Kojto 108:34e6b704fe68 4 * @section License
Kojto 108:34e6b704fe68 5 * <b>(C) Copyright 2015 Silicon Labs, http://www.silabs.com</b>
Kojto 108:34e6b704fe68 6 *******************************************************************************
Kojto 98:8ab26030e058 7 *
Kojto 108:34e6b704fe68 8 * Permission is granted to anyone to use this software for any purpose,
Kojto 108:34e6b704fe68 9 * including commercial applications, and to alter it and redistribute it
Kojto 108:34e6b704fe68 10 * freely, subject to the following restrictions:
Kojto 98:8ab26030e058 11 *
Kojto 108:34e6b704fe68 12 * 1. The origin of this software must not be misrepresented; you must not
Kojto 108:34e6b704fe68 13 * claim that you wrote the original software.
Kojto 108:34e6b704fe68 14 * 2. Altered source versions must be plainly marked as such, and must not be
Kojto 108:34e6b704fe68 15 * misrepresented as being the original software.
Kojto 108:34e6b704fe68 16 * 3. This notice may not be removed or altered from any source distribution.
Kojto 98:8ab26030e058 17 *
Kojto 108:34e6b704fe68 18 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no
Kojto 108:34e6b704fe68 19 * obligation to support this Software. Silicon Labs is providing the
Kojto 108:34e6b704fe68 20 * Software "AS IS", with no express or implied warranties of any kind,
Kojto 108:34e6b704fe68 21 * including, but not limited to, any implied warranties of merchantability
Kojto 108:34e6b704fe68 22 * or fitness for any particular purpose or warranties against infringement
Kojto 108:34e6b704fe68 23 * of any proprietary rights of a third party.
Kojto 108:34e6b704fe68 24 *
Kojto 108:34e6b704fe68 25 * Silicon Labs will not be liable for any consequential, incidental, or
Kojto 108:34e6b704fe68 26 * special damages, or any other relief, or for any claim by any third party,
Kojto 108:34e6b704fe68 27 * arising from your use of this Software.
Kojto 108:34e6b704fe68 28 *
Kojto 108:34e6b704fe68 29 ******************************************************************************/
Kojto 108:34e6b704fe68 30
Kojto 98:8ab26030e058 31 #ifndef MBED_PINMAP_FUNCTION_H
Kojto 98:8ab26030e058 32 #define MBED_PINMAP_FUNCTION_H
Kojto 98:8ab26030e058 33
Kojto 98:8ab26030e058 34 #include "PinNames.h"
Kojto 98:8ab26030e058 35 #include "pinmap.h"
Kojto 98:8ab26030e058 36
Kojto 98:8ab26030e058 37 #ifdef __cplusplus
Kojto 98:8ab26030e058 38 extern "C" {
Kojto 98:8ab26030e058 39 #endif
Kojto 98:8ab26030e058 40
Kojto 98:8ab26030e058 41 /**
Kojto 98:8ab26030e058 42 * Get the value of the function field for a pin in a pinmap
Kojto 98:8ab26030e058 43 * @param pin A pin
Kojto 98:8ab26030e058 44 * @param map A pinmap for a given peripheral
Kojto 98:8ab26030e058 45 * @return Content of function field in pinmap for the given pin
Kojto 98:8ab26030e058 46 */
Kojto 98:8ab26030e058 47 uint32_t pinmap_get_function_field(PinName pin, const PinMap* map);
Kojto 98:8ab26030e058 48
Kojto 98:8ab26030e058 49 /**
Kojto 98:8ab26030e058 50 * Get the location a given peripheral is routed to from pin
Kojto 98:8ab26030e058 51 * This is stored in the function field of the pinmap
Kojto 98:8ab26030e058 52 * @param pin The pin
Kojto 98:8ab26030e058 53 * @param map Pinmap for the given peripheral
Kojto 98:8ab26030e058 54 * @return uint32 describing location (0, 1, 2, ...)
Kojto 98:8ab26030e058 55 */
Kojto 98:8ab26030e058 56 uint32_t pin_location(PinName pin, const PinMap* map);
Kojto 98:8ab26030e058 57
Kojto 98:8ab26030e058 58 #ifdef __cplusplus
Kojto 98:8ab26030e058 59 }
Kojto 98:8ab26030e058 60 #endif
Kojto 98:8ab26030e058 61
Kojto 98:8ab26030e058 62 #endif