// Add structured and bitfield defs for USB endpoints and buffer descriptors
#include <usbregs18.h>// Add structured and bitfield defs for USB endpoints and buffer descriptors
//#include <usbregs18.h>The header file, provided with compiler has an issue.
I've commented out the following two lines in "usbregs18.h" file and now the project builds without problems:
Code:
--------------------------------------------------------------------------------
// Define 16 USB Endpoint controllers//volatile _USB_ENDPOINT_BITS _USB_ENDPOINT[15] @ ((unsigned)&UEP0);// Define 64 buffer descriptors//volatile _BUFFER_DESCRIPTOR_STRUCT _USB_DESCRIPTOR[64] @ 0x400;
Hola Richard, por lo que se entiende eso es lo que hace la directiva ( lo que comentas vos ) es una forma un poco mas elegante que tocar el header, pero para mi gusto no me termina de convencer. Ojo no es contra uds, es contra HiTech.
Saludos !