From 1b49ec431996196e1a13732f769b56712f905ea7 Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Wed, 3 Jul 2019 20:31:42 -0700 Subject: [PATCH] Add reset. --- layout.scm | 3 +-- usb_keyboard.c | 11 +++++++++++ usb_keyboard.h | 4 ++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/layout.scm b/layout.scm index 9b62313..5de6f89 100644 --- a/layout.scm +++ b/layout.scm @@ -11,8 +11,7 @@ (define (set-layer n) (lambda () (set! current-layer (vector-ref layers n)))) -(define (reset) - #f) ;; TODO: uh, seriously. I need this. how. +(define (reset) (call-c-func "reset")) ;;;; layers diff --git a/usb_keyboard.c b/usb_keyboard.c index 3fbe4a6..9dd50ca 100644 --- a/usb_keyboard.c +++ b/usb_keyboard.c @@ -601,3 +601,14 @@ ISR(USB_COM_vect) } UECONX = (1< +// #include +void reset(void); + // This file does not include the HID debug functions, so these empty // macros replace them with nothing, so users can compile code that // has calls to these functions.