View previous topic :: View next topic |
Author |
Message |
Harmi Guest
|
Error with new USB Librarys |
Posted: Mon Apr 24, 2006 8:55 am |
|
|
Hi,
today i�ve got the new USB Librarys from CCS (i�ve got them very quick, thanks for that), but i have some trouble :
For a first test i took the ex_usb_serial2.c from the examples and wanted to compile it with the new librarys, but i ever get an error-message in the usb_cdc.h (the new one). In Line 336 i get the error message "Undefined identifier usb_rx_packet_size make16". The line looks like this :
usb_cdc_get_buffer_status.len=usb_rx_packet_size(USB_CDC_DATA_OUT_ENDPOINT);
I can�t find a routine wich is called "usb_rx_packet_size".
I�m using the PCWH V3.232
Can anybody help?
I want to start a project where i have to do some out-/inputs (digital and analog) via usb and later with MMC-Memory and it crashes at the first step :-((
ciao
Harmi |
|
|
Harmi Guest
|
|
Posted: Mon Apr 24, 2006 2:42 pm |
|
|
Nobody who can help?
The older version of the files i can compile without any error! There must be something with the new ones.
ciao
Harmi |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Apr 24, 2006 3:01 pm |
|
|
Quote: | I'm using the PCWH V3.232 |
You don't have the latest version of the CCS USB drivers.
Quote: | I can�t find a routine wich is called "usb_rx_packet_size". |
Here's the function declaration from the latest version.
Code: | #define BD0CNT_LOC 0x1A1
#define EP_BDxCNT_O(x) *(BD0CNT_LOC + x*8)
int16 usb_rx_packet_size(int8 endpoint) {
return(EP_BDxCNT_O(endpoint));
} |
If this doesn't help, then email CCS support and ask them to
email you the latest version of the drivers and supporting files.
Give them your customer number. Maybe they will send them to you.
If not, you'll have to upgrade the compiler. |
|
|
Guest
|
|
Posted: Mon Apr 24, 2006 11:54 pm |
|
|
OK,
thanks for that, it worked.
I have copied the declaration in my file and it works (i can compile the files without errors). Now i have to wait for my PIC (it�s ordered) to check the hardware.
Many thanks.
ciao
Harmi |
|
|
|