Files
rtems-libbsd/testsuite/usb01
Sebastian Huber e599318e91 Update files to match FreeBSD layout
Add compatibility with Newlib header files.  Some FreeBSD header files
are mapped by the translation script:

     o rtems/bsd/sys/_types.h
     o rtems/bsd/sys/errno.h
     o rtems/bsd/sys/lock.h
     o rtems/bsd/sys/param.h
     o rtems/bsd/sys/resource.h
     o rtems/bsd/sys/time.h
     o rtems/bsd/sys/timespec.h
     o rtems/bsd/sys/types.h
     o rtems/bsd/sys/unistd.h

It is now possible to include <sys/socket.h> directly for example.

Generate one Makefile which builds everything including tests.
2013-10-10 09:08:23 +02:00
..
2012-03-20 09:18:33 -05:00
2013-10-10 09:08:23 +02:00
2012-03-20 09:18:33 -05:00

> + Sebastian.. any test code that would initialize all this?
> Any advice and/or sample code on this is really valued
> as this is the next step.
>
> Basically anything that would help me get this initialized
> and have some confidence before I make it available.

Attached are two source files of a simple USB demo.

https://www.rtems.org/bugzilla/show_bug.cgi?id=1601

The FreeBSD initialization is performed in mi_startup() (file
init_main.c).  Use the demo and single step through this with the
debugger.  A lot is done with linker sets, e.g. the driver initialization.

Look at c/src/lib/libbsp/arm/shared/startup/linkcmds.base and search for
"_bsd".

See (with links in "SEE ALSO"):

http://www.freebsd.org/cgi/man.cgi?query=SYSINIT&sektion=9&apropos=0&manpath=FreeBSD+9-current