...

Dependents:   2doejemplo Labo_TRSE_Drone

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Mon Aug 05 12:28:09 2013 +0300
Revision:
64:e3affc9e7238
Parent:
62:7e6c9f46b3bd
Child:
65:5798e58a58b1
New build system structure, new target (LPC1347), bug fixes (I2C read/write errors, LPC11U24 memory map and others)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 64:e3affc9e7238 1 /* mbed Microcontroller Library
bogdanm 64:e3affc9e7238 2 * Copyright (c) 2006-2013 ARM Limited
bogdanm 64:e3affc9e7238 3 *
bogdanm 64:e3affc9e7238 4 * Licensed under the Apache License, Version 2.0 (the "License");
bogdanm 64:e3affc9e7238 5 * you may not use this file except in compliance with the License.
bogdanm 64:e3affc9e7238 6 * You may obtain a copy of the License at
bogdanm 64:e3affc9e7238 7 *
bogdanm 64:e3affc9e7238 8 * http://www.apache.org/licenses/LICENSE-2.0
bogdanm 64:e3affc9e7238 9 *
bogdanm 64:e3affc9e7238 10 * Unless required by applicable law or agreed to in writing, software
bogdanm 64:e3affc9e7238 11 * distributed under the License is distributed on an "AS IS" BASIS,
bogdanm 64:e3affc9e7238 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
bogdanm 64:e3affc9e7238 13 * See the License for the specific language governing permissions and
bogdanm 64:e3affc9e7238 14 * limitations under the License.
bogdanm 64:e3affc9e7238 15 */
bogdanm 64:e3affc9e7238 16 #ifndef MBED_PINMAP_H
bogdanm 64:e3affc9e7238 17 #define MBED_PINMAP_H
bogdanm 64:e3affc9e7238 18
bogdanm 64:e3affc9e7238 19 #include "PinNames.h"
bogdanm 64:e3affc9e7238 20
bogdanm 64:e3affc9e7238 21 #ifdef __cplusplus
bogdanm 64:e3affc9e7238 22 extern "C" {
bogdanm 64:e3affc9e7238 23 #endif
bogdanm 64:e3affc9e7238 24
bogdanm 64:e3affc9e7238 25 typedef struct {
bogdanm 64:e3affc9e7238 26 PinName pin;
bogdanm 64:e3affc9e7238 27 int peripheral;
bogdanm 64:e3affc9e7238 28 int function;
bogdanm 64:e3affc9e7238 29 } PinMap;
bogdanm 64:e3affc9e7238 30
bogdanm 64:e3affc9e7238 31 void pin_function(PinName pin, int function);
bogdanm 64:e3affc9e7238 32 void pin_mode (PinName pin, PinMode mode);
bogdanm 64:e3affc9e7238 33
bogdanm 64:e3affc9e7238 34 uint32_t pinmap_peripheral(PinName pin, const PinMap* map);
bogdanm 64:e3affc9e7238 35 uint32_t pinmap_merge (uint32_t a, uint32_t b);
bogdanm 64:e3affc9e7238 36 void pinmap_pinout (PinName pin, const PinMap *map);
bogdanm 64:e3affc9e7238 37
bogdanm 64:e3affc9e7238 38 #ifdef __cplusplus
bogdanm 64:e3affc9e7238 39 }
bogdanm 64:e3affc9e7238 40 #endif
bogdanm 64:e3affc9e7238 41
bogdanm 64:e3affc9e7238 42 #endif