mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Revision:
613:bc40b8d2aec4
Parent:
612:fba1c7dc54c0
Child:
614:9d86c2ae5de0
--- a/targets/hal/TARGET_Atmel/TARGET_SAM21/sercom_dma.h	Tue Aug 18 15:00:09 2015 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,62 +0,0 @@
-/* mbed Microcontroller Library
- * Copyright (c) 2006-2013 ARM Limited
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _SERCOM_DMA_H
-#define _SERCOM_DMA_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <compiler.h>
-#include "dma.h"
-
-
-struct sercom_dma {
-    uint8_t tx_channel_id;
-    uint8_t rx_channel_id;
-    enum dma_status_flags tx_status;
-    enum dma_status_flags rx_status;
-};
-
-/** Allocate a channel for TX
- *
- * @param[in] sercom_index	index of sercom instance
- * @param[out] tx_id		pointer to channel id
- * @return allocated channel id
- */
-uint8_t sercom_setup_tx_channel(uint8_t sercom_index, uint8_t *tx_id);
-
-/** Allocate a channel for RX
- *
- * @param[in] sercom_index	index of sercom instance
- * @param[out] rx_id		pointer to channel id
- * @return allocated channel id
- */
-uint8_t sercom_setup_rx_channel(uint8_t sercom_index, uint8_t *rx_id);
-
-/** Release DMA channels if allocated
- *
- * @param[in] sercom_index	index of sercom instance
- * @return void
- */
-void sercom_release_channel(uint8_t sercom_index);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _SERCOM_DMA_H */
\ No newline at end of file