source: network-demos/http/init.c @ 3175525

4.11network-demos-4-10-branchnetwork-demos-4-6-branchnetwork-demos-4-7-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branch
Last change on this file since 3175525 was 7054195, checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/99 at 13:23:56

Changed CONFIGURATION_MICROSECONDS_PER_TICK definition to a more reasonable
value.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*  Init
2 *
3 *  This routine is the initialization task for this test program.
4 *
5 *  Don't forget to change the IP addresses
6 */
7
8#define TEST_INIT
9
10#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
11#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
12#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
13
14#define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
15#define CONFIGURE_MAXIMUM_SEMAPHORES    20
16#define CONFIGURE_MAXIMUM_TASKS         20
17
18#define CONFIGURE_MICROSECONDS_PER_TICK 10000
19
20#define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
21#define CONFIGURE_INIT_TASK_PRIORITY    120
22#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
23                                           RTEMS_NO_TIMESLICE | \
24                                           RTEMS_NO_ASR | \
25                                           RTEMS_INTERRUPT_LEVEL(0))
26
27#define CONFIGURE_INIT
28
29#include "system.h"
30
31#include <errno.h>
32#include <time.h>
33
34#include <confdefs.h>
35#include <stdio.h>
36#include <rtems/rtems_bsdnet.h>
37#include <ftpd.h>
38
39     
40#include <rtems/error.h>
41#include <rpc/rpc.h>
42#include <netinet/in.h>
43#include <time.h>
44
45#include <arpa/inet.h>
46#include <sys/socket.h>
47#include "../networkconfig.h"
48
49#include <rtems_webserver.h>
50
51#define ARGUMENT 0
52
53extern int _binary_tarfile_start;
54extern int _binary_tarfile_size;
55
56struct rtems_ftpd_configuration rtems_ftpd_configuration = {
57   10,                     /* FTPD task priority            */
58   1024,                   /* Maximum buffersize for hooks  */
59   80,                     /* Well-known port     */
60   NULL                    /* List of hooks       */
61};
62rtems_task Init(
63  rtems_task_argument argument
64)
65{
66  rtems_status_code status;
67
68  printf("\n\n*** HTTP TEST ***\n\r" );
69
70  /* init_paging(); */
71
72  rtems_bsdnet_initialize_network ();
73
74  rtems_initialize_ftpd();
75
76  status = Untar_FromMemory((unsigned char *)(&_binary_tarfile_start),
77                            &_binary_tarfile_size);
78   
79  rtems_initialize_webserver();
80
81  status = rtems_task_delete( RTEMS_SELF );
82}
83
84
85
86
Note: See TracBrowser for help on using the repository browser.