source: network-demos/netdemo/init.c @ 0c9330e

4.11netdemos-4-5-branchnetwork-demos-4-10-branchnetwork-demos-4-6-branchnetwork-demos-4-7-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branchrtems-4-5-branch
Last change on this file since 0c9330e was 0c9330e, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 21, 1998 at 1:22:35 PM

KA9Q -> FreeBSD changes from Eric Norum

  • Property mode set to 100644
File size: 1.3 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#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
19#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
20#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
21
22#define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
23#define CONFIGURE_MAXIMUM_SEMAPHORES    20
24#define CONFIGURE_MAXIMUM_TASKS         20
25
26#define CONFIGURE_MICROSECONDS_PER_TICK 10486
27
28#define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
29#define CONFIGURE_INIT_TASK_PRIORITY    120
30#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
31                                           RTEMS_NO_TIMESLICE | \
32                                           RTEMS_NO_ASR | \
33                                           RTEMS_INTERRUPT_LEVEL(0))
34
35#define CONFIGURE_INIT
36rtems_task Init (rtems_task_argument argument);
37
38#include <confdefs.h>
39
40#include <stdio.h>
41#include <rtems/rtems_bsdnet.h>
42#include "../networkconfig.h"
43
44/*
45 * RTEMS Startup Task
46 */
47rtems_task
48Init (rtems_task_argument ignored)
49{
50        int doSocket(void);
51
52        rtems_bsdnet_initialize_network ();
53        doSocket ();
54        exit (0);
55}
Note: See TracBrowser for help on using the repository browser.