PDA

View Full Version : USB objective file library



picmilan
- 26th June 2016, 04:17
Hello again,

I keep asking questions but hopefully I get it this time.

So I am trying to turn hid_desc.bas to a lib or .o file and then use that as a usb library for every project instead of including all .asm files.

So I edited assembly code in hid_desc.bas and used global directives for USBDeviceInit,USBDeviceTask,and PutUSB in usb_mem.asm.I then used MPASMWIN tool to generate hid_desc.O from hid_desc.asm and then generate a .lib file using MPLib. No I want use the lgenerated file in my main Basic code but I don't know how to get it working.

I am using USBInit,USBSERVICE,and USBOut for send out data.But I don't know how to declare them as external directive.

Would appreciate any help.

picmilan
- 26th June 2016, 04:55
So I edited assembly code in hid_desc.bas and used global directives for USBDeviceInit,USBDeviceTask,and PutUSB in usb_mem.asm.I then used MPASMWIN tool to generate hid_desc.O from hid_desc.asm and then generate a .lib file using MPLib. Now I want use the generated file in my main Basic code but I don't know how to get it working.