From a322107cb7b347a8c2020fcab5b9505c328daa24 Mon Sep 17 00:00:00 2001 From: durken1 <71756879+durken1@users.noreply.github.com> Date: Sun, 6 Oct 2024 10:47:15 +0200 Subject: [PATCH] add USART configuration to config.h for PS/2 mouse support (#24398) --- keyboards/pierce/config.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/keyboards/pierce/config.h b/keyboards/pierce/config.h index 82c4b4b2642..3b89c38603c 100644 --- a/keyboards/pierce/config.h +++ b/keyboards/pierce/config.h @@ -23,3 +23,40 @@ /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW + +#ifdef PS2_DRIVER_USART +#define PS2_CLOCK_PIN D5 +#define PS2_DATA_PIN D2 + +/* synchronous, odd parity, 1-bit stop, 8-bit data, sample at falling edge */ +/* set DDR of CLOCK as input to be slave */ +#define PS2_USART_INIT() do { \ + PS2_CLOCK_DDR &= ~(1<