PIR grove sensor that sends the sensed data to Thingspeak.com through the wifi module ESP 8266
Embed:
(wiki syntax)
Show/hide line numbers
pinmap.h
00001 00002 /** \addtogroup hal */ 00003 /** @{*/ 00004 /* mbed Microcontroller Library 00005 * Copyright (c) 2006-2013 ARM Limited 00006 * 00007 * Licensed under the Apache License, Version 2.0 (the "License"); 00008 * you may not use this file except in compliance with the License. 00009 * You may obtain a copy of the License at 00010 * 00011 * http://www.apache.org/licenses/LICENSE-2.0 00012 * 00013 * Unless required by applicable law or agreed to in writing, software 00014 * distributed under the License is distributed on an "AS IS" BASIS, 00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00016 * See the License for the specific language governing permissions and 00017 * limitations under the License. 00018 */ 00019 #ifndef MBED_PINMAP_H 00020 #define MBED_PINMAP_H 00021 00022 #include "PinNames.h" 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 typedef struct { 00029 PinName pin; 00030 int peripheral; 00031 int function; 00032 } PinMap; 00033 00034 void pin_function(PinName pin, int function); 00035 void pin_mode (PinName pin, PinMode mode); 00036 00037 uint32_t pinmap_peripheral(PinName pin, const PinMap* map); 00038 uint32_t pinmap_function(PinName pin, const PinMap* map); 00039 uint32_t pinmap_merge (uint32_t a, uint32_t b); 00040 void pinmap_pinout (PinName pin, const PinMap *map); 00041 uint32_t pinmap_find_peripheral(PinName pin, const PinMap* map); 00042 uint32_t pinmap_find_function(PinName pin, const PinMap* map); 00043 00044 #ifdef __cplusplus 00045 } 00046 #endif 00047 00048 #endif 00049 00050 /** @}*/
Generated on Tue Jul 12 2022 14:11:10 by 1.7.2