Skip to content

Instantly share code, notes, and snippets.

@idank
Created April 25, 2023 11:59
Show Gist options
  • Save idank/8fae13f65f132a55bd4a40bdebfab7bc to your computer and use it in GitHub Desktop.
Save idank/8fae13f65f132a55bd4a40bdebfab7bc to your computer and use it in GitHub Desktop.
diff --git a/keyboards/handwired/trackpoint/config.h b/keyboards/handwired/trackpoint/config.h
index e42a53eeb8..e20b2da26d 100644
--- a/keyboards/handwired/trackpoint/config.h
+++ b/keyboards/handwired/trackpoint/config.h
@@ -1,9 +1,26 @@
#pragma once
+#define PS2_CLOCK_PIN D2
+#define PS2_DATA_PIN D3
+
+#ifdef PS2_DRIVER_INTERRUPT
+
+
+#define PS2_INT_INIT() do { \
+ EICRA |= ((1<<ISC21) | \
+ (0<<ISC20)); \
+} while (0)
+#define PS2_INT_ON() do { \
+ EIMSK |= (1<<INT2); \
+} while (0)
+#define PS2_INT_OFF() do { \
+ EIMSK &= ~(1<<INT2); \
+} while (0)
+#define PS2_INT_VECT INT2_vect
+#endif
+
#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 */
diff --git a/keyboards/handwired/trackpoint/info.json b/keyboards/handwired/trackpoint/info.json
index b0c0848ca6..34725d1873 100644
--- a/keyboards/handwired/trackpoint/info.json
+++ b/keyboards/handwired/trackpoint/info.json
@@ -9,7 +9,7 @@
"device_version": "0.0.1"
},
"processor": "atmega32u4",
- "bootloader": "halfkay",
+ "bootloader": "caterina",
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/handwired/trackpoint/rules.mk b/keyboards/handwired/trackpoint/rules.mk
index ca3836ef06..27eab1fc64 100644
--- a/keyboards/handwired/trackpoint/rules.mk
+++ b/keyboards/handwired/trackpoint/rules.mk
@@ -4,12 +4,12 @@
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
-CONSOLE_ENABLE = yes # Console for debug
-COMMAND_ENABLE = yes # Commands for debug and configuration
+# CONSOLE_ENABLE = yes # Console for debug
+# COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = no # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
PS2_MOUSE_ENABLE = yes
PS2_ENABLE = yes
-PS2_DRIVER = usart
+PS2_DRIVER = busywait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment