NetBurner 3.5.0
PDF Version
 
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#ifndef NB_BARE_METAL
35extern "C++"
36{
37#include <nbrtos.h>
38}
39#endif
40
41#ifdef __cplusplus
42extern "C"
43{
44#endif
45
46/****************************************************************************
47 *
48 * if Common Interface is used then set CAPI_USED to 1
49 *
50 ***************************************************************************/
51#define FS_CAPI_USED 0
52
53 /****************************************************************************
54 *
55 * functions definitions
56 *
57 ***************************************************************************/
58
59#if FS_CAPI_USED
60#include "../../fw_port.h"
61#else
62
63/****************************************************************************
64 *
65 * volumes definitions
66 *
67 ***************************************************************************/
68
69#define FS_MAXVOLUME 5 /* maximum number of volumes */
70#define FS_MAXTASK 10 /* maximum number of task */
71
72#define FS_MAXPATH 256 /* maximum lenght for path */
73
74#ifndef NB_BARE_METAL
75#define FS_MUTEX_TYPE OS_CRIT
76#else
77typedef struct
78{
79 unsigned short val;
80 short int taskID;
81} _fsm_mutex;
82#define FS_MUTEX_TYPE _fsm_mutex
83#endif
84
85/****************************************************************************
86 *
87 * if Unicode is used then comment in HCC_UNICODE define
88 *
89 ***************************************************************************/
90/* #define HCC_UNICODE */
91
92typedef unsigned short wchar;
93
94#ifdef HCC_UNICODE
95#define W_CHAR wchar
96#else
97#define W_CHAR char
98#endif
99
100#if 1
101#define FS_SEPARATORCHAR '/'
102#else
103#define FS_SEPARATORCHAR '\\'
104#endif
105
106#endif /* FS_CAPI_USED */
107
108#ifdef __cplusplus
109}
110#endif
111
112/****************************************************************************
113 *
114 * end of udefs.h
115 *
116 ***************************************************************************/
117
118#endif /* _UDEFSSTD_H_ */
NetBurner Real-Time Operating System (NBRTOS) API.