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:
@@ -48,13 +48,13 @@ void filex_unicode_fat_entry_2_test_application_define(void *first_unused_mem
|
||||
#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;
|
||||
@@ -92,20 +92,20 @@ FX_LOCAL_PATH local_path;
|
||||
printf("FileX Test: Unicode fat entry 2 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
|
||||
128, // Sector size
|
||||
512, // Total sectors
|
||||
128, // Sector size
|
||||
1, // Sectors per cluster
|
||||
1, // Heads
|
||||
1); // Sectors per track
|
||||
1); // Sectors per track
|
||||
|
||||
/* Open the ram_disk. */
|
||||
status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACHE_SIZE);
|
||||
@@ -125,10 +125,10 @@ FX_LOCAL_PATH local_path;
|
||||
|
||||
/* Close the media to flush buffer. Now we have a disk with a corrupt dir_entry. */
|
||||
status += fx_media_close(&ram_disk);
|
||||
|
||||
|
||||
/* Open the ram_disk. */
|
||||
status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACHE_SIZE);
|
||||
if (status != FX_SUCCESS)
|
||||
if (status != FX_SUCCESS)
|
||||
{
|
||||
printf("ERROR!\n");
|
||||
test_control_return(19);
|
||||
@@ -141,7 +141,7 @@ FX_LOCAL_PATH local_path;
|
||||
#endif
|
||||
status += fx_unicode_directory_create(&ram_disk, long_unicode_name, length, (CHAR *)destination_name);
|
||||
|
||||
if (status == FX_SUCCESS)
|
||||
if (status == FX_SUCCESS)
|
||||
{
|
||||
printf("ERROR!\n");
|
||||
test_control_return(19);
|
||||
|
||||
Reference in New Issue
Block a user