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.
TARGET_EFM32HG_STK3400/TARGET_Silicon_Labs/TARGET_EFM32/pinmap_function.h@134:ad3be0349dc5, 2017-01-16 (annotated)
- Committer:
- <>
- Date:
- Mon Jan 16 12:05:23 2017 +0000
- Revision:
- 134:ad3be0349dc5
- Parent:
- 122:f9eeca106725
Release 134 of the mbed library
Ports for Upcoming Targets
Fixes and Changes
3488: Dev stm i2c v2 unitary functions https://github.com/ARMmbed/mbed-os/pull/3488
3492: Fix #3463 CAN read() return value https://github.com/ARMmbed/mbed-os/pull/3492
3503: [LPC15xx] Ensure that PWM=1 is resolved correctly https://github.com/ARMmbed/mbed-os/pull/3503
3504: [LPC15xx] CAN implementation improvements https://github.com/ARMmbed/mbed-os/pull/3504
3539: NUCLEO_F412ZG - Add support of TRNG peripheral https://github.com/ARMmbed/mbed-os/pull/3539
3540: STM: SPI: Initialize Rx in spi_master_write https://github.com/ARMmbed/mbed-os/pull/3540
3438: K64F: Add support for SERIAL ASYNCH API https://github.com/ARMmbed/mbed-os/pull/3438
3519: MCUXpresso: Fix ENET driver to enable interrupts after interrupt handler is set https://github.com/ARMmbed/mbed-os/pull/3519
3544: STM32L4 deepsleep improvement https://github.com/ARMmbed/mbed-os/pull/3544
3546: NUCLEO-F412ZG - Add CAN peripheral https://github.com/ARMmbed/mbed-os/pull/3546
3551: Fix I2C driver for RZ/A1H https://github.com/ARMmbed/mbed-os/pull/3551
3558: K64F UART Asynch API: Fix synchronization issue https://github.com/ARMmbed/mbed-os/pull/3558
3563: LPC4088 - Fix vector checksum https://github.com/ARMmbed/mbed-os/pull/3563
3567: Dev stm32 F0 v1.7.0 https://github.com/ARMmbed/mbed-os/pull/3567
3577: Fixes linking errors when building with debug profile https://github.com/ARMmbed/mbed-os/pull/3577
Who changed what in which revision?
User | Revision | Line number | New 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 | 122:f9eeca106725 | 8 | * SPDX-License-Identifier: Apache-2.0 |
Kojto | 98:8ab26030e058 | 9 | * |
Kojto | 122:f9eeca106725 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
Kojto | 122:f9eeca106725 | 11 | * not use this file except in compliance with the License. |
Kojto | 122:f9eeca106725 | 12 | * You may obtain a copy of the License at |
Kojto | 98:8ab26030e058 | 13 | * |
Kojto | 122:f9eeca106725 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 108:34e6b704fe68 | 15 | * |
Kojto | 122:f9eeca106725 | 16 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 122:f9eeca106725 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
Kojto | 122:f9eeca106725 | 18 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 122:f9eeca106725 | 19 | * See the License for the specific language governing permissions and |
Kojto | 122:f9eeca106725 | 20 | * limitations under the License. |
Kojto | 108:34e6b704fe68 | 21 | * |
Kojto | 108:34e6b704fe68 | 22 | ******************************************************************************/ |
Kojto | 108:34e6b704fe68 | 23 | |
Kojto | 98:8ab26030e058 | 24 | #ifndef MBED_PINMAP_FUNCTION_H |
Kojto | 98:8ab26030e058 | 25 | #define MBED_PINMAP_FUNCTION_H |
Kojto | 98:8ab26030e058 | 26 | |
Kojto | 98:8ab26030e058 | 27 | #include "PinNames.h" |
Kojto | 98:8ab26030e058 | 28 | #include "pinmap.h" |
Kojto | 98:8ab26030e058 | 29 | |
Kojto | 98:8ab26030e058 | 30 | #ifdef __cplusplus |
Kojto | 98:8ab26030e058 | 31 | extern "C" { |
Kojto | 98:8ab26030e058 | 32 | #endif |
Kojto | 98:8ab26030e058 | 33 | |
Kojto | 98:8ab26030e058 | 34 | /** |
Kojto | 98:8ab26030e058 | 35 | * Get the value of the function field for a pin in a pinmap |
Kojto | 98:8ab26030e058 | 36 | * @param pin A pin |
Kojto | 98:8ab26030e058 | 37 | * @param map A pinmap for a given peripheral |
Kojto | 98:8ab26030e058 | 38 | * @return Content of function field in pinmap for the given pin |
Kojto | 98:8ab26030e058 | 39 | */ |
Kojto | 98:8ab26030e058 | 40 | uint32_t pinmap_get_function_field(PinName pin, const PinMap* map); |
Kojto | 98:8ab26030e058 | 41 | |
Kojto | 98:8ab26030e058 | 42 | /** |
Kojto | 98:8ab26030e058 | 43 | * Get the location a given peripheral is routed to from pin |
Kojto | 98:8ab26030e058 | 44 | * This is stored in the function field of the pinmap |
Kojto | 98:8ab26030e058 | 45 | * @param pin The pin |
Kojto | 98:8ab26030e058 | 46 | * @param map Pinmap for the given peripheral |
Kojto | 98:8ab26030e058 | 47 | * @return uint32 describing location (0, 1, 2, ...) |
Kojto | 98:8ab26030e058 | 48 | */ |
Kojto | 98:8ab26030e058 | 49 | uint32_t pin_location(PinName pin, const PinMap* map); |
Kojto | 98:8ab26030e058 | 50 | |
Kojto | 98:8ab26030e058 | 51 | #ifdef __cplusplus |
Kojto | 98:8ab26030e058 | 52 | } |
Kojto | 98:8ab26030e058 | 53 | #endif |
Kojto | 98:8ab26030e058 | 54 | |
Kojto | 98:8ab26030e058 | 55 | #endif |