OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_LM3S316_IAR/] [hw_include/] [diag.h] - Blame information for rev 581

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.