Select one of the symbols to view example projects that use it.
 
Outline
...
...
...
...
...
...
#define FX_SYSTEM_H
#define FX_TIMER_ID
_fx_system_initialize();
_fx_system_date_set(UINT, UINT, UINT);
_fx_system_time_set(UINT, UINT, UINT);
_fx_system_date_get(UINT *, UINT *, UINT *);
_fx_system_time_get(UINT *, UINT *, UINT *);
_fx_system_timer_entry(ULONG);
_fxe_system_date_set(UINT, UINT, UINT);
_fxe_system_time_set(UINT, UINT, UINT);
_fxe_system_date_get(UINT *, UINT *, UINT *);
_fxe_system_time_get(UINT *, UINT *, UINT *);
#define SYSTEM_DECLARE
#define SYSTEM_DECLARE
_fx_system_media_opened_ptr
_fx_system_media_opened_count
_fx_system_date
_fx_system_time
_fx_system_media_max_sector_cache
_fx_system_media_max_fat_cache
_fx_system_build_options_1
_fx_system_build_options_2
_fx_system_build_options_3
_fx_system_timer
Files
loading...
CodeScopeSTM32 Libraries and Samplesfilexcommon/inc/fx_system.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/**************************************************************************/ /* */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* */ /* This software is licensed under the Microsoft Software License */ /* Terms for Microsoft Azure RTOS. Full text of the license can be */ /* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */ /* and in the root directory of this software. */ /* */... /**************************************************************************/ ... /**************************************************************************/ /**************************************************************************/ /** */ /** FileX Component */ /** */ /** System */ /** */... /**************************************************************************/ /**************************************************************************/ ... /**************************************************************************/ /* */ /* COMPONENT DEFINITION RELEASE */ /* */ /* fx_system.h PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* William E. Lamie, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This file defines the FileX system constants and global data */ /* definitions, including external references. It is assumed that */ /* fx_api.h (and fx_port.h) have already been included. */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 William E. Lamie Initial Version 6.0 */ /* 09-30-2020 William E. Lamie Modified comment(s), */ /* resulting in version 6.1 */ /* */... /**************************************************************************/ #ifndef FX_SYSTEM_H #define FX_SYSTEM_H /* Define System component constants. */ #define FX_TIMER_ID ((ULONG) 0x46585359) /* Define the external System component function prototypes. */ VOID _fx_system_initialize(VOID); UINT _fx_system_date_set(UINT year, UINT month, UINT day); UINT _fx_system_time_set(UINT hour, UINT minute, UINT second); UINT _fx_system_date_get(UINT *year, UINT *month, UINT *day); UINT _fx_system_time_get(UINT *hour, UINT *minute, UINT *second); VOID _fx_system_timer_entry(ULONG id); UINT _fxe_system_date_set(UINT year, UINT month, UINT day); UINT _fxe_system_time_set(UINT hour, UINT minute, UINT second); UINT _fxe_system_date_get(UINT *year, UINT *month, UINT *day); UINT _fxe_system_time_get(UINT *hour, UINT *minute, UINT *second); /* System Component data declarations follow. */ /* Determine if the initialization function of this component is including this file. If so, make the data definitions really happen. Otherwise, make them extern so other functions in the component can access them. *//* ... */ #ifdef FX_SYSTEM_INIT #define SYSTEM_DECLARE #else #define SYSTEM_DECLARE extern #endif /* Define the head pointer of the opened media list. */ SYSTEM_DECLARE FX_MEDIA *_fx_system_media_opened_ptr; /* Define the variable that holds the number of open media. */ SYSTEM_DECLARE ULONG _fx_system_media_opened_count; /* Define the system date variable. */ SYSTEM_DECLARE UINT _fx_system_date; /* Define the system time variable. */ SYSTEM_DECLARE UINT _fx_system_time; /* Define the variable that holds the maximum size of the sector cache. */ SYSTEM_DECLARE ULONG _fx_system_media_max_sector_cache; /* Define the variable that holds the maximum size of the FAT cache. */ SYSTEM_DECLARE ULONG _fx_system_media_max_fat_cache; /* Define the global FileX build options variables. These variables contain a bit map representing how the FileX library was built. The following are the bit field definitions: _fx_system_build_options_1: Bit(s) Meaning 31-24 FX_MAX_LONG_NAME_LEN 23-16 FX_MAX_LAST_NAME_LEN 15-11 Reserved 10 FX_NO_TIMER defined 9 FX_SINGLE_THREAD defined 8 FX_DONT_UPDATE_OPEN_FILES defined 7 FX_MEDIA_DISABLE_SEARCH_CACHE defined 6 FX_MEDIA_STATISTICS_DISABLE defined 5 Reserved 4 FX_SINGLE_OPEN_LEGACY defined 3 FX_RENAME_PATH_INHERIT defined 2 FX_NO_LOCAL_PATH defined 1 FX_FAULT_TOLERANT_DATA defined 0 FX_FAULT_TOLERANT defined _fx_system_build_options_2: Bit(s) Meaning 31-16 FX_MAX_SECTOR_CACHE 15-8 FX_FAT_MAP_SIZE 7-0 FX_MAX_FAT_CACHE _fx_system_build_options_3: Bit(s) Meaning 31-24 Reserved 23-16 FX_UPDATE_RATE_IN_SECONDS 15-0 FX_UPDATE_RATE_IN_TICKS Note that values greater than the value that can be represented in the build options bit field are represented as all ones in the bit field. For example, if FX_MAX_LONG_NAME_LEN is 256, the value in the bits 31-24 of _fx_system_build_options_1 is 0xFF, which is 255 decimal. *//* ... */ SYSTEM_DECLARE ULONG _fx_system_build_options_1; SYSTEM_DECLARE ULONG _fx_system_build_options_2; SYSTEM_DECLARE ULONG _fx_system_build_options_3; /* Define system timer control block. If accurate date/time stamps on files is not needed, the define FX_NO_TIMER should be used when compiling fx_system_initialize.c to eliminate the FileX timer. *//* ... */ #ifndef FX_NO_TIMER SYSTEM_DECLARE TX_TIMER _fx_system_timer; #endif /* ... */ #endif...