What is this defining

Viewed 123

I found this code in the Atmel Mega 2560 manual.

#define FOSC 1843200// Clock Speed
#define BAUD 9600
#define (MYUBRR FOSC/16/BAUD-1)

I'm wondering what the third #define does. I think the first one is the processor speed and the second one is the baud rate, which all makes sense. I can't figure the third one out.

In the sample code, it uses MYUBRR like it was a compiler constant, but what does it mean that it's preceded by a (?

0 Answers
Related