]> git.sur5r.net Git - freertos/blob - Demo/CORTEX_LM3S316_IAR/hw_include/diag.h
Remove needs-lock SVN parameter from files in the CORTEX-LM3Sxxxx_IAR_KEIL directory.
[freertos] / Demo / CORTEX_LM3S316_IAR / hw_include / diag.h
1 //*****************************************************************************\r
2 //\r
3 // diag.h - Prototypes for the diagnostic functions.\r
4 //\r
5 // Copyright (c) 2005,2006 Luminary Micro, Inc.  All rights reserved.\r
6 //\r
7 // Software License Agreement\r
8 //\r
9 // Luminary Micro, Inc. (LMI) is supplying this software for use solely and\r
10 // exclusively on LMI's Stellaris Family of microcontroller products.\r
11 //\r
12 // The software is owned by LMI and/or its suppliers, and is protected under\r
13 // applicable copyright laws.  All rights are reserved.  Any use in violation\r
14 // of the foregoing restrictions may subject the user to criminal sanctions\r
15 // under applicable laws, as well as to civil liability for the breach of the\r
16 // terms and conditions of this license.\r
17 //\r
18 // THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED\r
19 // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF\r
20 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.\r
21 // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR\r
22 // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.\r
23 //\r
24 // This is part of revision 635 of the Stellaris Driver Library.\r
25 //\r
26 //*****************************************************************************\r
27 \r
28 #ifndef __DIAG_H__\r
29 #define __DIAG_H__\r
30 \r
31 #ifdef __cplusplus\r
32 extern "C"\r
33 {\r
34 #endif\r
35 \r
36 //*****************************************************************************\r
37 //\r
38 // Values that can be passed as the iMode parater to DiagOpen, DiagRead, and\r
39 // DiagWrite.\r
40 //\r
41 //*****************************************************************************\r
42 #define OPEN_R                  0           // read access\r
43 #define OPEN_W                  4           // write access\r
44 #define OPEN_A                  8           // append to file\r
45 #define OPEN_B                  1           // binary access\r
46 #define OPEN_PLUS               2           // read and write access\r
47 \r
48 //*****************************************************************************\r
49 //\r
50 // Prototypes for the APIs.\r
51 //\r
52 //*****************************************************************************\r
53 extern int DiagOpenStdio(void);\r
54 extern int DiagOpen(const char *pcName, int iMode);\r
55 extern int DiagClose(int iHandle);\r
56 extern int DiagWrite(int iHandle, const char *pcBuf, unsigned long ulLen,\r
57                      int iMode);\r
58 extern int DiagRead(int iHandle, char *pcBuf, unsigned long ulLen, int iMode);\r
59 extern long DiagFlen(int iHandle);\r
60 extern void DiagExit(int iRet);\r
61 extern char *DiagCommandString(char *pcBuf, unsigned long ulLen);\r
62 \r
63 #ifdef __cplusplus\r
64 }\r
65 #endif\r
66 \r
67 #endif // __DIAG_H__\r