RTEMS Logo

RTEMS 4.6.4 On-Line Library


Write the Driver Initialization Function.

PREV UP NEXT Bookshelf RTEMS Network Supplement

2.7: Write the 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 multiple versions of the receive and transmit tasks are not accidentally started.


PREV UP NEXT Bookshelf RTEMS Network Supplement

Copyright © 1988-2004 OAR Corporation