[processor-sdk/performance-audio-sr.git] / pdk_k2g_1_0_1_0_eng / packages / ti / board / src / flash / platform_flash / types.h
1 /******************************************************************************
2 * Copyright (c) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the
14 * distribution.
15 *
16 * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 *****************************************************************************/
34 /******************************************************************************
35 *
36 * File Name: types.h
37 *
38 * Description: This file contains the standard data types used
39 *
40 ******************************************************************************/
41 #ifndef _TYPES_H_
42 #define _TYPES_H_
44 /*********************************
45 * Defines and Macros and globals
46 *********************************/
48 // Generic masks.
49 #define BIT0 (0x00000001)
50 #define BIT1 (0x00000002)
51 #define BIT2 (0x00000004)
52 #define BIT3 (0x00000008)
53 #define BIT4 (0x00000010)
54 #define BIT5 (0x00000020)
55 #define BIT6 (0x00000040)
56 #define BIT7 (0x00000080)
57 #define BIT8 (0x00000100)
58 #define BIT9 (0x00000200)
59 #define BIT10 (0x00000400)
60 #define BIT11 (0x00000800)
61 #define BIT12 (0x00001000)
62 #define BIT13 (0x00002000)
63 #define BIT14 (0x00004000)
64 #define BIT15 (0x00008000)
65 #define BIT16 (0x00010000)
66 #define BIT17 (0x00020000)
67 #define BIT18 (0x00040000)
68 #define BIT19 (0x00080000)
69 #define BIT20 (0x00100000)
70 #define BIT21 (0x00200000)
71 #define BIT22 (0x00400000)
72 #define BIT23 (0x00800000)
73 #define BIT24 (0x01000000)
74 #define BIT25 (0x02000000)
75 #define BIT26 (0x04000000)
76 #define BIT27 (0x08000000)
77 #define BIT28 (0x10000000)
78 #define BIT29 (0x20000000)
79 #define BIT30 (0x40000000)
80 #define BIT31 (0x80000000)
82 #ifndef NULL
83 #define NULL 0
84 #endif
86 #define SUCCESS (0)
87 #define FAIL (1)
89 // Macros for error
90 #define NULL_POINTER_ERROR (2)
91 #define INVALID_ARGUMENTS (3)
94 #endif // TYPES_H_