NetBurner 3.1
udefs.h
1 /*NB_REVISION*/
2 
3 #ifndef _UDEFSSTD_H_
4 #define _UDEFSSTD_H_
5 
6 /****************************************************************************
7  *
8  * Copyright (c) 2003 by HCC Embedded
9  *
10  * This software is copyrighted by and is the sole property of
11  * HCC. All rights, title, ownership, or other interests
12  * in the software remain the property of HCC. This
13  * software may only be used in accordance with the corresponding
14  * license agreement. Any unauthorized use, duplication, transmission,
15  * distribution, or disclosure of this software is expressly forbidden.
16  *
17  * This Copyright notice may not be removed or modified without prior
18  * written consent of HCC.
19  *
20  * HCC reserves the right to modify this software without notice.
21  *
22  * HCC Embedded
23  * Budapest 1132
24  * Victor Hugo Utca 11-15
25  * Hungary
26  *
27  * Tel: +36 (1) 450 1302
28  * Fax: +36 (1) 450 1303
29  * http: www.hcc-embedded.com
30  * email: info@hcc-embedded.com
31  *
32  ***************************************************************************/
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
39 /****************************************************************************
40  *
41  * if Common Interface is used then set CAPI_USED to 1
42  *
43  ***************************************************************************/
44 #define FS_CAPI_USED 0
45 
46  /****************************************************************************
47  *
48  * functions definitions
49  *
50  ***************************************************************************/
51 
52 #if FS_CAPI_USED
53 #include "../../fw_port.h"
54 #else
55 
56 /****************************************************************************
57  *
58  * volumes definitions
59  *
60  ***************************************************************************/
61 
62 #define FS_MAXVOLUME 5 /* maximum number of volumes */
63 #define FS_MAXTASK 10 /* maximum number of task */
64 
65 #define FS_MAXPATH 256 /* maximum lenght for path */
66 
67 #define FS_MUTEX_TYPE unsigned long
68 
69 /****************************************************************************
70  *
71  * if Unicode is used then comment in HCC_UNICODE define
72  *
73  ***************************************************************************/
74 /* #define HCC_UNICODE */
75 
76 typedef unsigned short wchar;
77 
78 #ifdef HCC_UNICODE
79 #define W_CHAR wchar
80 #else
81 #define W_CHAR char
82 #endif
83 
84 #if 1
85 #define FS_SEPARATORCHAR '/'
86 #else
87 #define FS_SEPARATORCHAR '\\'
88 #endif
89 
90 #endif /* FS_CAPI_USED */
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 /****************************************************************************
97  *
98  * end of udefs.h
99  *
100  ***************************************************************************/
101 
102 #endif /* _UDEFSSTD_H_ */