Go to the documentation of this file.
113 # error "setbaud.h requires F_CPU to be defined"
117 # error "setbaud.h requires BAUD to be defined"
121 # error "F_CPU must be a constant value"
125 # error "BAUD must be a constant value"
128 #if defined(__DOXYGEN__)
195 #define UBRR_VALUE (((F_CPU) + 8 * (BAUD)) / (16 * (BAUD)) -1)
197 #define UBRR_VALUE (((F_CPU) + 8UL * (BAUD)) / (16UL * (BAUD)) -1UL)
200 #if 100 * (F_CPU) > \
201 (16 * ((UBRR_VALUE) + 1)) * (100 * (BAUD) + (BAUD) * (BAUD_TOL))
203 #elif 100 * (F_CPU) < \
204 (16 * ((UBRR_VALUE) + 1)) * (100 * (BAUD) - (BAUD) * (BAUD_TOL))
215 #define UBRR_VALUE (((F_CPU) + 4 * (BAUD)) / (8 * (BAUD)) -1)
217 #define UBRR_VALUE (((F_CPU) + 4UL * (BAUD)) / (8UL * (BAUD)) -1UL)
220 #if 100 * (F_CPU) > \
221 (8 * ((UBRR_VALUE) + 1)) * (100 * (BAUD) + (BAUD) * (BAUD_TOL))
222 # warning "Baud rate achieved is higher than allowed"
225 #if 100 * (F_CPU) < \
226 (8 * ((UBRR_VALUE) + 1)) * (100 * (BAUD) - (BAUD) * (BAUD_TOL))
227 # warning "Baud rate achieved is lower than allowed"
233 # define UBRRL_VALUE (UBRR_VALUE & 0xff)
234 # define UBRRH_VALUE (UBRR_VALUE >> 8)
Automatically generated by Doxygen 1.8.7 on Tue Jul 8 2014. Dash Docset conversion by Matt Kane