Changeset 7c011f7 in rtems-libbsd


Ignore:
Timestamp:
Mar 31, 2015, 7:42:01 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11
Children:
4d235ad
Parents:
662f7ec
git-author:
Sebastian Huber <sebastian.huber@…> (03/31/15 07:42:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/11/15 09:52:52)
Message:

media01: Add network and SMP support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/media01/test_main.c

    r662f7ec r7c011f7  
    3535#include <rtems/bdbuf.h>
    3636#include <rtems/console.h>
     37#include <rtems/ftpd.h>
    3738#include <rtems/media.h>
    3839#include <rtems/shell.h>
    3940
    4041#define TEST_NAME "LIBBSD MEDIA 1"
     42
     43struct rtems_ftpd_configuration rtems_ftpd_configuration = {
     44        /* FTPD task priority */
     45        .priority = 100,
     46
     47        /* Maximum buffersize for hooks */
     48        .max_hook_filesize = 0,
     49
     50        /* Well-known port */
     51        .port = 21,
     52
     53        /* List of hooks */
     54        .hooks = NULL,
     55
     56        /* Root for FTPD or NULL for "/" */
     57        .root = NULL,
     58
     59        /* Max. connections */
     60        .tasks_count = 4,
     61
     62        /* Idle timeout in seconds  or 0 for no (infinite) timeout */
     63        .idle = 5 * 60,
     64
     65        /* Access: 0 - r/w, 1 - read-only, 2 - write-only, 3 - browse-only */
     66        .access = 0
     67};
    4168
    4269static rtems_status_code
     
    84111test_main(void)
    85112{
     113        int rv;
    86114        rtems_status_code sc;
     115
     116        rv = rtems_initialize_ftpd();
     117        assert(rv == 0);
    87118
    88119        sc = rtems_shell_init("SHLL", 16 * 1024, 1, CONSOLE_DEVICE_NAME,
     
    118149}
    119150
    120 #include <bsp/nexus-devices.h>
     151#define DEFAULT_NETWORK_DHCPCD_ENABLE
    121152
    122153#define CONFIGURE_FILESYSTEM_DOSFS
    123154
    124 #include <rtems/bsd/test/default-init.h>
     155#define CONFIGURE_SMP_APPLICATION
     156
     157#define CONFIGURE_SMP_MAXIMUM_PROCESSORS 32
     158
     159#include <rtems/bsd/test/default-network-init.h>
    125160
    126161#define CONFIGURE_SHELL_COMMANDS_INIT
     
    132167#define CONFIGURE_SHELL_USER_COMMANDS \
    133168  &bsp_interrupt_shell_command, \
    134   &rtems_shell_BSD_Command
     169  &rtems_shell_BSD_Command, \
     170  &rtems_shell_HOSTNAME_Command, \
     171  &rtems_shell_PING_Command, \
     172  &rtems_shell_ROUTE_Command, \
     173  &rtems_shell_NETSTAT_Command, \
     174  &rtems_shell_IFCONFIG_Command
    135175
    136176#define CONFIGURE_SHELL_COMMAND_CPUUSE
     
    154194
    155195#define CONFIGURE_SHELL_COMMAND_FDISK
     196#define CONFIGURE_SHELL_COMMAND_BLKSTATS
    156197#define CONFIGURE_SHELL_COMMAND_BLKSYNC
    157198#define CONFIGURE_SHELL_COMMAND_MSDOSFMT
Note: See TracChangeset for help on using the changeset viewer.