anyThing Connected Team / mbed-dev

Dependents:   BREAK_SENSOR_LED

Fork of mbed-dev by mbed official

Committer:
Anythingconnected
Date:
Mon Dec 18 10:14:27 2017 +0000
Revision:
180:d79f997829d6
Parent:
167:e84263d55307
Getting byte by byte read to work

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 167:e84263d55307 1 /* mbed Microcontroller Library
AnnaBridge 167:e84263d55307 2 * Copyright (c) 2017 ARM Limited
AnnaBridge 167:e84263d55307 3 *
AnnaBridge 167:e84263d55307 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 167:e84263d55307 5 * you may not use this file except in compliance with the License.
AnnaBridge 167:e84263d55307 6 * You may obtain a copy of the License at
AnnaBridge 167:e84263d55307 7 *
AnnaBridge 167:e84263d55307 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 167:e84263d55307 9 *
AnnaBridge 167:e84263d55307 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 167:e84263d55307 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 167:e84263d55307 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 167:e84263d55307 13 * See the License for the specific language governing permissions and
AnnaBridge 167:e84263d55307 14 * limitations under the License.
AnnaBridge 167:e84263d55307 15 */
AnnaBridge 167:e84263d55307 16 #include "cmsis.h"
AnnaBridge 167:e84263d55307 17 #include "mbed_toolchain.h"
AnnaBridge 167:e84263d55307 18
AnnaBridge 167:e84263d55307 19 /* RAM vector_table needs to be aligned with the size of the vector table */
AnnaBridge 167:e84263d55307 20 /* TODO: Use MXC_IRQ_COUNT to automatically set this alignment per DUI0553A 4.3.4 */
AnnaBridge 167:e84263d55307 21 /* Vector Table Offset which requires the next-power-of-two alignment. This */
AnnaBridge 167:e84263d55307 22 /* can be calculated by 4*pow(2,ceil(log2(MXC_IRQ_COUNT))) */
AnnaBridge 167:e84263d55307 23 MBED_ALIGN(512)
AnnaBridge 167:e84263d55307 24 void (*ramVectorTable[MXC_IRQ_COUNT])(void);