There is a constant which defines the board frequency?

Hi,

I would know if there is a constant which define the frequency?

Like LED_BUILTIN gives the pin number of the builtin LED.

Can I use a CLOCK_SPEED_BUILTIN?
16M = 16777216

Or a CLOCK_PRECISION_BUILTIN?
16MHz = -24 (2**-24)

The perfect NTP request requires the clock speed.

I'm looking for in Java/hardware/arduino/avr/variants without success

It's F_CPU

It's actually 16mHz not 16MHz. F_CPU = 16000000.

DKWatson:
It's actually 16mHz not 16MHz.

Hmmm.

Maybe, maybe not. Convention dictates that kilo with a small k indicates a multiplier of 1,000. With a large K, it's 2 x 10^10. I wonder if it is the same for mega?

DKWatson:
It's actually 16mHz not 16MHz. F_CPU = 16000000.

It most certainly is NOT 16 milliHertz.

Good point. Is there such a thing?

AWOL:
It most certainly is NOT 16 milliHertz.

:grinning:

DKWatson:
Good point. Is there such a thing?

Absolutely. Seismologists probably use mHz extensively.
I used to work on devices where the specified range of frequencies ranged from mHz to GHz.
You may have one in your pocket right now.

I was thinking about the frequency that the Toronto Maple Leafs win the Stanley Cup. Last time was 1967.

nHz even pHz.