mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
pinmap.h
00001 00002 /** \addtogroup hal */ 00003 /** @{*/ 00004 /* mbed Microcontroller Library 00005 * Copyright (c) 2006-2013 ARM Limited 00006 * SPDX-License-Identifier: Apache-2.0 00007 * 00008 * Licensed under the Apache License, Version 2.0 (the "License"); 00009 * you may not use this file except in compliance with the License. 00010 * You may obtain a copy of the License at 00011 * 00012 * http://www.apache.org/licenses/LICENSE-2.0 00013 * 00014 * Unless required by applicable law or agreed to in writing, software 00015 * distributed under the License is distributed on an "AS IS" BASIS, 00016 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00017 * See the License for the specific language governing permissions and 00018 * limitations under the License. 00019 */ 00020 #ifndef MBED_PINMAP_H 00021 #define MBED_PINMAP_H 00022 00023 #include "PinNames.h" 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 typedef struct { 00030 PinName pin; 00031 int peripheral; 00032 int function; 00033 } PinMap; 00034 00035 void pin_function(PinName pin, int function); 00036 void pin_mode(PinName pin, PinMode mode); 00037 00038 uint32_t pinmap_peripheral(PinName pin, const PinMap *map); 00039 uint32_t pinmap_function(PinName pin, const PinMap *map); 00040 uint32_t pinmap_merge(uint32_t a, uint32_t b); 00041 void pinmap_pinout(PinName pin, const PinMap *map); 00042 uint32_t pinmap_find_peripheral(PinName pin, const PinMap *map); 00043 uint32_t pinmap_find_function(PinName pin, const PinMap *map); 00044 00045 #ifdef __cplusplus 00046 } 00047 #endif 00048 00049 #endif 00050 00051 /** @}*/
Generated on Tue Jul 12 2022 20:41:15 by 1.7.2