]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M7_SAMV71_Xplained/libchip_samv7/include/uart_dma.h
Final V8.2.1 release ready for tagging:
[freertos] / FreeRTOS / Demo / CORTEX_M7_SAMV71_Xplained / libchip_samv7 / include / uart_dma.h
diff --git a/FreeRTOS/Demo/CORTEX_M7_SAMV71_Xplained/libchip_samv7/include/uart_dma.h b/FreeRTOS/Demo/CORTEX_M7_SAMV71_Xplained/libchip_samv7/include/uart_dma.h
deleted file mode 100644 (file)
index 8e1fac2..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-/* ----------------------------------------------------------------------------\r
- *         ATMEL Microcontroller Software Support\r
- * ----------------------------------------------------------------------------\r
- * Copyright (c) 2009, Atmel Corporation\r
- *\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions are met:\r
- *\r
- * - Redistributions of source code must retain the above copyright notice,\r
- * this list of conditions and the disclaimer below.\r
- *\r
- * Atmel's name may not be used to endorse or promote products derived from\r
- * this software without specific prior written permission.\r
- *\r
- * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR\r
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE\r
- * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\r
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\r
- * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\r
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- * ----------------------------------------------------------------------------\r
- */\r
-\r
-/**\r
- * \file\r
- *\r
- * Implementation of UART driver, transfer data through DMA.\r
- *\r
- */\r
-\r
-#ifndef _UART_DMA_\r
-#define _UART_DMA_\r
-\r
-/*----------------------------------------------------------------------------\r
- *        Headers\r
- *----------------------------------------------------------------------------*/\r
-\r
-#include "chip.h"\r
-\r
-/*----------------------------------------------------------------------------\r
- *        Definitions\r
- *----------------------------------------------------------------------------*/\r
-\r
-/** An unspecified error has occured.*/\r
-#define UARTD_ERROR          1\r
-\r
-/** UART driver is currently in use.*/\r
-#define UARTD_ERROR_LOCK     2\r
-\r
-\r
-#ifdef __cplusplus\r
- extern "C" {\r
-#endif\r
-\r
-/*----------------------------------------------------------------------------\r
- *        Types\r
- *----------------------------------------------------------------------------*/\r
-\r
-/** UART transfer complete callback. */\r
-typedef void (*UartdCallback)( uint8_t, void* ) ;\r
-\r
-/** \brief usart Transfer Request prepared by the application upper layer.\r
- *\r
- * This structure is sent to the UART_Send or UART_Rcv to start the transfer.\r
- * At the end of the transfer, the callback is invoked by the interrupt handler.\r
- */\r
-typedef struct\r
-{\r
-    /** Pointer to the Buffer. */\r
-    uint8_t *pBuff;\r
-    /** Buff size in bytes. */\r
-    uint8_t BuffSize;\r
-    /** Dma channel num. */\r
-    uint32_t ChNum;\r
-    /** Callback function invoked at the end of transfer. */\r
-    UartdCallback callback;\r
-    /** Callback arguments. */\r
-    void *pArgument;\r
-   /** flag to indicate the current transfer. */\r
-    volatile uint8_t sempaphore;\r
-} UartChannel ;\r
-\r
-/** Constant structure associated with UART port. This structure prevents\r
-    client applications to have access in the same time. */\r
-typedef struct \r
-{\r
-    /** Pointer to UART Hardware registers */\r
-    Uart* pUartHw ;\r
-    /** Current Uart Rx channel */\r
-    UartChannel *pRxChannel ;\r
-    /** Current Uart Tx channel */\r
-    UartChannel *pTxChannel ;\r
-    /** Pointer to DMA driver */\r
-    sXdmad* pXdmad;\r
-    /** USART Id as defined in the product datasheet */\r
-    uint8_t uartId ;\r
-} UartDma;\r
-\r
-/*----------------------------------------------------------------------------\r
- *        Exported functions\r
- *----------------------------------------------------------------------------*/\r
-\r
-extern uint32_t UARTD_Configure( UartDma *pUartd ,\r
-                                 Uart *pUartHw ,\r
-                                 uint8_t uartId,\r
-                                 uint32_t UartMode,\r
-                                 sXdmad *pXdmad );\r
-\r
-extern uint32_t UARTD_EnableTxChannels( UartDma *pUartd, UartChannel *pTxCh);\r
-\r
-extern uint32_t UARTD_EnableRxChannels( UartDma *pUartd, UartChannel *pRxCh);\r
-\r
-extern uint32_t UARTD_SendData( UartDma* pUartd ) ;\r
-\r
-extern uint32_t UARTD_RcvData( UartDma *pUartd);\r
-\r
-#ifdef __cplusplus\r
-}\r
-#endif\r
-\r
-#endif /* #ifndef _UART_DMA_ */\r