From 9581289745736ce068a1040f44cec37a2ca8830d Mon Sep 17 00:00:00 2001 From: lokher Date: Tue, 13 Sep 2022 11:24:05 +0800 Subject: Remove non-Keychron keyboards --- keyboards/matrix/m20add/m20add.c | 66 ---------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 keyboards/matrix/m20add/m20add.c (limited to 'keyboards/matrix/m20add/m20add.c') diff --git a/keyboards/matrix/m20add/m20add.c b/keyboards/matrix/m20add/m20add.c deleted file mode 100644 index cdcafb9779..0000000000 --- a/keyboards/matrix/m20add/m20add.c +++ /dev/null @@ -1,66 +0,0 @@ -/** - * m20add.c - */ - -#include "m20add.h" -#include "tca6424.h" -#include "rgb_ring.h" -#include "i2c_master.h" - -void set_pin(uint16_t pin) -{ - uint8_t data = tca6424_read_port(GET_PORT(pin)); - data |= ( 1 << GET_PIN(pin)); - tca6424_write_port(GET_PORT(pin), data); -} - -void clear_pin(uint16_t pin) -{ - uint8_t data = tca6424_read_port(GET_PORT(pin)); - data &= ~( 1 << GET_PIN(pin)); - tca6424_write_port(GET_PORT(pin), data); -} - -uint8_t read_pin(uint16_t pin) -{ - uint8_t data = tca6424_read_port(GET_PORT(pin)); - return (data & (1<BKP0R)) = REBOOT_MAGIC; -} - -void bootloader_jump(void) { - shutdown_user(); - NVIC_SystemReset(); -} -- cgit v1.2.3