source: network-demos/select/init.c @ 0417fe3

4.11network-demos-4-10-branch
Last change on this file since 0417fe3 was 0417fe3, checked in by Joel Sherrill <joel.sherrill@…>, on 05/12/09 at 19:59:54

2009-05-12 Joel Sherrill <joel.sherrill@…>

  • init.c: Now build with libbsdport.
  • Property mode set to 100644
File size: 1.5 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 *  $Id$
16 */
17
18#include <bsp.h>
19
20#include <stdio.h>
21#include <stdlib.h>
22#include <rtems/rtems_bsdnet.h>
23#include "../networkconfig.h"
24
25/*
26 * RTEMS Startup Task
27 */
28rtems_task
29Init (rtems_task_argument ignored)
30{
31        int doSocket(void);
32
33        rtems_bsdnet_initialize_network ();
34        doSocket ();
35        exit (0);
36}
37
38#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
39#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
40#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
41#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
42#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
43
44#define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
45#define CONFIGURE_MAXIMUM_SEMAPHORES    20
46#define CONFIGURE_MAXIMUM_TASKS         20
47
48#define CONFIGURE_MICROSECONDS_PER_TICK 10000
49
50#define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
51#define CONFIGURE_INIT_TASK_PRIORITY    120
52#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
53                                           RTEMS_NO_TIMESLICE | \
54                                           RTEMS_NO_ASR | \
55                                           RTEMS_INTERRUPT_LEVEL(0))
56
57#define CONFIGURE_INIT
58rtems_task Init (rtems_task_argument argument);
59
60#include <rtems/confdefs.h>
61
Note: See TracBrowser for help on using the repository browser.