Page 1 of 1

Where is clock frequency defined?

Posted: Tue Nov 17, 2009 2:13 pm
by puffin_juice
Hi all

I am simply trying to compile the hid-data example provided with the v-usb files. I keep getting the error below but do not know where to specify this frequency. Can simply defining F_CPU remove this error if its defined in the right location or can I just remove the error message and make sure my chip runs at the right frequency?

error: "USB_CFG_CLOCK_KHZ is not one of the supported non-crc-rates!"

I would greatly appreciate any help :)

Cheers

Re: Where is clock frequency defined?

Posted: Tue Nov 17, 2009 7:34 pm
by maxi
For the example projects F_CPU is set in the makefile. Some other projects may define it in the source code, usually in usbconfig.h.

Re: Where is clock frequency defined?

Posted: Thu Nov 19, 2009 11:59 am
by puffin_juice
Thanks for your help, it worked :)