游戏王对战板,目前code还是空的

Committer:
WFKnight
Date:
Thu Jun 21 13:51:43 2018 +0000
Revision:
0:9b3d4731edbb
UART, RTOS, LED

Who changed what in which revision?

UserRevisionLine numberNew contents of line
WFKnight 0:9b3d4731edbb 1
WFKnight 0:9b3d4731edbb 2 /** \addtogroup hal */
WFKnight 0:9b3d4731edbb 3 /** @{*/
WFKnight 0:9b3d4731edbb 4 /* mbed Microcontroller Library
WFKnight 0:9b3d4731edbb 5 * Copyright (c) 2014-2015 ARM Limited
WFKnight 0:9b3d4731edbb 6 *
WFKnight 0:9b3d4731edbb 7 * Licensed under the Apache License, Version 2.0 (the "License");
WFKnight 0:9b3d4731edbb 8 * you may not use this file except in compliance with the License.
WFKnight 0:9b3d4731edbb 9 * You may obtain a copy of the License at
WFKnight 0:9b3d4731edbb 10 *
WFKnight 0:9b3d4731edbb 11 * http://www.apache.org/licenses/LICENSE-2.0
WFKnight 0:9b3d4731edbb 12 *
WFKnight 0:9b3d4731edbb 13 * Unless required by applicable law or agreed to in writing, software
WFKnight 0:9b3d4731edbb 14 * distributed under the License is distributed on an "AS IS" BASIS,
WFKnight 0:9b3d4731edbb 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
WFKnight 0:9b3d4731edbb 16 * See the License for the specific language governing permissions and
WFKnight 0:9b3d4731edbb 17 * limitations under the License.
WFKnight 0:9b3d4731edbb 18 */
WFKnight 0:9b3d4731edbb 19 #ifndef MBED_DMA_API_H
WFKnight 0:9b3d4731edbb 20 #define MBED_DMA_API_H
WFKnight 0:9b3d4731edbb 21
WFKnight 0:9b3d4731edbb 22 #include <stdint.h>
WFKnight 0:9b3d4731edbb 23
WFKnight 0:9b3d4731edbb 24 #define DMA_ERROR_OUT_OF_CHANNELS (-1)
WFKnight 0:9b3d4731edbb 25
WFKnight 0:9b3d4731edbb 26 typedef enum {
WFKnight 0:9b3d4731edbb 27 DMA_USAGE_NEVER,
WFKnight 0:9b3d4731edbb 28 DMA_USAGE_OPPORTUNISTIC,
WFKnight 0:9b3d4731edbb 29 DMA_USAGE_ALWAYS,
WFKnight 0:9b3d4731edbb 30 DMA_USAGE_TEMPORARY_ALLOCATED,
WFKnight 0:9b3d4731edbb 31 DMA_USAGE_ALLOCATED
WFKnight 0:9b3d4731edbb 32 } DMAUsage;
WFKnight 0:9b3d4731edbb 33
WFKnight 0:9b3d4731edbb 34 #ifdef __cplusplus
WFKnight 0:9b3d4731edbb 35 extern "C" {
WFKnight 0:9b3d4731edbb 36 #endif
WFKnight 0:9b3d4731edbb 37
WFKnight 0:9b3d4731edbb 38 void dma_init(void);
WFKnight 0:9b3d4731edbb 39
WFKnight 0:9b3d4731edbb 40 int dma_channel_allocate(uint32_t capabilities);
WFKnight 0:9b3d4731edbb 41
WFKnight 0:9b3d4731edbb 42 int dma_channel_free(int channelid);
WFKnight 0:9b3d4731edbb 43
WFKnight 0:9b3d4731edbb 44 #ifdef __cplusplus
WFKnight 0:9b3d4731edbb 45 }
WFKnight 0:9b3d4731edbb 46 #endif
WFKnight 0:9b3d4731edbb 47
WFKnight 0:9b3d4731edbb 48 #endif
WFKnight 0:9b3d4731edbb 49
WFKnight 0:9b3d4731edbb 50 /** @}*/