4.11network-demos-4-10-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branch
Last change
on this file since ba33011 was
ba33011,
checked in by Joel Sherrill <joel.sherrill@…>, on 06/21/07 at 18:26:30
|
2007-06-21 Joel Sherrill <joel.sherrill@…>
- init.c: More warnings removed.
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Rev | Line | |
---|
[c87143a] | 1 | /* |
---|
| 2 | * RTEMS configuration/initialization |
---|
| 3 | * |
---|
| 4 | * This program may be distributed and used for any purpose. |
---|
| 5 | * I ask only that you: |
---|
[0c9330e] | 6 | * 1. Leave this author information intact. |
---|
| 7 | * 2. Document any changes you make. |
---|
[c87143a] | 8 | * |
---|
| 9 | * W. Eric Norum |
---|
| 10 | * Saskatchewan Accelerator Laboratory |
---|
| 11 | * University of Saskatchewan |
---|
| 12 | * Saskatoon, Saskatchewan, CANADA |
---|
| 13 | * eric@skatter.usask.ca |
---|
[7ba2ac5] | 14 | * |
---|
| 15 | * $Id$ |
---|
[c87143a] | 16 | */ |
---|
| 17 | |
---|
| 18 | #include <bsp.h> |
---|
| 19 | |
---|
[5c663c0] | 20 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
| 21 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
[c87143a] | 22 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
[6e16c55] | 23 | #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20 |
---|
| 24 | #define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM |
---|
[c87143a] | 25 | |
---|
[0c9330e] | 26 | #define CONFIGURE_EXECUTIVE_RAM_SIZE (512*1024) |
---|
| 27 | #define CONFIGURE_MAXIMUM_SEMAPHORES 20 |
---|
| 28 | #define CONFIGURE_MAXIMUM_TASKS 20 |
---|
| 29 | |
---|
[7054195] | 30 | #define CONFIGURE_MICROSECONDS_PER_TICK 10000 |
---|
[0c9330e] | 31 | |
---|
| 32 | #define CONFIGURE_INIT_TASK_STACK_SIZE (10*1024) |
---|
| 33 | #define CONFIGURE_INIT_TASK_PRIORITY 100 |
---|
| 34 | #define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \ |
---|
| 35 | RTEMS_NO_TIMESLICE | \ |
---|
| 36 | RTEMS_NO_ASR | \ |
---|
| 37 | RTEMS_INTERRUPT_LEVEL(0)) |
---|
[c87143a] | 38 | |
---|
| 39 | #define CONFIGURE_INIT |
---|
| 40 | rtems_task Init (rtems_task_argument argument); |
---|
| 41 | |
---|
[faa85e6] | 42 | #include <rtems/confdefs.h> |
---|
[c87143a] | 43 | |
---|
| 44 | #include <stdio.h> |
---|
[ba33011] | 45 | #include <stdlib.h> |
---|
[0c9330e] | 46 | #include <rtems/rtems_bsdnet.h> |
---|
| 47 | #include "../networkconfig.h" |
---|
[af0dafa] | 48 | |
---|
[ba33011] | 49 | void test_network (void); |
---|
| 50 | |
---|
[c87143a] | 51 | /* |
---|
| 52 | * RTEMS Startup Task |
---|
| 53 | */ |
---|
| 54 | rtems_task |
---|
| 55 | Init (rtems_task_argument ignored) |
---|
| 56 | { |
---|
[0c9330e] | 57 | rtems_bsdnet_initialize_network (); |
---|
[c87143a] | 58 | test_network (); |
---|
| 59 | exit (0); |
---|
| 60 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.