Hi, so i am trying to compile a project which contain Bulk USB example, I am currently compiling it in Keil uvision 4. I got no include errors and still I got these errors:
Build Project 'PTX' - Target 'PTX'
compiling usb_dev_bulk.c...
compiling config.c...
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\src\usb_bulk_structs.h(42): error: #20: identifier "tUSBBuffer" is undefined
extern const tUSBBuffer g_sTxBuffer;
KB: Unexpected type: 0
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\error type>(43): error: #20: identifier "tUSBBuffer" is undefined
extern const tUSBBuffer g_sRxBuffer;
KB: Unexpected type: 0
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\error type>(44): error: #20: identifier "tUSBDBulkDevice" is undefined
extern const tUSBDBulkDevice g_sBulkDevice;
KB: Unexpected type: 0
<error type>src\config.c: 0 warnings, 3 errors
compiling main.c...
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\src\usb_bulk_structs.h(42): error: #20: identifier "tUSBBuffer" is undefined
extern const tUSBBuffer g_sTxBuffer;
KB: Unexpected type: 0
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\error type>(43): error: #20: identifier "tUSBBuffer" is undefined
extern const tUSBBuffer g_sRxBuffer;
KB: Unexpected type: 0
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\error type>(44): error: #20: identifier "tUSBDBulkDevice" is undefined
extern const tUSBDBulkDevice g_sBulkDevice;
KB: Unexpected type: 0
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\error type>(110): warning: #177-D: variable "TX" was declared but never referenced
USBbuffer TX;
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\src\main.c(112): warning: #177-D: variable "CHAR" was declared but never referenced
unsigned char CHAR = 0x41;
src\main.c: 2 warnings, 3 errors
compiling usb_bulk_structs.c...
compiling nRF.c...
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\src\usb_bulk_structs.h(42): error: #20: identifier "tUSBBuffer" is undefined
extern const tUSBBuffer g_sTxBuffer;
KB: Unexpected type: 0
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\error type>(43): error: #20: identifier "tUSBBuffer" is undefined
extern const tUSBBuffer g_sRxBuffer;
KB: Unexpected type: 0
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\error type>(44): error: #20: identifier "tUSBDBulkDevice" is undefined
extern const tUSBDBulkDevice g_sBulkDevice;
KB: Unexpected type: 0
<error type>..\nRF24L01p_lib\nRF.c: 0 warnings, 3 errors
compiling nRF_config.c...
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\src\usb_bulk_structs.h(42): error: #20: identifier "tUSBBuffer" is undefined
extern const tUSBBuffer g_sTxBuffer;
KB: Unexpected type: 0
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\error type>(43): error: #20: identifier "tUSBBuffer" is undefined
extern const tUSBBuffer g_sRxBuffer;
KB: Unexpected type: 0
C:\Users\Mathieu\Documents\Stage\Code_base_station\CodeBaseStation\PTX\error type>(44): error: #20: identifier "tUSBDBulkDevice" is undefined
extern const tUSBDBulkDevice g_sBulkDevice;
KB: Unexpected type: 0
<error type>..\nRF24L01p_lib\nRF_config.c: 0 warnings, 3 errors
".\PTX.axf" - 12 Error(s), 2 Warning(s).
Target not created
I have enable the C99 compiling option, but why teh compielr doesnt recognize tUSBBuffer and tUSBDBulkDevice in usb_bulk_structs.h
