mirror of
https://github.com/eclipse-threadx/filex.git
synced 2026-09-14 12:36:59 +08:00
Updated copyright headers and removed revision history
* Updated version number constants * Updated copyright headers and removed revision history
This commit is contained in:
@@ -62,13 +62,13 @@ void filex_file_name_application_define(void *first_unused_memory)
|
||||
#ifndef FX_STANDALONE_ENABLE
|
||||
UCHAR *pointer;
|
||||
|
||||
|
||||
|
||||
/* Setup the working pointer. */
|
||||
pointer = (UCHAR *) first_unused_memory;
|
||||
|
||||
/* Create the main thread. */
|
||||
tx_thread_create(&ftest_0, "thread 0", ftest_0_entry, 0,
|
||||
pointer, DEMO_STACK_SIZE,
|
||||
tx_thread_create(&ftest_0, "thread 0", ftest_0_entry, 0,
|
||||
pointer, DEMO_STACK_SIZE,
|
||||
4, 4, TX_NO_TIME_SLICE, TX_AUTO_START);
|
||||
|
||||
pointer = pointer + DEMO_STACK_SIZE;
|
||||
@@ -104,24 +104,24 @@ ULONG i;
|
||||
printf("FileX Test: File name test.........................................");
|
||||
|
||||
/* Format the media. This needs to be done before opening it! */
|
||||
status = fx_media_format(&ram_disk,
|
||||
status = fx_media_format(&ram_disk,
|
||||
_fx_ram_driver, // Driver entry
|
||||
ram_disk_memory, // RAM disk memory pointer
|
||||
cache_buffer, // Media buffer pointer
|
||||
CACHE_SIZE, // Media buffer size
|
||||
CACHE_SIZE, // Media buffer size
|
||||
"MY_RAM_DISK", // Volume Name
|
||||
1, // Number of FATs
|
||||
32, // Directory Entries
|
||||
0, // Hidden sectors
|
||||
512, // Total sectors
|
||||
512, // Sector size
|
||||
512, // Total sectors
|
||||
512, // Sector size
|
||||
8, // Sectors per cluster
|
||||
1, // Heads
|
||||
1); // Sectors per track
|
||||
1); // Sectors per track
|
||||
|
||||
/* Determine if the format had an error. */
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
|
||||
|
||||
/* Open the ram_disk. */
|
||||
status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACHE_SIZE);
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
@@ -153,7 +153,7 @@ ULONG i;
|
||||
/* Write to the file. */
|
||||
status = fx_file_write(&my_file, write_data, sizeof(write_data));
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
|
||||
|
||||
/* Close the file. */
|
||||
status = fx_file_close(&my_file);
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
@@ -175,7 +175,7 @@ ULONG i;
|
||||
/* Write to the file. */
|
||||
status = fx_file_write(&my_file, write_data, sizeof(write_data));
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
|
||||
|
||||
/* Close the file. */
|
||||
status = fx_file_close(&my_file);
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
@@ -199,7 +199,7 @@ ULONG i;
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
return_if_fail( actual == sizeof(write_data));
|
||||
return_if_fail( memcmp(read_data, write_data, actual) == 0);
|
||||
|
||||
|
||||
/* Close the file. */
|
||||
status = fx_file_close(&my_file);
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
|
||||
Reference in New Issue
Block a user