In here you will find example ROMs that demonstrate how to use the USB and/or debug library, written for libultra and libdragon.
Please note that usb.c and usb.h are part of libdragon, therefore are not included in the sample projects. If you are using a really old version of libdragon for some reason, then these will need to be included and added to the makefiles.