BA / SerialCom

Fork of OmniWheels by Gustav Atmel

Committer:
gustavatmel
Date:
Tue May 01 15:55:34 2018 +0000
Revision:
2:798925c9e4a8
Parent:
1:9c5af431a1f1
bluetooth

Who changed what in which revision?

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