source: network-demos/netdemo/init.c

Last change on this file was af6a124, checked in by Joel Sherrill <joel.sherrill@…>, on 05/15/12 at 21:23:55

network-demos - Remove CVS Ids (scripted)

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 * RTEMS configuration/initialization
3 *
4 * This program may be distributed and used for any purpose.
5 * I ask only that you:
6 *    1. Leave this author information intact.
7 *    2. Document any changes you make.
8 *
9 * W. Eric Norum
10 * Saskatchewan Accelerator Laboratory
11 * University of Saskatchewan
12 * Saskatoon, Saskatchewan, CANADA
13 * eric@skatter.usask.ca
14 */
15
16#include <bsp.h>
17
18#include <stdio.h>
19#include <stdlib.h>
20#include <rtems/rtems_bsdnet.h>
21#include "../networkconfig.h"
22
23/*
24 * RTEMS Startup Task
25 */
26rtems_task
27Init (rtems_task_argument ignored)
28{
29  int doSocket(void);
30
31  printk( "Initialize network\n" );
32  rtems_bsdnet_initialize_network ();
33  printk( "Network initialized\n" );
34  rtems_bsdnet_show_inet_routes ();
35  printk( "Initiating test\n" );
36  doSocket ();
37  exit (0);
38}
39
40#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
41#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
42#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
43#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
44#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
45
46#define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024)
47#define CONFIGURE_MAXIMUM_SEMAPHORES 20
48#define CONFIGURE_MAXIMUM_TASKS      20
49
50#define CONFIGURE_MICROSECONDS_PER_TICK 10000
51
52#define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024)
53#define CONFIGURE_INIT_TASK_PRIORITY   120
54#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
55                                           RTEMS_NO_TIMESLICE | \
56                                           RTEMS_NO_ASR | \
57                                           RTEMS_INTERRUPT_LEVEL(0))
58
59#define CONFIGURE_INIT
60rtems_task Init (rtems_task_argument argument);
61
62#include <rtems/confdefs.h>
63
Note: See TracBrowser for help on using the repository browser.