1 //*****************************************************************************
\r
3 // cspy.c - Routines for simply ignoring the debugger communciation APIs in
\r
6 // Copyright (c) 2005,2006 Luminary Micro, Inc. All rights reserved.
\r
8 // Software License Agreement
\r
10 // Luminary Micro, Inc. (LMI) is supplying this software for use solely and
\r
11 // exclusively on LMI's Stellaris Family of microcontroller products.
\r
13 // The software is owned by LMI and/or its suppliers, and is protected under
\r
14 // applicable copyright laws. All rights are reserved. Any use in violation
\r
15 // of the foregoing restrictions may subject the user to criminal sanctions
\r
16 // under applicable laws, as well as to civil liability for the breach of the
\r
17 // terms and conditions of this license.
\r
19 // THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
\r
20 // OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
\r
21 // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
\r
22 // LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
\r
23 // CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
\r
25 // This is part of revision 635 of the Stellaris Driver Library.
\r
27 //*****************************************************************************
\r
31 //*****************************************************************************
\r
33 // Open a handle for stdio functions (both stdin and stdout).
\r
35 //*****************************************************************************
\r
42 //*****************************************************************************
\r
44 // Open a host file system file.
\r
46 //*****************************************************************************
\r
48 DiagOpen(const char *pcName, int iMode)
\r
53 //*****************************************************************************
\r
55 // Close a host file system file.
\r
57 //*****************************************************************************
\r
59 DiagClose(int iHandle)
\r
64 //*****************************************************************************
\r
66 // Write data to a host file system file.
\r
68 //*****************************************************************************
\r
70 DiagWrite(int iHandle, const char *pcBuf, unsigned long ulLen, int iMode)
\r
75 //*****************************************************************************
\r
77 // Read data from a host file system file.
\r
79 //*****************************************************************************
\r
81 DiagRead(int iHandle, char *pcBuf, unsigned long ulLen, int iMode)
\r
86 //*****************************************************************************
\r
88 // Get the length of a host file system file.
\r
90 //*****************************************************************************
\r
92 DiagFlen(int iHandle)
\r
97 //*****************************************************************************
\r
99 // Terminate the application.
\r
101 //*****************************************************************************
\r
110 //*****************************************************************************
\r
112 // Get the command line arguments from the debugger.
\r
114 //*****************************************************************************
\r
116 DiagCommandString(char *pcBuf, unsigned long ulLen)
\r