OAR

RTEMS 4.0.0 On-Line Library


Write your driver initialization function.

PREV UP NEXT Bookshelf RTEMS Network Supplement

2.6: Write your driver initialization function.

This function should initialize the device, attach to interrupt handler, and start the driver transmit and receive tasks. The function

rtems_id
rtems_bsdnet_newproc (char *name,
		      int stacksize,
		      void(*entry)(void *),
		      void *arg);

should be used to start the driver tasks.

Note that the network stack may call the driver initialization function more than once. Make sure you don't start multiple versions of the receive and transmit tasks.


PREV UP NEXT Bookshelf RTEMS Network Supplement

Copyright © 1988-1998 OAR Corporation