什么是 V-USB?
V-USB是一个针对Atmel的AVAR为控制器的USB驱动固件。更多的信息请访问http://www.obdev.at/vusb/。
这个仓库有什么?
这个仓库包含了驱动的源代码(在usbdrv子目录),例子代码和当你使用V-USB设计一个设备需要的其它东西。
当你迁出这个仓库后,在得到的目录和在http://www.obdev.at/vusb/下载的是不等的。
When you check out this repository, the resulting directory is not equivalent
to the source code package which can be downloaded at
http://www.obdev.at/vusb/. Some files in the source code package are generated
by scripts when the package is created. On the other hand, the scripts which
generate source files and the package are not contained in the package itself.
如果希望了解多的关于文件和目录的信息,请查看顶级目录中的Readme.txt文件。
如何增加驱动到我的项目?
复制usbdrv子目录到我的项目固件源代码目录。编辑固件的Makefile,并且增加下面的文件到你的binary:
usbdrv/usbdrv.o
usbdrv/usbdrvasm.o
usbdrv/oddebug.o
然后,确定你的Makefile包含 *.S 和 *.c 到 object files转换规则。看examples子目录中的Makefiles。