blob: 568c806e6660f90613d4d694314de82d485869ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
/*
* RTEMS configuration/initialization
*/
#include <bsp.h>
#include <rtems/error.h>
#include <rtems/rtems_bsdnet.h>
#include <stdio.h>
#include <stdlib.h>
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 20
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
#define STACK_CHECKER_ON 1
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 2
#define CONFIGURE_MAXIMUM_SEMAPHORES 20
#define CONFIGURE_MAXIMUM_TASKS 12
#define CONFIGURE_MICROSECONDS_PER_TICK 20000
#define CONFIGURE_INIT_TASK_PRIORITY 99
#define CONFIGURE_INIT_TASK_STACK_SIZE (16*1024)
#define CONFIGURE_INIT
rtems_task Init(rtems_task_argument argument);
#include <rtems/confdefs.h>
/*
* Network configuration
*/
#include "../networkconfig.h"
#ifdef SERVER
#define T(x) __TXT(x)
#define __TXT(s) #s
static char *av[] = {
"RPC client",
T(SERVER),
"Test Message",
NULL
};
#else
static char *av[] = {
"RPC server",
NULL
};
#endif
static int ac = (sizeof av / sizeof av[0]) - 1;
extern int rtems_main (int argc, char **argv);
rtems_task
Init (rtems_task_argument ignored)
{
rtems_bsdnet_initialize_network ();
rtems_bsdnet_synchronize_ntp (0, 0);
rtems_main (ac, av);
printf ("*** RPC Test Finish ***\n");
exit (0);
}
/*
* Dummy portmapper routines
*/
void pmap_set () { ; }
void pmap_unset () { ; }
|