source: network-demos/tftpTest/init.c @ 7ba2ac5

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 7ba2ac5 was 7ba2ac5, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 21, 1998 at 1:26:06 PM

Added CVS Id Strings which were missing

  • Property mode set to 100644
File size: 1.8 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#include <rtems/tftp.h>
20
21#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
22#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
23#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
24
25#define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
26#define CONFIGURE_MAXIMUM_SEMAPHORES    20
27#define CONFIGURE_MAXIMUM_TASKS         20
28
29#define CONFIGURE_MICROSECONDS_PER_TICK 10486
30
31#define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
32#define CONFIGURE_INIT_TASK_PRIORITY    100
33#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
34                                           RTEMS_NO_TIMESLICE | \
35                                           RTEMS_NO_ASR | \
36                                           RTEMS_INTERRUPT_LEVEL(0))
37
38#define CONFIGURE_INIT
39rtems_task Init (rtems_task_argument argument);
40
41#define CONFIGURE_HAS_OWN_DEVICE_DRIVER_TABLE
42rtems_driver_address_table Device_drivers[] = {
43  CONSOLE_DRIVER_TABLE_ENTRY,
44  CLOCK_DRIVER_TABLE_ENTRY,
45  TFTP_DRIVER_TABLE_ENTRY,
46};
47
48#include <confdefs.h>
49
50#include <stdio.h>
51#include <rtems/rtems_bsdnet.h>
52#include "../networkconfig.h"
53
54/*
55 * RTEMS Startup Task
56 */
57rtems_task
58Init (rtems_task_argument ignored)
59{
60        const char *hostname, *filename;
61
62        rtems_bsdnet_initialize_network ();
63
64#if (defined (RTEMS_USE_BOOTP))
65        hostname = NULL;
66        filename = rtems_bsdnet_bootp_boot_file_name;
67#else
68        hostname = RTEMS_TFTP_TEST_HOST_NAME;
69        filename = RTEMS_TFTP_TEST_FILE_NAME;
70#endif
71
72        testTFTP (hostname, filename);
73        exit (0);
74}
Note: See TracBrowser for help on using the repository browser.