finally get split keyboard comms working

This commit is contained in:
Charlotte 🦝 Delenk 2022-07-27 08:59:50 +01:00
parent bda8e5f64a
commit 41080862e6
5 changed files with 18 additions and 9 deletions

View file

@ -17,6 +17,11 @@
#define ONESHOT_TAP_TOGGLE 2 #define ONESHOT_TAP_TOGGLE 2
#define SERIAL_USART_HALF_DUPLEX
#define SERIAL_USART_TX_PIN GP18
//#define SERIAL_USART_RX_PIN GP19
//#define SERIAL_USART_PIN_SWAP
/* /*
* Feature disable options * Feature disable options
* These options are also useful to firmware size reduction. * These options are also useful to firmware size reduction.

View file

@ -36,7 +36,7 @@
} }
}, },
"transport": { "transport": {
"protocol": "custom" "protocol": "serial"
}, },
"usb_detect": { "usb_detect": {
"enabled": true "enabled": true

View file

@ -1,15 +1,17 @@
UNICODE_ENABLE = yes UNICODE_ENABLE = yes
OLED_ENABLE = yes #OLED_ENABLE = yes
OLED_DRIVER = SSD1306 #OLED_DRIVER = SSD1306
SRC += i2c_slave.c i2c_master.c #SRC += i2c_slave.c i2c_master.c
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/transport.c $(QUANTUM_DIR)/split_common/transactions.c #QUANTUM_SRC += $(QUANTUM_DIR)/split_common/transport.c $(QUANTUM_DIR)/split_common/transactions.c
OPT_DEFS += -DSPLIT_COMMON_TRANSACTIONS #OPT_DEFS += -DSPLIT_COMMON_TRANSACTIONS
COMMON_VPATH += $(QUANTUM_PATH)/split_common #COMMON_VPATH += $(QUANTUM_PATH)/split_common
EXTRAINCDIRS += $(BOARD_PATH) #EXTRAINCDIRS += $(BOARD_PATH)
CFLAGS += -Wl,--defsym=__unhandled_user_irq=_unhandled_exception CFLAGS += -Wl,--defsym=__unhandled_user_irq=_unhandled_exception
#SRC += matrix.c #SRC += matrix.c
#CUSTOM_MATRIX = lite #CUSTOM_MATRIX = lite
SERIAL_DRIVER = vendor

View file

@ -3,6 +3,8 @@
#include "serial_usart.h" #include "serial_usart.h"
#include "serial_protocol.h" #include "serial_protocol.h"
#undef PARAM_ASSERTIONS_ENABLED
#define PARAM_ASSERTIONS_ENABLED(x) 0
#include "hardware/pio.h" #include "hardware/pio.h"
#include "hardware/clocks.h" #include "hardware/clocks.h"
#include "wait.h" #include "wait.h"

View file

@ -22,7 +22,7 @@
#include "transaction_id_define.h" #include "transaction_id_define.h"
#include "atomic_util.h" #include "atomic_util.h"
#if 1 #if USE_I2C
# ifndef SLAVE_I2C_TIMEOUT # ifndef SLAVE_I2C_TIMEOUT
# define SLAVE_I2C_TIMEOUT 100 # define SLAVE_I2C_TIMEOUT 100