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