diff --git a/keyboard/hhkb/config_rn42.h b/keyboard/hhkb/config_rn42.h index df75fba5a2..1260054ebd 100644 --- a/keyboard/hhkb/config_rn42.h +++ b/keyboard/hhkb/config_rn42.h @@ -63,9 +63,20 @@ along with this program. If not, see . #define RTSEN 0 #define CTSEN 1 +#if (F_CPU == 8000000) +#define USE_U2X +#else +#undef USE_U2X +#endif #define SERIAL_UART_BAUD 115200 #define SERIAL_UART_DATA UDR1 +#ifdef USE_U2X + #define SERIAL_UART_UBRR ((F_CPU/(8.0*SERIAL_UART_BAUD)-1+0.5)) + #define SET_U2X1 ((UCSR1A |= (1<. UCSR1C |= (0<