Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
ER2_Robot/mbed/hal/pinmap.h@0:1a801a2a7b4b, 2019-02-15 (annotated)
- Committer:
- joehatier
- Date:
- Fri Feb 15 15:25:57 2019 +0000
- Revision:
- 0:1a801a2a7b4b
suivi;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| joehatier | 0:1a801a2a7b4b | 1 | |
| joehatier | 0:1a801a2a7b4b | 2 | /** \addtogroup hal */ |
| joehatier | 0:1a801a2a7b4b | 3 | /** @{*/ |
| joehatier | 0:1a801a2a7b4b | 4 | /* mbed Microcontroller Library |
| joehatier | 0:1a801a2a7b4b | 5 | * Copyright (c) 2006-2013 ARM Limited |
| joehatier | 0:1a801a2a7b4b | 6 | * |
| joehatier | 0:1a801a2a7b4b | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| joehatier | 0:1a801a2a7b4b | 8 | * you may not use this file except in compliance with the License. |
| joehatier | 0:1a801a2a7b4b | 9 | * You may obtain a copy of the License at |
| joehatier | 0:1a801a2a7b4b | 10 | * |
| joehatier | 0:1a801a2a7b4b | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
| joehatier | 0:1a801a2a7b4b | 12 | * |
| joehatier | 0:1a801a2a7b4b | 13 | * Unless required by applicable law or agreed to in writing, software |
| joehatier | 0:1a801a2a7b4b | 14 | * distributed under the License is distributed on an "AS IS" BASIS, |
| joehatier | 0:1a801a2a7b4b | 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| joehatier | 0:1a801a2a7b4b | 16 | * See the License for the specific language governing permissions and |
| joehatier | 0:1a801a2a7b4b | 17 | * limitations under the License. |
| joehatier | 0:1a801a2a7b4b | 18 | */ |
| joehatier | 0:1a801a2a7b4b | 19 | #ifndef MBED_PINMAP_H |
| joehatier | 0:1a801a2a7b4b | 20 | #define MBED_PINMAP_H |
| joehatier | 0:1a801a2a7b4b | 21 | |
| joehatier | 0:1a801a2a7b4b | 22 | #include "PinNames.h" |
| joehatier | 0:1a801a2a7b4b | 23 | |
| joehatier | 0:1a801a2a7b4b | 24 | #ifdef __cplusplus |
| joehatier | 0:1a801a2a7b4b | 25 | extern "C" { |
| joehatier | 0:1a801a2a7b4b | 26 | #endif |
| joehatier | 0:1a801a2a7b4b | 27 | |
| joehatier | 0:1a801a2a7b4b | 28 | typedef struct { |
| joehatier | 0:1a801a2a7b4b | 29 | PinName pin; |
| joehatier | 0:1a801a2a7b4b | 30 | int peripheral; |
| joehatier | 0:1a801a2a7b4b | 31 | int function; |
| joehatier | 0:1a801a2a7b4b | 32 | } PinMap; |
| joehatier | 0:1a801a2a7b4b | 33 | |
| joehatier | 0:1a801a2a7b4b | 34 | void pin_function(PinName pin, int function); |
| joehatier | 0:1a801a2a7b4b | 35 | void pin_mode(PinName pin, PinMode mode); |
| joehatier | 0:1a801a2a7b4b | 36 | |
| joehatier | 0:1a801a2a7b4b | 37 | uint32_t pinmap_peripheral(PinName pin, const PinMap *map); |
| joehatier | 0:1a801a2a7b4b | 38 | uint32_t pinmap_function(PinName pin, const PinMap *map); |
| joehatier | 0:1a801a2a7b4b | 39 | uint32_t pinmap_merge(uint32_t a, uint32_t b); |
| joehatier | 0:1a801a2a7b4b | 40 | void pinmap_pinout(PinName pin, const PinMap *map); |
| joehatier | 0:1a801a2a7b4b | 41 | uint32_t pinmap_find_peripheral(PinName pin, const PinMap *map); |
| joehatier | 0:1a801a2a7b4b | 42 | uint32_t pinmap_find_function(PinName pin, const PinMap *map); |
| joehatier | 0:1a801a2a7b4b | 43 | |
| joehatier | 0:1a801a2a7b4b | 44 | #ifdef __cplusplus |
| joehatier | 0:1a801a2a7b4b | 45 | } |
| joehatier | 0:1a801a2a7b4b | 46 | #endif |
| joehatier | 0:1a801a2a7b4b | 47 | |
| joehatier | 0:1a801a2a7b4b | 48 | #endif |
| joehatier | 0:1a801a2a7b4b | 49 | |
| joehatier | 0:1a801a2a7b4b | 50 | /** @}*/ |