1 |
581 |
jeremybenn |
//*****************************************************************************
|
2 |
|
|
//
|
3 |
|
|
// cspy.c - Routines for simply ignoring the debugger communciation APIs in
|
4 |
|
|
// C-Spy for now.
|
5 |
|
|
//
|
6 |
|
|
// Copyright (c) 2005,2006 Luminary Micro, Inc. All rights reserved.
|
7 |
|
|
//
|
8 |
|
|
// Software License Agreement
|
9 |
|
|
//
|
10 |
|
|
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
|
11 |
|
|
// exclusively on LMI's Stellaris Family of microcontroller products.
|
12 |
|
|
//
|
13 |
|
|
// The software is owned by LMI and/or its suppliers, and is protected under
|
14 |
|
|
// applicable copyright laws. All rights are reserved. Any use in violation
|
15 |
|
|
// of the foregoing restrictions may subject the user to criminal sanctions
|
16 |
|
|
// under applicable laws, as well as to civil liability for the breach of the
|
17 |
|
|
// terms and conditions of this license.
|
18 |
|
|
//
|
19 |
|
|
// THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
|
20 |
|
|
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
|
21 |
|
|
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
|
22 |
|
|
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
|
23 |
|
|
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
|
24 |
|
|
//
|
25 |
|
|
// This is part of revision 635 of the Stellaris Driver Library.
|
26 |
|
|
//
|
27 |
|
|
//*****************************************************************************
|
28 |
|
|
|
29 |
|
|
#include "diag.h"
|
30 |
|
|
|
31 |
|
|
//*****************************************************************************
|
32 |
|
|
//
|
33 |
|
|
// Open a handle for stdio functions (both stdin and stdout).
|
34 |
|
|
//
|
35 |
|
|
//*****************************************************************************
|
36 |
|
|
int
|
37 |
|
|
DiagOpenStdio(void)
|
38 |
|
|
{
|
39 |
|
|
return(-1);
|
40 |
|
|
}
|
41 |
|
|
|
42 |
|
|
//*****************************************************************************
|
43 |
|
|
//
|
44 |
|
|
// Open a host file system file.
|
45 |
|
|
//
|
46 |
|
|
//*****************************************************************************
|
47 |
|
|
int
|
48 |
|
|
DiagOpen(const char *pcName, int iMode)
|
49 |
|
|
{
|
50 |
|
|
return(-1);
|
51 |
|
|
}
|
52 |
|
|
|
53 |
|
|
//*****************************************************************************
|
54 |
|
|
//
|
55 |
|
|
// Close a host file system file.
|
56 |
|
|
//
|
57 |
|
|
//*****************************************************************************
|
58 |
|
|
int
|
59 |
|
|
DiagClose(int iHandle)
|
60 |
|
|
{
|
61 |
|
|
return(-1);
|
62 |
|
|
}
|
63 |
|
|
|
64 |
|
|
//*****************************************************************************
|
65 |
|
|
//
|
66 |
|
|
// Write data to a host file system file.
|
67 |
|
|
//
|
68 |
|
|
//*****************************************************************************
|
69 |
|
|
int
|
70 |
|
|
DiagWrite(int iHandle, const char *pcBuf, unsigned long ulLen, int iMode)
|
71 |
|
|
{
|
72 |
|
|
return(-1);
|
73 |
|
|
}
|
74 |
|
|
|
75 |
|
|
//*****************************************************************************
|
76 |
|
|
//
|
77 |
|
|
// Read data from a host file system file.
|
78 |
|
|
//
|
79 |
|
|
//*****************************************************************************
|
80 |
|
|
int
|
81 |
|
|
DiagRead(int iHandle, char *pcBuf, unsigned long ulLen, int iMode)
|
82 |
|
|
{
|
83 |
|
|
return(-1);
|
84 |
|
|
}
|
85 |
|
|
|
86 |
|
|
//*****************************************************************************
|
87 |
|
|
//
|
88 |
|
|
// Get the length of a host file system file.
|
89 |
|
|
//
|
90 |
|
|
//*****************************************************************************
|
91 |
|
|
long
|
92 |
|
|
DiagFlen(int iHandle)
|
93 |
|
|
{
|
94 |
|
|
return(-1);
|
95 |
|
|
}
|
96 |
|
|
|
97 |
|
|
//*****************************************************************************
|
98 |
|
|
//
|
99 |
|
|
// Terminate the application.
|
100 |
|
|
//
|
101 |
|
|
//*****************************************************************************
|
102 |
|
|
void
|
103 |
|
|
DiagExit(int iRet)
|
104 |
|
|
{
|
105 |
|
|
while(1)
|
106 |
|
|
{
|
107 |
|
|
}
|
108 |
|
|
}
|
109 |
|
|
|
110 |
|
|
//*****************************************************************************
|
111 |
|
|
//
|
112 |
|
|
// Get the command line arguments from the debugger.
|
113 |
|
|
//
|
114 |
|
|
//*****************************************************************************
|
115 |
|
|
char *
|
116 |
|
|
DiagCommandString(char *pcBuf, unsigned long ulLen)
|
117 |
|
|
{
|
118 |
|
|
return(0);
|
119 |
|
|
}
|