Changeset 497f13d in network-demos


Ignore:
Timestamp:
Jul 30, 1998, 10:35:45 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master, netdemos-4-5-branch, network-demos-4-10-branch, network-demos-4-6-branch, network-demos-4-7-branch, network-demos-4-8-branch, network-demos-4-9-branch, rtems-4-5-branch
Children:
2ddb68f
Parents:
481950e
Message:

Switched to using "../user.cfg"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • netdemo/init.c

    r481950e r497f13d  
    1616 */
    1717
    18 /*#define TRACE_NETWORK_DRIVER 1 */
     18/*
     19 *  Include user provided information
     20 */
     21
     22#include "../usercfg.h"
     23
    1924#include <bsp.h>
    2025
     
    4651#include <rtems_ka9q.h>
    4752
    48 /*
    49  * Board ethernet address
    50  * REPLACE THIS WITH YOUR OWN VALUE BEFORE TRYING TO USE THIS PROGRAM!
    51  */
    52 #define MY_ETHERNET_ADDRESS "37:1D:3E:21:2B:A5"
    53 
    54 /*
    55  * Some board support packages let the network driver
    56  * get the Ethernet address from the bootstrap PROM.
    57  */
    58 #define MY_ETHERNET_ADDRESS "prom"
    59 
    60 /*
    61  * Use BOOTP to get information about me?
    62  */
    63 #define USE_BOOTP       1
    6453
    6554#if (defined (USE_BOOTP))
    6655#include <bootp.h>
    67 #else
    68 /*
    69  * Information about me if BOOTP isn't used
    70  * CHOOSE A VALUE APPROPRIATE TO YOUR NETWORK!
    71  */
    72 #define MY_IP_ADDRESS   "128.233.14.68"
    7356#endif
    7457
     
    9174Init (rtems_task_argument ignored)
    9275{
    93         printf( "\n\n*** HELLO WORLD TEST ***\n" );
    94         printf( "Hello World\n" );
    95         printf( "*** END OF HELLO WORLD TEST ***\n" );
     76        printf( "\n\n*** ETHERNET DEMO TEST ***\n" );
    9677
    9778        /*
    9879         * Start KA9Q
    9980         */
     81        puts( "Starting KA9Q" );
    10082        rtems_ka9q_start (50);
    10183
     
    10385         * Hook up drivers
    10486         */
     87        puts( "Attaching to the network" );
    10588#if (defined (USE_BOOTP))
    10689        if (rtems_ka9q_execute_command ("attach rtems broadcast y"
     
    117100         * Turn on debugging
    118101         */
     102        puts( "Enabling debug mode of KA9Q" );
    119103        if (rtems_ka9q_execute_command ("trace rtems input <stdout>")
    120104         || rtems_ka9q_execute_command ("trace rtems output <stdout>")
Note: See TracChangeset for help on using the changeset viewer.