mirror of
https://github.com/eclipse-threadx/filex.git
synced 2026-09-14 20:55:36 +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,7 +46,7 @@ static UCHAR test_buffer[4096];
|
||||
#ifdef FX_ENABLE_FAULT_TOLERANT
|
||||
static UCHAR fault_tolerant_buffer[FAULT_TOLERANT_SIZE];
|
||||
#endif /* FX_ENABLE_FAULT_TOLERANT */
|
||||
static struct step steps[] =
|
||||
static struct step steps[] =
|
||||
{
|
||||
{0, FX_SEEK_FORWARD, 1136},
|
||||
{4 * sizeof(test_buffer), FX_SEEK_FORWARD, sizeof(test_buffer)},
|
||||
@@ -76,13 +76,13 @@ void filex_file_write_available_cluster_application_define(void *first_unused
|
||||
#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;
|
||||
@@ -130,20 +130,20 @@ TEST_START:
|
||||
#endif /* FX_ENABLE_FAULT_TOLERANT */
|
||||
|
||||
/* 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
|
||||
status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACHE_SIZE);
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
|
||||
@@ -259,7 +259,7 @@ TEST_START:
|
||||
my_file.fx_file_first_physical_cluster = ram_disk.fx_media_fat_reserved;
|
||||
status += fx_file_write( &my_file, test_buffer, steps[0].size);
|
||||
return_if_fail( status == FX_NOT_FOUND);
|
||||
|
||||
|
||||
/* Restore data we just modified. */
|
||||
my_file.fx_file_first_physical_cluster = actual;
|
||||
|
||||
@@ -304,7 +304,7 @@ EXTRA_TEST:
|
||||
status = fx_file_close(&my_file);
|
||||
status += fx_media_close( &ram_disk);
|
||||
return_if_fail( status == FX_SUCCESS);
|
||||
|
||||
|
||||
#ifdef FX_ENABLE_FAULT_TOLERANT
|
||||
if ( enable_fault_tolerant_this_time == 0)
|
||||
{
|
||||
@@ -312,7 +312,7 @@ EXTRA_TEST:
|
||||
goto TEST_START;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(FX_ENABLE_FAULT_TOLERANT) && !defined(FX_DISABLE_CACHE)
|
||||
FX_CACHED_SECTOR cache_entry;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user