...
Anchor
fs_dev_ide.c
...
fs_dev_ide.h
...
...
fs_dev_ide_bsp.c
(located in the user application or BSP).
Anchor
fs_dev_ide.h
must also be #included in any application or header files that directly reference the driver (for example, by registering the device driver). The following directories must be on the project include path:\Micrium\Software\uC-FS\Drivers\IDE
...
...
A single IDE/CF volume is opened as shown in
...
Listing - Opening a IDE/CF device volume. The file system initialization (FS_Init()
) function must have been previously called.
...
ROM/RAM characteristics and performance benchmarks of the IDE driver can be found in section 9-1-1 “Driver Characterization” on page 113 Driver Characterization.anchor
Code Block |
---|
...
HTML Table | |
---|---|
summary | |
class | Code_Listing |
Table Row (tr) | |
Table Cell (td) | |
Anchor | 1047384 | 1047384
|
...
| ||||||||||||||||||||||||||||||||||||||
CPU_BOOLEAN App_FS_AddIDE (void) Anchor | | 1047385 | 1047385 | {|||||||||||||||||||||||||||||||||||
Anchor | 1047386 | 1047386 | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Anchor | 1047387 | 1047387 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047388 | 1047388 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047389 | 1047389 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047390 | 1047390 | if||||||||||||||||||||||||||||||||||||
Anchor | 1047391 | 1047391 | return||||||||||||||||||||||||||||||||||||
Anchor | 1047392 | 1047392 | }||||||||||||||||||||||||||||||||||||
Anchor | 1047393 | 1047393 | /* (2) */||||||||||||||||||||||||||||||||||||
Anchor | 1047394 | 1047394 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047395 | 1047395 | (void *) 0, /* (b) */||||||||||||||||||||||||||||||||||||
Anchor | 1047396 | 1047396 | (FS_ERR *)&err);||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Cell (td) | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
Anchor | 1047401 | 1047401 | switch (err) {||||||||||||||||||||||||||||||||||||
Anchor | 1047402 | 1047402 | case FS_ERR_NONE:||||||||||||||||||||||||||||||||||||
Anchor | 1047403 | 1047403 | break;||||||||||||||||||||||||||||||||||||
Anchor | 1047404 | 1047404 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047405 | 1047405 | case FS_ERR_DEV:||||||||||||||||||||||||||||||||||||
Anchor | 1047406 | 1047406 | case||||||||||||||||||||||||||||||||||||
Anchor | 1047407 | 1047407 | case||||||||||||||||||||||||||||||||||||
Anchor | 1047408 | 1047408 | case||||||||||||||||||||||||||||||||||||
Anchor | 1047409 | 1047409 | return||||||||||||||||||||||||||||||||||||
Anchor | 1047410 | 1047410 | default:||||||||||||||||||||||||||||||||||||
Anchor | 1047411 | 1047411 | return||||||||||||||||||||||||||||||||||||
Anchor | 1047412 | 1047412 | }||||||||||||||||||||||||||||||||||||
Anchor | 1047413 | 1047413 | /* (3) */||||||||||||||||||||||||||||||||||||
Anchor | 1047414 | 1047414 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047415 | 1047415 | (CPU_CHAR *)“ide:0:”, /* (b) */||||||||||||||||||||||||||||||||||||
Anchor | 1047416 | 1047416 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047417 | 1047417 | (FS_ERR||||||||||||||||||||||||||||||||||||
Anchor | 1047418 | 1047418 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047419 | 1047419 | switch||||||||||||||||||||||||||||||||||||
Anchor | 1047420 | 1047420 | case||||||||||||||||||||||||||||||||||||
Anchor | 1047421 | 1047421 | break;||||||||||||||||||||||||||||||||||||
Anchor | 1047422 | 1047422 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047423 | 1047423 | case||||||||||||||||||||||||||||||||||||
Anchor | 1047424 | 1047424 | case||||||||||||||||||||||||||||||||||||
Anchor | 1047425 | 1047425 | case||||||||||||||||||||||||||||||||||||
Anchor | 1047426 | 1047426 | case||||||||||||||||||||||||||||||||||||
Anchor | 1047427 | 1047427 | case||||||||||||||||||||||||||||||||||||
Anchor | 1047428 | 1047428 | return||||||||||||||||||||||||||||||||||||
Anchor | 1047429 | 1047429 | default:||||||||||||||||||||||||||||||||||||
Anchor | 1047430 | 1047430 | return||||||||||||||||||||||||||||||||||||
Anchor | 1047431 | 1047431 | }||||||||||||||||||||||||||||||||||||
Anchor | 1047432 | 1047432 | ||||||||||||||||||||||||||||||||||||
Anchor | 1047433 | 1047433 | return||||||||||||||||||||||||||||||||||||
Anchor | 1047434 | 1047434 | ||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) | ||||||||||||||||||||||||||||||||||||||
Table Row (tr) |
...
...
Panel |
---|
(1) Register the IDE/CF device driver. |
...
(2) |
...
Since IDE/CF are often removable media, it is possible for the device to not be present when |
...
Using Devices for more information). |
...
(3) |
...
(4) High level format can be applied to the volume if |
...
If the IDE initialization succeeds, the file system will produce the trace output as shown in Figure 18-1 in Figure - IDE detection trace output (if a sufficiently high trace level is configured). See section E-9 “Trace Configuration” on page 507 See Trace Configuration about configuring the trace level.anchor
Panel |
---|
...
|
...
|
...
| ||