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