PIR grove sensor that sends the sensed data to Thingspeak.com through the wifi module ESP 8266

Dependencies:   mbed

Committer:
skrawool
Date:
Mon Dec 05 16:39:27 2016 +0000
Revision:
0:3954a906acc2
PIR grove sensor that sends the sensed data to thingspeak through the wifi module ESP 8266

Who changed what in which revision?

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