Changeset 31ab470 in rtems-libbsd


Ignore:
Timestamp:
Jan 22, 2014, 1:26:31 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
f702955
Parents:
defe035
git-author:
Sebastian Huber <sebastian.huber@…> (01/22/14 13:26:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/30/14 15:23:03)
Message:

Add DEFAULT_NETWORK_SHELL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuite/include/rtems/bsd/test/default-network-init.h

    rdefe035 r31ab470  
    4848#endif
    4949
     50#ifdef DEFAULT_NETWORK_SHELL
     51#include <rtems/console.h>
     52#include <rtems/shell.h>
     53#endif
     54
    5055static void
    5156default_network_set_self_prio(rtems_task_priority prio)
     
    166171        default_network_set_self_prio(RTEMS_MAXIMUM_PRIORITY - 1);
    167172
     173#ifdef DEFAULT_NETWORK_SHELL
     174        sc = rtems_shell_init(
     175                "SHLL",
     176                32 * 1024,
     177                1,
     178                CONSOLE_DEVICE_NAME,
     179                false,
     180                false,
     181                NULL
     182        );
     183        assert(sc == RTEMS_SUCCESSFUL);
     184#endif
     185
    168186        rtems_bsd_initialize();
    169187
     
    218236
    219237#include <rtems/confdefs.h>
     238
     239#ifdef DEFAULT_NETWORK_SHELL
     240
     241#define CONFIGURE_SHELL_COMMANDS_INIT
     242
     243#include <bsp/irq-info.h>
     244
     245#include <rtems/netcmds-config.h>
     246
     247#define CONFIGURE_SHELL_USER_COMMANDS \
     248  &bsp_interrupt_shell_command, \
     249  &rtems_shell_PING_Command, \
     250  &rtems_shell_ROUTE_Command, \
     251  &rtems_shell_NETSTAT_Command, \
     252  &rtems_shell_IFCONFIG_Command
     253
     254#define CONFIGURE_SHELL_COMMAND_CPUUSE
     255#define CONFIGURE_SHELL_COMMAND_PERIODUSE
     256#define CONFIGURE_SHELL_COMMAND_STACKUSE
     257
     258#define CONFIGURE_SHELL_COMMAND_CP
     259#define CONFIGURE_SHELL_COMMAND_PWD
     260#define CONFIGURE_SHELL_COMMAND_LS
     261#define CONFIGURE_SHELL_COMMAND_LN
     262#define CONFIGURE_SHELL_COMMAND_LSOF
     263#define CONFIGURE_SHELL_COMMAND_CHDIR
     264#define CONFIGURE_SHELL_COMMAND_CD
     265#define CONFIGURE_SHELL_COMMAND_MKDIR
     266#define CONFIGURE_SHELL_COMMAND_RMDIR
     267#define CONFIGURE_SHELL_COMMAND_CAT
     268#define CONFIGURE_SHELL_COMMAND_MV
     269#define CONFIGURE_SHELL_COMMAND_RM
     270#define CONFIGURE_SHELL_COMMAND_MALLOC_INFO
     271
     272#include <rtems/shellconfig.h>
     273
     274#endif /* DEFAULT_NETWORK_SHELL */
Note: See TracChangeset for help on using the changeset viewer.