EP_PKT_SIZE parameter mystery birth

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TiMi_264191
Level 4
Level 4
25 sign-ins First comment on blog 10 sign-ins

I am hacking code from BMM_USB_KIT-001. There does not appear to be a definition or #define for EP_PKT_SIZE anywhere in the main.c file or the Key.c file and yet that project builds just fine. When I cut and paste that code into my project, I get an error during the build that says it (EP_PKT_SIZE) is undefined.

   

When I define it as a uint16 (per the datasheet for the USBFS_LoadInEP(); API)(and assign 8 as the value, I can get most of the project working (actually, everything I have looked at so far)...

   

BUT, Would someone tell me why I had to define it?OR, tell me where I should have looked in the BMM code?

   

Thanks a TON!

   

Tim Miner (aka TDGM)

Tim Miner
0 Likes
2 Replies
TiMi_264191
Level 4
Level 4
25 sign-ins First comment on blog 10 sign-ins

Sorry, everyone. I found it in Key.h which was #included in Key.c.

   

I guess now I need to know how  (and when) to create additional .c files and .h files.

   

thanks

   

Tim Miner

Tim Miner
0 Likes
Anonymous
Not applicable

0 Likes