IoT Home Alarm System

Dependents:   IoTBurglar_and_Fire_AlarmSystem

Committer:
kbrahmbhatt6
Date:
Fri Apr 29 06:59:59 2016 +0000
Revision:
0:2f388b030837
1

Who changed what in which revision?

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