]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/commitdiff
CSL_DAT example modified for new license header
authorAnuj Aggarwal <anuj.aggarwal@ti.com>
Thu, 20 Aug 2009 05:52:21 +0000 (11:22 +0530)
committerAnuj Aggarwal <anuj.aggarwal@ti.com>
Thu, 20 Aug 2009 05:52:21 +0000 (11:22 +0530)
examples/CSL2_DAT_DEMO/src/bios6_adapter/dat_edma3lld_bios6adapter.c
examples/CSL2_DAT_DEMO/src/csl2_legacy_include/csl_dat.h
examples/CSL2_DAT_DEMO/src/csl2_legacy_include/tistdtypes.h
examples/CSL2_DAT_DEMO/src/dat_edma3LLD/csl2_dat.c
examples/CSL2_DAT_DEMO/src/dat_edma3LLD/csl2_dat_edma3lld.c
examples/CSL2_DAT_DEMO/src/dat_edma3LLD/csl2_dat_edma3lld.h
examples/CSL2_DAT_DEMO/src/dat_edma3LLD/csl2_dat_edma3lld_config.h
examples/CSL2_DAT_DEMO/src/dat_edma3LLD/main.c

index c9684bf36b08bccbb38d7b8d422ee791feae0bc5..c2e64454ffdc4e35042ff3ef151670f09c092486 100644 (file)
@@ -1,20 +1,41 @@
 /*
- *  Copyright 2006
- *  Texas Instruments Incorporated
+ * dat_edma3lld_bios6adapter.c
  *
- *  All rights reserved.  Property of Texas Instruments Incorporated
- *  Restricted rights to use, duplicate or disclose this code are
- *  granted through contract.
+ * This file contains the OS specific helper functions required by the CSL DAT
+ * adapter.
  *
- */
-/**
- *  @file      dat_edma3lld_biosAdapter.c
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
  *
- *  @brief     This file contains the OS specific helper functions
- *             required by the CSL DAT adapter
  *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions
+ *  are met:
  *
- */
+ *    Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
 
 #include <ti/sysbios/knl/Task.h>
 
@@ -29,7 +50,6 @@ void _dat_critical_section_enter() {
     gie = Task_disable ();
 }
 
-
 /*
  * ======== _dat_critical_section_exit ========
  *  Restores task status
@@ -38,4 +58,3 @@ void _dat_critical_section_enter() {
 void _dat_critical_section_exit() {
     Task_restore (gie);
 }
-
index 420ed1c86977cf932415b82f204824f04339dcd9..84ccbc1262e65fa44cc329a74d0cd148d8d977c6 100644 (file)
@@ -1,11 +1,41 @@
-/******************************************************************************\
-*           Copyright (C) 1999-2000 Texas Instruments Incorporated.
-*                           All Rights Reserved
-*------------------------------------------------------------------------------
-* FILENAME...... csl_dat.h
-* DATE CREATED.. 11/11/1999
-* LAST MODIFIED. 10/03/2000
-\******************************************************************************/
+/*
+ * csl_dat.h
+ *
+ * CSL common header file.
+ *
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/ 
+ * 
+ * 
+ *  Redistribution and use in source and binary forms, with or without 
+ *  modification, are permitted provided that the following conditions 
+ *  are met:
+ *
+ *    Redistributions of source code must retain the above copyright 
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the 
+ *    documentation and/or other materials provided with the   
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
+
 #ifndef _CSL_DAT_H_
 #define _CSL_DAT_H_
 
index c72602e0350a6db31d0bfdf4d7185b32b67ac121..3708b2e9002e22189ff5eed0e99804f3dff2bb0a 100644 (file)
@@ -1,6 +1,40 @@
 /*
- *  ======== tistdtypes.h ========
- */
+ * tistdtypes.h
+ *
+ * Header file defining various data types.
+ *
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions
+ *  are met:
+ *
+ *    Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
 
 /*
  * These types are also defined by other TI components.  They are bracketed
index 854779b783c9070307660ef3e6140ad56eb835a8..902ac3203e459487475e6155475b205fecb6d4ed 100644 (file)
@@ -1,19 +1,41 @@
 /*
- *  Copyright 2006
- *  Texas Instruments Incorporated
+ * csl2_dat.c
  *
- *  All rights reserved.  Property of Texas Instruments Incorporated
- *  Restricted rights to use, duplicate or disclose this code are
- *  granted through contract.
+ * Implements the CSL DAT2 API using EDMA3 Driver and Resource Manager Package
+ * (EDMA3LLD). Behaviour mimics DAT2 on EDMA2 hardware.
  *
- */
-/**
- *  @file        csl_dat2.c
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
  *
- * @brief       Implements the CSL DAT2 API using EDMA3 Driver and Resource
- *              Manager Package (EDMA3LLD).
- *              Behaviour mimics DAT2 on EDMA2 hardware
- */
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions
+ *  are met:
+ *
+ *    Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
 
 #include <stdio.h>
 #include <csl_dat.h>
@@ -194,9 +216,9 @@ int DAT_open(int chNum, int priority, Uint32 flags) {
         /*
          * Store the allocated Channels in an array
          */
-        /* DMA/QDMA Channel */ 
+        /* DMA/QDMA Channel */
         DAT_allocatedChannels[i].paramNo = chaNum;
-        /* TCC */ 
+        /* TCC */
         DAT_allocatedChannels[i].tccNo = tccNum;
     }
 
@@ -445,7 +467,7 @@ Uint32 DAT_fill(void *dst, Uint16 byteCnt, Uint32 *value) {
 void DAT_wait(Uint32 waitId) {
        int i;
        Uint32 tcc;
-       
+
     /*
      * If both the registers are zero, we're done !!
      */
@@ -496,7 +518,7 @@ int DAT_busy(Uint32 waitId) {
     /*
      * Check if the particular transfer has completed by returning the status
      * from the itnernal completion register
-     */   
+     */
     if (waitId < 32) {
         if (GET_REGISTER32_BIT(TransferCompleteL,waitId)) {
                        /** Bit is still set, check in the IPR and clear it
@@ -512,7 +534,7 @@ int DAT_busy(Uint32 waitId) {
                                /* xfer not finished, leave... */
                                return 1;
                        }
-                               
+
         } else
                return 0;
     }
@@ -580,7 +602,7 @@ static inline Uint32 _getFreeChannel(Uint32 *tccNum) {
                            return chNum;
                                        }
             }
-            
+
         }
         else {
             if((GET_REGISTER32_BIT(TransferCompleteH,*tccNum - 32)) == 0) {
@@ -599,7 +621,7 @@ static inline Uint32 _getFreeChannel(Uint32 *tccNum) {
                                        }
             }
         }
-               
+
         /*
          * Increment index
          */
index 0aa79eb6796c71d94c7fcd3bd16f645e594ba5c5..a14912f7abf3f998a00d5054f5502199456e0c5b 100644 (file)
@@ -1,19 +1,40 @@
 /*
- *  Copyright 2006
- *  Texas Instruments Incorporated
+ * csl2_dat_edma3lld.c
  *
- *  All rights reserved.  Property of Texas Instruments Incorporated
- *  Restricted rights to use, duplicate or disclose this code are
- *  granted through contract.
+ * Implements the EDMA3 LLD Initialization and clean up functions.
  *
- */
-/**
- *  @file        csl2_dat_edma3lld.c
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
  *
- *  @brief       Implements the EDMA3 LLD Initialization and clean up
- *               functions
  *
- */
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions
+ *  are met:
+ *
+ *    Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
 
 /*
  * Includes for accessing EDMA3 Driver Sample Init/Deinit functions
index 84813ed29fae55cf85184428c06c84f0a366fc2c..aeed3ade61fc25053f208b1db31f45fedc2d34cf 100644 (file)
@@ -1,19 +1,40 @@
 /*
- *  Copyright 2006
- *  Texas Instruments Incorporated
+ * csl2_dat_edma3lld.h
  *
- *  All rights reserved.  Property of Texas Instruments Incorporated
- *  Restricted rights to use, duplicate or disclose this code are
- *  granted through contract.
+ * Header for the EDMA3 LLD setup and clean up functions
  *
- */
-/*
- *  @file        csl2_dat_edma3lld.h
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/ 
+ * 
+ * 
+ *  Redistribution and use in source and binary forms, with or without 
+ *  modification, are permitted provided that the following conditions 
+ *  are met:
  *
- *  @brief      Header for the EDMA3 LLD setup and clean up functions
+ *    Redistributions of source code must retain the above copyright 
+ *    notice, this list of conditions and the following disclaimer.
  *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the 
+ *    documentation and/or other materials provided with the   
+ *    distribution.
  *
- */
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
 
 /*
  * Includes to access the EDMA3 driver libraries
index be39321c89e417b9415e82969993725426fc38e5..36f896eaeb2241e0ce9edcaae799319adfaa4a7c 100644 (file)
@@ -1,20 +1,41 @@
 /*
- *  Copyright 2006
- *  Texas Instruments Incorporated
+ * csl2_dat_edma3lld_config.h
  *
- *  All rights reserved.  Property of Texas Instruments Incorporated
- *  Restricted rights to use, duplicate or disclose this code are
- *  granted through contract.
+ * Defines the hardware specific parameters required by the CSL DAT2 EDMA3
+ * Adapter.
  *
- */
-/**
- *  @file       csl2_dat_edma3lld_config.h
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
  *
- *  @brief      Defines the hardware specific parameters required by the
- *              CSL DAT2 EDMA3 Adapter
  *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions
+ *  are met:
  *
- */
+ *    Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
 
 #ifndef _CSL_DAT2_EDMA3LLD_CONFIG_H
 #define _CSL_DAT2_EDMA3LLD_CONFIG_H
@@ -57,7 +78,7 @@
         _dat_critical_section_enter(); ((reg) |= (0x1 << (bit))); \
         _dat_critical_section_exit();
 /*
- * Set bit in 32-bit register (ISR context) 
+ * Set bit in 32-bit register (ISR context)
  */
 #define SET_REGISTER32_BIT_DURING_INT(reg,bit) \
         ((reg) |= (0x1 << (bit)));
index 64abf3ae3c5defcdf9890f186131889aceb929d2..b3c690ecbcf69ff54bfc215d0db79abe8d1143b2 100644 (file)
@@ -1,20 +1,41 @@
 /*
- *  Copyright 2006
- *  Texas Instruments Incorporated
+ * main.c
  *
- *  All rights reserved.  Property of Texas Instruments Incorporated
- *  Restricted rights to use, duplicate or disclose this code are
- *  granted through contract.
+ * Demonstrates how to use DAT APIs, implemented using CSL DAT adapter, with
+ * EDMA3 hardware.
  *
- */
-/**
- *  @file      main.c
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
  *
- * @brief      Demonstrates how to use DAT APIs implemented using CSL DAT
- *             adapter with EDMA3 hardware
  *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions
+ *  are met:
  *
- */
+ *    Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
 
 #include <xdc/std.h>
 #include <stdio.h>
@@ -68,10 +89,10 @@ static void tskHeartBit(void);
 void main()
        {
        Task_Params datParams;
-       
+
        Task_Params_init (&datParams);
        datParams.stackSize = 8192;
-       
+
        Task_create((Task_FuncPtr)DAT_main, &datParams, NULL);
 
     BIOS_start();
@@ -107,7 +128,7 @@ void DAT_main()
     if (0 != DAT_open(0,0,0))
     {
                printf ("DAT_open Successful\n");
-               
+
            waitId[1] = DAT_fill(srcBuff1, SIZE, (Uint32 *)&fill1d);
         waitId[1] = DAT_fill(srcBuff1, SIZE, (Uint32 *)&fill1d);
         waitId[2] = DAT_fill(srcBuff2, SIZE, (Uint32 *)&fill1d2d);
@@ -198,4 +219,3 @@ void tskHeartBit()
         counter++;
         }
     }
-