This is the final version of Mini Gateway for Automation and Security desgined for Renesas GR Peach Design Contest

Dependencies:   GR-PEACH_video GraphicsFramework HTTPServer R_BSP mbed-rpc mbed-rtos Socket lwip-eth lwip-sys lwip FATFileSystem

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
vipinranka
Date:
Wed Jan 11 11:41:30 2017 +0000
Revision:
12:9a20164dcc47
This is the final version MGAS Project for Renesas GR Peach Design Contest

Who changed what in which revision?

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