mbed

Dependents:   DHTSensor_Test K64F_eCompass_OneNET_JW

Committer:
mbotkinl
Date:
Wed Feb 25 20:22:22 2015 +0000
Revision:
0:2cc6bb4d7fea
Working code to read Temperature and Humidity readings

Who changed what in which revision?

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