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:
@@ -46,13 +46,13 @@ void filex_unicode_fat_entry_3_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;
|
||||
@@ -98,20 +98,20 @@ FX_LOCAL_PATH local_path;
|
||||
printf("FileX Test: Unicode fat entry 3 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
|
||||
7000, // Total sectors - FAT16
|
||||
128, // Sector size
|
||||
128, // Sector size
|
||||
1, // Sectors per cluster
|
||||
1, // Heads
|
||||
1); // Sectors per track
|
||||
1); // Sectors per track
|
||||
status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACHE_SIZE);
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
|
||||
@@ -148,7 +148,7 @@ FX_LOCAL_PATH local_path;
|
||||
}
|
||||
|
||||
/* Read the first FAT sector. */
|
||||
status = fx_media_read(&ram_disk, 1, (VOID *) fat_buffer);
|
||||
status = fx_media_read(&ram_disk, 1, (VOID *) fat_buffer);
|
||||
|
||||
/* Add a FAT entry randomly in the FAT table. */
|
||||
fat_buffer[6] = 0x32;
|
||||
@@ -173,7 +173,7 @@ FX_LOCAL_PATH local_path;
|
||||
}
|
||||
|
||||
/* Read the first FAT sector. */
|
||||
status = fx_media_read(&ram_disk, 1, (VOID *) fat_buffer);
|
||||
status = fx_media_read(&ram_disk, 1, (VOID *) fat_buffer);
|
||||
|
||||
/* Add a FAT entry randomly in the FAT table. */
|
||||
fat_buffer[6] = 0x03;
|
||||
@@ -195,7 +195,7 @@ FX_LOCAL_PATH local_path;
|
||||
}
|
||||
|
||||
/* Read the first FAT sector. */
|
||||
status = fx_media_read(&ram_disk, 1, (VOID *) fat_buffer);
|
||||
status = fx_media_read(&ram_disk, 1, (VOID *) fat_buffer);
|
||||
|
||||
/* Recovery FAT chain. */
|
||||
fat_buffer[6] = 0x06;
|
||||
@@ -217,7 +217,7 @@ FX_LOCAL_PATH local_path;
|
||||
}
|
||||
|
||||
/* Read the first FAT sector. */
|
||||
status = fx_media_read(&ram_disk, 1, (VOID *) fat_buffer);
|
||||
status = fx_media_read(&ram_disk, 1, (VOID *) fat_buffer);
|
||||
|
||||
/* Make FAT chain a circle. */
|
||||
fat_buffer[12] = 0x03;
|
||||
|
||||
Reference in New Issue
Block a user