source: rtems/testsuites/samples/fileio/system.h @ 8f1b6cde

4.115
Last change on this file since 8f1b6cde was b5b1f44, checked in by Sebastian Huber <sebastian.huber@…>, on 11/12/12 at 12:54:12

samples/fileio: Add DOSFS and RFS on demand

  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
6 *  COPYRIGHT (c) 1989-2009.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 */
13
14#include <rtems.h>
15#include "tmacros.h"
16
17/* functions */
18
19rtems_task Init(
20  rtems_task_argument argument
21);
22
23/* global variables */
24
25
26/* configuration information */
27
28#include <bsp.h> /* for device driver prototypes */
29
30#define FILEIO_BUILD 1
31#if BSP_SMALL_MEMORY
32#undef FILEIO_BUILD
33#endif
34
35#if defined(RTEMS_BSP_HAS_IDE_DRIVER) && !BSP_SMALL_MEMORY
36#include <libchip/ata.h> /* for ata driver prototype */
37#include <libchip/ide_ctrl.h> /* for general ide driver prototype */
38#endif
39
40#define CONFIGURE_MAXIMUM_DRIVERS           4
41#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
42#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
43#ifdef RTEMS_BSP_HAS_IDE_DRIVER
44#define CONFIGURE_APPLICATION_NEEDS_IDE_DRIVER
45#define CONFIGURE_APPLICATION_NEEDS_ATA_DRIVER
46#define CONFIGURE_ATA_DRIVER_TASK_PRIORITY  14
47#endif
48
49#if FILEIO_BUILD
50  #define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
51  #define CONFIGURE_BDBUF_MAX_READ_AHEAD_BLOCKS  2
52  #define CONFIGURE_BDBUF_MAX_WRITE_BLOCKS       8
53  #define CONFIGURE_SWAPOUT_TASK_PRIORITY        15
54  #define CONFIGURE_FILESYSTEM_RFS
55  #define CONFIGURE_FILESYSTEM_DOSFS
56#endif
57
58#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
59
60/*
61 * XXX: these values are higher than needed...
62 */
63#define CONFIGURE_MAXIMUM_TASKS             20
64#define CONFIGURE_MAXIMUM_SEMAPHORES        20
65#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES    20
66#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
67#define CONFIGURE_STACK_CHECKER_ENABLED
68#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
69
70#define CONFIGURE_EXTRA_TASK_STACKS         (6 * RTEMS_MINIMUM_STACK_SIZE)
71
72#define CONFIGURE_MALLOC_STATISTICS
73
74#define CONFIGURE_UNIFIED_WORK_AREAS
75#include <rtems/confdefs.h>
76
77/* end of include file */
Note: See TracBrowser for help on using the repository browser.