Where is clock frequency defined?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
puffin_juice
Posts: 2
Joined: Tue Nov 17, 2009 2:06 pm

Where is clock frequency defined?

Post by puffin_juice » Tue Nov 17, 2009 2:13 pm

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

maxi
Rank 3
Rank 3
Posts: 122
Joined: Fri Jul 24, 2009 6:13 pm

Re: Where is clock frequency defined?

Post by maxi » Tue Nov 17, 2009 7:34 pm

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.

puffin_juice
Posts: 2
Joined: Tue Nov 17, 2009 2:06 pm

Re: Where is clock frequency defined?

Post by puffin_juice » Thu Nov 19, 2009 11:59 am

Thanks for your help, it worked :)

Post Reply