Other Parts Discussed in Thread: C2000WARE
I have a large existing project which was originally started based on the bitfield epwm_deadband example. I now want to add USB logging functionality, for which the usb_ex4_dev_bulk example provides a useful starting point. The problem is that I am not sure what the procedure is to combine a bitfield example project with a driverlib example project, if this is even possible.
I started by duplicating the usb_ex4_dev_bulk example project, then I copied in all the files present in the epwm_deadband example project. Then I adjusted the build settings to include the headers referenced by both projects. The problem is I now get two errors when building the project. They are both "expected an identifier" erros in adc.h in the driverlib:
"C:/ti/C2000Ware_3_03_00_00_Software/driverlib/f2837xd/driverlib/adc.h", line 176: error #41: expected an identifier
I suspect this is because the driverlib headers cannot be used at the same time as the bitfield headers? Do I have to commit fully to driverlib to take advantage of the USB2.0 peripheral and rewrite my existing project in driverlib? Or is there a procedure to mix driverlib and bitfield projects?