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:
Wed Apr 29 10:16:23 2015 +0100
Revision:
98:8ab26030e058
Child:
108:34e6b704fe68
Release 98 of the mbed library

Changes:
- Silabs new targets (Giant, Zero, Happy, Leopard, Wonder Geckos)
- Asynchronous SPI, I2C, Serial
- LowPower classes
- Nordic - nordic SDK v8.0 update
- Teensy - gcc arm fix for startup
- Nucleo F411 - usb freq fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 98:8ab26030e058 1 /* mbed Microcontroller Library
Kojto 98:8ab26030e058 2 * Copyright (c) 2006-2013 ARM Limited
Kojto 98:8ab26030e058 3 *
Kojto 98:8ab26030e058 4 * Licensed under the Apache License, Version 2.0 (the "License");
Kojto 98:8ab26030e058 5 * you may not use this file except in compliance with the License.
Kojto 98:8ab26030e058 6 * You may obtain a copy of the License at
Kojto 98:8ab26030e058 7 *
Kojto 98:8ab26030e058 8 * http://www.apache.org/licenses/LICENSE-2.0
Kojto 98:8ab26030e058 9 *
Kojto 98:8ab26030e058 10 * Unless required by applicable law or agreed to in writing, software
Kojto 98:8ab26030e058 11 * distributed under the License is distributed on an "AS IS" BASIS,
Kojto 98:8ab26030e058 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Kojto 98:8ab26030e058 13 * See the License for the specific language governing permissions and
Kojto 98:8ab26030e058 14 * limitations under the License.
Kojto 98:8ab26030e058 15 */
Kojto 98:8ab26030e058 16 #ifndef MBED_PINMAP_FUNCTION_H
Kojto 98:8ab26030e058 17 #define MBED_PINMAP_FUNCTION_H
Kojto 98:8ab26030e058 18
Kojto 98:8ab26030e058 19 #include "PinNames.h"
Kojto 98:8ab26030e058 20 #include "pinmap.h"
Kojto 98:8ab26030e058 21
Kojto 98:8ab26030e058 22 #ifdef __cplusplus
Kojto 98:8ab26030e058 23 extern "C" {
Kojto 98:8ab26030e058 24 #endif
Kojto 98:8ab26030e058 25
Kojto 98:8ab26030e058 26 /**
Kojto 98:8ab26030e058 27 * Get the value of the function field for a pin in a pinmap
Kojto 98:8ab26030e058 28 * @param pin A pin
Kojto 98:8ab26030e058 29 * @param map A pinmap for a given peripheral
Kojto 98:8ab26030e058 30 * @return Content of function field in pinmap for the given pin
Kojto 98:8ab26030e058 31 */
Kojto 98:8ab26030e058 32 uint32_t pinmap_get_function_field(PinName pin, const PinMap* map);
Kojto 98:8ab26030e058 33
Kojto 98:8ab26030e058 34 /**
Kojto 98:8ab26030e058 35 * Get the location a given peripheral is routed to from pin
Kojto 98:8ab26030e058 36 * This is stored in the function field of the pinmap
Kojto 98:8ab26030e058 37 * @param pin The pin
Kojto 98:8ab26030e058 38 * @param map Pinmap for the given peripheral
Kojto 98:8ab26030e058 39 * @return uint32 describing location (0, 1, 2, ...)
Kojto 98:8ab26030e058 40 */
Kojto 98:8ab26030e058 41 uint32_t pin_location(PinName pin, const PinMap* map);
Kojto 98:8ab26030e058 42
Kojto 98:8ab26030e058 43 #ifdef __cplusplus
Kojto 98:8ab26030e058 44 }
Kojto 98:8ab26030e058 45 #endif
Kojto 98:8ab26030e058 46
Kojto 98:8ab26030e058 47 #endif