mbed

Fork of mbed-dev by mbed official

Committer:
AnnaBridge
Date:
Thu Aug 31 17:27:04 2017 +0100
Revision:
173:7d866c31b3c5
This updates the lib to the mbed lib v 150

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 173:7d866c31b3c5 1 /* mbed Microcontroller Library
AnnaBridge 173:7d866c31b3c5 2 * Copyright (c) 2015-2016 Nuvoton
AnnaBridge 173:7d866c31b3c5 3 *
AnnaBridge 173:7d866c31b3c5 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 173:7d866c31b3c5 5 * you may not use this file except in compliance with the License.
AnnaBridge 173:7d866c31b3c5 6 * You may obtain a copy of the License at
AnnaBridge 173:7d866c31b3c5 7 *
AnnaBridge 173:7d866c31b3c5 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 173:7d866c31b3c5 9 *
AnnaBridge 173:7d866c31b3c5 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 173:7d866c31b3c5 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 173:7d866c31b3c5 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 173:7d866c31b3c5 13 * See the License for the specific language governing permissions and
AnnaBridge 173:7d866c31b3c5 14 * limitations under the License.
AnnaBridge 173:7d866c31b3c5 15 */
AnnaBridge 173:7d866c31b3c5 16
AnnaBridge 173:7d866c31b3c5 17 #ifndef MBED_DMA_H
AnnaBridge 173:7d866c31b3c5 18 #define MBED_DMA_H
AnnaBridge 173:7d866c31b3c5 19
AnnaBridge 173:7d866c31b3c5 20 #include "cmsis.h"
AnnaBridge 173:7d866c31b3c5 21
AnnaBridge 173:7d866c31b3c5 22 #ifdef __cplusplus
AnnaBridge 173:7d866c31b3c5 23 extern "C" {
AnnaBridge 173:7d866c31b3c5 24 #endif
AnnaBridge 173:7d866c31b3c5 25
AnnaBridge 173:7d866c31b3c5 26 #define DMA_CAP_NONE (0 << 0)
AnnaBridge 173:7d866c31b3c5 27
AnnaBridge 173:7d866c31b3c5 28 #define DMA_EVENT_ABORT (1 << 0)
AnnaBridge 173:7d866c31b3c5 29 #define DMA_EVENT_TRANSFER_DONE (1 << 1)
AnnaBridge 173:7d866c31b3c5 30 #define DMA_EVENT_TIMEOUT (1 << 2)
AnnaBridge 173:7d866c31b3c5 31 #define DMA_EVENT_ALL (DMA_EVENT_ABORT | DMA_EVENT_TRANSFER_DONE | DMA_EVENT_TIMEOUT)
AnnaBridge 173:7d866c31b3c5 32 #define DMA_EVENT_MASK DMA_EVENT_ALL
AnnaBridge 173:7d866c31b3c5 33
AnnaBridge 173:7d866c31b3c5 34 void dma_set_handler(int channelid, uint32_t handler, uint32_t id, uint32_t event);
AnnaBridge 173:7d866c31b3c5 35 PDMA_T *dma_modbase(void);
AnnaBridge 173:7d866c31b3c5 36
AnnaBridge 173:7d866c31b3c5 37 #ifdef __cplusplus
AnnaBridge 173:7d866c31b3c5 38 }
AnnaBridge 173:7d866c31b3c5 39 #endif
AnnaBridge 173:7d866c31b3c5 40
AnnaBridge 173:7d866c31b3c5 41 #endif