DHT11

Committer:
jhon309
Date:
Thu Aug 13 00:21:57 2015 +0000
Revision:
0:c52df770855b
DHT11

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jhon309 0:c52df770855b 1 /* mbed Microcontroller Library
jhon309 0:c52df770855b 2 * CMSIS-style functionality to support dynamic vectors
jhon309 0:c52df770855b 3 *******************************************************************************
jhon309 0:c52df770855b 4 * Copyright (c) 2014, STMicroelectronics
jhon309 0:c52df770855b 5 * All rights reserved.
jhon309 0:c52df770855b 6 *
jhon309 0:c52df770855b 7 * Redistribution and use in source and binary forms, with or without
jhon309 0:c52df770855b 8 * modification, are permitted provided that the following conditions are met:
jhon309 0:c52df770855b 9 *
jhon309 0:c52df770855b 10 * 1. Redistributions of source code must retain the above copyright notice,
jhon309 0:c52df770855b 11 * this list of conditions and the following disclaimer.
jhon309 0:c52df770855b 12 * 2. Redistributions in binary form must reproduce the above copyright notice,
jhon309 0:c52df770855b 13 * this list of conditions and the following disclaimer in the documentation
jhon309 0:c52df770855b 14 * and/or other materials provided with the distribution.
jhon309 0:c52df770855b 15 * 3. Neither the name of STMicroelectronics nor the names of its contributors
jhon309 0:c52df770855b 16 * may be used to endorse or promote products derived from this software
jhon309 0:c52df770855b 17 * without specific prior written permission.
jhon309 0:c52df770855b 18 *
jhon309 0:c52df770855b 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
jhon309 0:c52df770855b 20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
jhon309 0:c52df770855b 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
jhon309 0:c52df770855b 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
jhon309 0:c52df770855b 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
jhon309 0:c52df770855b 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
jhon309 0:c52df770855b 25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
jhon309 0:c52df770855b 26 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
jhon309 0:c52df770855b 27 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
jhon309 0:c52df770855b 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
jhon309 0:c52df770855b 29 *******************************************************************************
jhon309 0:c52df770855b 30 */
jhon309 0:c52df770855b 31
jhon309 0:c52df770855b 32 #ifndef MBED_CMSIS_NVIC_H
jhon309 0:c52df770855b 33 #define MBED_CMSIS_NVIC_H
jhon309 0:c52df770855b 34
jhon309 0:c52df770855b 35 // STM32F072RB
jhon309 0:c52df770855b 36 // CORE: 16 vectors = 64 bytes from 0x00 to 0x3F
jhon309 0:c52df770855b 37 // MCU Peripherals: 32 vectors = 128 bytes from 0x40 to 0xBF
jhon309 0:c52df770855b 38 // Total: 48 vectors = 192 bytes (0xC0) to be reserved in RAM
jhon309 0:c52df770855b 39 #define NVIC_NUM_VECTORS 48
jhon309 0:c52df770855b 40 #define NVIC_USER_IRQ_OFFSET 16
jhon309 0:c52df770855b 41
jhon309 0:c52df770855b 42 #include "cmsis.h"
jhon309 0:c52df770855b 43
jhon309 0:c52df770855b 44 #ifdef __cplusplus
jhon309 0:c52df770855b 45 extern "C" {
jhon309 0:c52df770855b 46 #endif
jhon309 0:c52df770855b 47
jhon309 0:c52df770855b 48 void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
jhon309 0:c52df770855b 49 uint32_t NVIC_GetVector(IRQn_Type IRQn);
jhon309 0:c52df770855b 50
jhon309 0:c52df770855b 51 #ifdef __cplusplus
jhon309 0:c52df770855b 52 }
jhon309 0:c52df770855b 53 #endif
jhon309 0:c52df770855b 54
jhon309 0:c52df770855b 55 #endif