Skip to content

Commit

Permalink
Follow the origin changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed May 1, 2022
1 parent 7f3b627 commit 8a11c9f
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion keyboards/keyboard_quantizer/keyboard_quantizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ bool process_packet(matrix_row_t current_matrix[]) {
// process all available packet
while (uart_available()) {
while (uart_available()) {
uint8_t c = uart_getchar();
uint8_t c = uart_read();

// process SLIP
if (c == SLIP_END) {
Expand Down
2 changes: 1 addition & 1 deletion keyboards/keyboard_quantizer/keymaps/bootloader/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[_BASE] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCROLLLOCK, KC_PAUS,
JP_ZHTG, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPACE, KC_INSERT, KC_HOME, KC_PGUP, KC_NUMLOCK, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS,
JP_ZKHK, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPACE, KC_INSERT, KC_HOME, KC_PGUP, KC_NUMLOCK, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, KC_ENT, KC_DEL, KC_END, KC_PGDN, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_SCLN, JP_COLN, JP_RBRC, KC_KP_4, KC_KP_5, KC_KP_6,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, JP_SLSH, JP_BSLS, KC_RSFT, KC_UP, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER,
Expand Down
2 changes: 1 addition & 1 deletion keyboards/keyboard_quantizer/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[_BASE] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCROLLLOCK, KC_PAUS,
JP_ZHTG, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPACE, KC_INSERT, KC_HOME, KC_PGUP, KC_NUMLOCK, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS,
JP_ZKHK, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPACE, KC_INSERT, KC_HOME, KC_PGUP, KC_NUMLOCK, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, KC_ENT, KC_DEL, KC_END, KC_PGDN, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_SCLN, JP_COLN, JP_RBRC, KC_KP_4, KC_KP_5, KC_KP_6,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, JP_SLSH, JP_BSLS, KC_RSFT, KC_UP, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER,
Expand Down
2 changes: 1 addition & 1 deletion keyboards/keyboard_quantizer/keymaps/fixed/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[_BASE] = LAYOUT(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCROLLLOCK, KC_PAUS,
JP_ZHTG, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPACE, KC_INSERT, KC_HOME, KC_PGUP, KC_NUMLOCK, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS,
JP_ZKHK, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPACE, KC_INSERT, KC_HOME, KC_PGUP, KC_NUMLOCK, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, KC_ENT, KC_DEL, KC_END, KC_PGDN, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_SCLN, JP_COLN, JP_RBRC, KC_KP_4, KC_KP_5, KC_KP_6,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, JP_SLSH, JP_BSLS, KC_RSFT, KC_UP, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER,
Expand Down
28 changes: 14 additions & 14 deletions keyboards/keyboard_quantizer/rev3/rev3.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ void send_reset_cmd(void) {
hid_info_cnt = 0;
device_cnt = 0;

uart_putchar('\n');
uart_write('\n');
_delay_ms(10);
uart_putchar('k');
uart_putchar('r');
uart_putchar('\n');
uart_write('k');
uart_write('r');
uart_write('\n');
}

#ifdef CH559_BOOTLOADER_ENABLE
Expand All @@ -73,11 +73,11 @@ static void send_bootloader_cmd(void) {
hid_info_cnt = 0;
device_cnt = 0;

uart_putchar('\n');
uart_write('\n');
_delay_ms(100);
uart_putchar('k');
uart_putchar('b');
uart_putchar('\n');
uart_write('k');
uart_write('b');
uart_write('\n');
}
#endif

Expand Down Expand Up @@ -109,11 +109,11 @@ __attribute__((weak)) uint8_t update_indicator_led(void) {

static void blink_indicator_led(uint8_t led)
{
uart_putchar('\n');
uart_write('\n');
_delay_us(50);
uart_putchar(0x80 | (led & 0x07));
uart_write(0x80 | (led & 0x07));
_delay_us(50);
uart_putchar('\n');
uart_write('\n');
}
#endif

Expand Down Expand Up @@ -170,13 +170,13 @@ void virtser_recv(const uint8_t ch) {
uart_init(57600);

// send dummy byte
uart_putchar(0);
uart_write(0);
}
#endif

if (ch559_update_mode) {
// pass through received virtser data to uart
uart_putchar(ch);
uart_write(ch);
} else {
// process received data for simple console
process_char(ch);
Expand All @@ -187,7 +187,7 @@ void matrix_scan_kb() {
if (ch559_update_mode) {
// pass through received uart data to virtser
while (uart_available()) {
virtser_send(uart_getchar());
virtser_send(uart_read());
}
} else {
#ifdef QUANTIZER_INDICATOR_ENABLE
Expand Down
3 changes: 2 additions & 1 deletion keyboards/keyboard_quantizer/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ BOOTLOADER = caterina
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
POINTING_DEVICE_ENABLE = yes
POINTING_DEVICE_DRIVER = custom
OLED_DRIVER_ENABLE = no
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
Expand Down
2 changes: 1 addition & 1 deletion keyboards/ramonimbao/squishytkl/keymaps/jis/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_jis(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_MUTE, KC_PSCR, KC_SLCK, KC_PAUS,
JP_ZHTG, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
JP_ZKHK, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, JP_MINS, JP_CIRC, JP_YEN, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JP_AT, JP_LBRC, KC_DEL, KC_END, KC_PGDN,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, JP_SCLN, JP_COLN, JP_RBRC, KC_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, JP_COMM, JP_DOT, JP_SLSH, JP_BSLS, KC_RSFT, KC_UP,
Expand Down

0 comments on commit 8a11c9f

Please sign in to comment.