MDK-ARM Keil, MDK-ARM Datasheet - Page 55

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Getting Started: Building Applications with RL-ARM
//Create a file to store the directory listing
FINFO info;
Fptr = fopen ("directory.log", "w");
while (ffind ("R:*.*", &info) == 0) {
}
fclose (Fptr);
In addition to containing records for file details, the FINFO structure also
contains fields to hold a timestamp of the creation time or modification time of
the file.
typedef struct
} FINFO;
The time and calendar information is provided through two functions held in the
file
U32 fs_get_time (void);
U32 fs_get_date (void);
If you want to use time and date information within your application, you must
modify these two functions to access the real-time clock on your microcontroller.
You must also add the code to initialize the real-time clock. The file
located in
project in
When rebuilding the library, be careful to select either the ARM_LE (ARM7/9
Little-Endian) or Cortex as the target. The
you are using a RAM-based file system.
Exercise: Drive Functions
This project contains several examples, which demonstrate maintaining and
working with a drive volume.
fprintf (Fptr, "\nname %s %5d bytes ID: %04d",
S8
U32 size;
U16 fileID;
U8
struct
} time;
fs_time.c
U8
U8
U8
U8
U8
U16 year;
name [256];
attrib;
hr;
min;
sec;
day;
mon;
C:\KEIL\ARM\RL\FLASH
C:\KEIL\ARM\RL\FLASHFS\SRC
{
.
info.name, info.size, info.fileID);
{
// Search info record
// Name
// File size in bytes
// System Identification
// Attributes
// Hours
// Minutes
// Seconds
// Day
// Month
// Year
// Create/Modify Time
to provide a custom library for your application.
[0..23]
[0..59]
[0..59]
[1..31]
[1..12]
[1980..2107]
. You can rebuild the library with the
fs_time.c
// Search drive for all files
functions are not supported if
fs_time.c
is
55

Related parts for MDK-ARM