[keystone-rtos/edma3_lld.git] / examples / CSL2_DAT_DEMO / src / bios6_adapter / dat_edma3lld_bios6adapter.c
1 /*
2 * Copyright 2006
3 * Texas Instruments Incorporated
4 *
5 * All rights reserved. Property of Texas Instruments Incorporated
6 * Restricted rights to use, duplicate or disclose this code are
7 * granted through contract.
8 *
9 */
10 /**
11 * @file dat_edma3lld_biosAdapter.c
12 *
13 * @brief This file contains the OS specific helper functions
14 * required by the CSL DAT adapter
15 *
16 *
17 */
19 #include <ti/sysbios/knl/Task.h>
21 static unsigned int gie;
23 /*
24 * ======== _dat_critical_section_enter ========
25 * Disables task status and saves state
26 * Used to mark entry to critical code section
27 */
28 void _dat_critical_section_enter() {
29 gie = Task_disable ();
30 }
33 /*
34 * ======== _dat_critical_section_exit ========
35 * Restores task status
36 * Used to mark exit from critical code section
37 */
38 void _dat_critical_section_exit() {
39 Task_restore (gie);
40 }