Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/qmk/qmk_firmware
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/qmk/qmk_firmware:
  Serial refactor (qmk#11521)
  update lck75 json file (qmk#11798)
  Manually run formatting job (qmk#11797)
  [Keyboard] add shk9 macropad (qmk#11505)
  Fix build errors on kikoslab/kl90 default keymap (qmk#11796)
  [Keyboard] Fix the LED's ID of ISSI for MJ64 REV2 (qmk#11760)
  [Keyboard] Add VIA support to v60 Type R (qmk#11758)
  [Keyboard] add latin17rgb (qmk#11680)
  • Loading branch information
djuggler committed Feb 5, 2021
2 parents a46ae79 + 5ea92a9 commit 25c599c
Show file tree
Hide file tree
Showing 87 changed files with 883 additions and 597 deletions.
22 changes: 0 additions & 22 deletions keyboards/40percentclub/ut47/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* Enable GNAP matrix serial output */
#define GNAP_ENABLE

/* USART configuration */
#ifdef __AVR_ATmega32U4__
# define SERIAL_UART_BAUD 9600
# define SERIAL_UART_DATA UDR1
# define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1)
# define SERIAL_UART_RXD_VECT USART1_RX_vect
# define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
# define SERIAL_UART_INIT() do { \
/* baud rate */ \
UBRR1L = SERIAL_UART_UBRR; \
/* baud rate */ \
UBRR1H = SERIAL_UART_UBRR >> 8; \
/* enable TX */ \
UCSR1B = _BV(TXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
sei(); \
} while(0)
# else
# error "USART configuration is needed."
#endif
5 changes: 0 additions & 5 deletions keyboards/centromere/centromere.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include "centromere.h"

void uart_init(void) {
SERIAL_UART_INIT();
}

void led_init(void) {
#if MCU == atmega32u2
setPinOutput(C4); // Set red LED pin as output
Expand Down Expand Up @@ -32,7 +28,6 @@ void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
uart_init();
led_init();
}

Expand Down
18 changes: 5 additions & 13 deletions keyboards/centromere/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//UART settings for communication with the RF microcontroller
#define SERIAL_UART_BAUD 500000
#define SERIAL_UART_DATA UDR1
#define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1)
#define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
#define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1))
#define SERIAL_UART_INIT() do { \
/* baud rate */ \
UBRR1L = SERIAL_UART_UBRR; \
/* baud rate */ \
UBRR1H = SERIAL_UART_UBRR >> 8; \
/* enable TX and RX */ \
UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
} while(0)
#define SERIAL_UART_INIT_CUSTOM \
/* enable TX and RX */ \
UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10);
4 changes: 2 additions & 2 deletions keyboards/centromere/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h"
#include "matrix.h"
#include "timer.h"
#include "protocol/serial.h"

#if (MATRIX_COLS <= 8)
# define print_matrix_header() print("\nr/c 01234567\n")
Expand Down Expand Up @@ -79,12 +80,11 @@ uint8_t matrix_cols(void) {
void matrix_init(void) {

matrix_init_quantum();
serial_init();
}

uint8_t matrix_scan(void)
{
SERIAL_UART_INIT();

uint32_t timeout = 0;

//the s character requests the RF remote slave to send the matrix information
Expand Down
9 changes: 1 addition & 8 deletions keyboards/centromere/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ MIDI_ENABLE = no # MIDI controls
UNICODE_ENABLE = yes # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID

USB = /dev/ttyACM0

# upload: build
# $(CENTROMERE_UPLOAD_COMMAND)

OPT_DEFS += -DCENTROMERE_PROMICRO

# # project specific files
SRC = matrix.c
SRC += matrix.c serial_uart.c

LAYOUTS = split_3x5_3 split_3x6_3
15 changes: 0 additions & 15 deletions keyboards/chimera_ergo/chimera_ergo.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include "chimera_ergo.h"

void uart_init(void) {
SERIAL_UART_INIT();
}

void led_init(void) {
DDRD |= (1<<1);
PORTD |= (1<<1);
Expand All @@ -16,16 +12,5 @@ void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
uart_init();
led_init();
}

void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}

void led_set_kb(uint8_t usb_led) {

}
18 changes: 5 additions & 13 deletions keyboards/chimera_ergo/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//UART settings for communication with the RF microcontroller
#define SERIAL_UART_BAUD 1000000
#define SERIAL_UART_DATA UDR1
#define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1)
#define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
#define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1))
#define SERIAL_UART_INIT() do { \
/* baud rate */ \
UBRR1L = SERIAL_UART_UBRR; \
/* baud rate */ \
UBRR1H = SERIAL_UART_UBRR >> 8; \
/* enable TX and RX */ \
UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
} while(0)
#define SERIAL_UART_INIT_CUSTOM \
/* enable TX and RX */ \
UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10);

#endif
4 changes: 2 additions & 2 deletions keyboards/chimera_ergo/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h"
#include "matrix.h"
#include "timer.h"
#include "protocol/serial.h"

#if (MATRIX_COLS <= 8)
# define print_matrix_header() print("\nr/c 01234567\n")
Expand Down Expand Up @@ -88,12 +89,11 @@ uint8_t matrix_cols(void) {
void matrix_init(void) {

matrix_init_quantum();
serial_init();
}

uint8_t matrix_scan(void)
{
SERIAL_UART_INIT();

uint32_t timeout = 0;

//the s character requests the RF slave to send the matrix
Expand Down
9 changes: 1 addition & 8 deletions keyboards/chimera_ergo/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,5 @@ NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
UNICODE_ENABLE = YES # Unicode
# BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID


OPT_DEFS += -DCHIMERA_ERGO_PROMICRO
CHIMERA_ERGO_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)

# # project specific files
SRC = matrix.c

USB = /dev/ttyACM0
SRC += matrix.c serial_uart.c
15 changes: 0 additions & 15 deletions keyboards/chimera_ls/chimera_ls.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include "chimera_ls.h"

void uart_init(void) {
SERIAL_UART_INIT();
}

void led_init(void) {
DDRD |= (1<<1);
PORTD |= (1<<1);
Expand All @@ -16,16 +12,5 @@ void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
uart_init();
led_init();
}

void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}

void led_set_kb(uint8_t usb_led) {

}
18 changes: 5 additions & 13 deletions keyboards/chimera_ls/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//UART settings for communication with the RF microcontroller
#define SERIAL_UART_BAUD 1000000
#define SERIAL_UART_DATA UDR1
#define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1)
#define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
#define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1))
#define SERIAL_UART_INIT() do { \
/* baud rate */ \
UBRR1L = SERIAL_UART_UBRR; \
/* baud rate */ \
UBRR1H = SERIAL_UART_UBRR >> 8; \
/* enable TX and RX */ \
UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
} while(0)
#define SERIAL_UART_INIT_CUSTOM \
/* enable TX and RX */ \
UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10);

#endif
4 changes: 2 additions & 2 deletions keyboards/chimera_ls/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h"
#include "matrix.h"
#include "timer.h"
#include "protocol/serial.h"

#if (MATRIX_COLS <= 8)
# define print_matrix_header() print("\nr/c 01234567\n")
Expand Down Expand Up @@ -92,12 +93,11 @@ uint8_t matrix_cols(void) {

void matrix_init(void) {
matrix_init_quantum();
serial_init();
}

uint8_t matrix_scan(void)
{
SERIAL_UART_INIT();

uint32_t timeout = 0;

//the s character requests the RF slave to send the matrix
Expand Down
8 changes: 1 addition & 7 deletions keyboards/chimera_ls/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,8 @@ NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
UNICODE_ENABLE = YES # Unicode
# BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID

USB = /dev/ttyACM0

OPT_DEFS += -DCHIMERA_LS_PROMICRO
CHIMERA_LS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)

# project specific files
SRC = matrix.c
SRC += matrix.c serial_uart.c

LAYOUTS = ortho_4x12

Expand Down
15 changes: 0 additions & 15 deletions keyboards/chimera_ortho/chimera_ortho.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include "chimera_ortho.h"

void uart_init(void) {
SERIAL_UART_INIT();
}

void led_init(void) {
DDRD |= (1<<1);
PORTD |= (1<<1);
Expand All @@ -16,16 +12,5 @@ void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
uart_init();
led_init();
}

void matrix_scan_kb(void) {
// put your looping keyboard code here
// runs every cycle (a lot)
matrix_scan_user();
}

void led_set_kb(uint8_t usb_led) {

}
18 changes: 5 additions & 13 deletions keyboards/chimera_ortho/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//UART settings for communication with the RF microcontroller
#define SERIAL_UART_BAUD 1000000
#define SERIAL_UART_DATA UDR1
#define SERIAL_UART_UBRR (F_CPU / (16UL * SERIAL_UART_BAUD) - 1)
#define SERIAL_UART_TXD_READY (UCSR1A & _BV(UDRE1))
#define SERIAL_UART_RXD_PRESENT (UCSR1A & _BV(RXC1))
#define SERIAL_UART_INIT() do { \
/* baud rate */ \
UBRR1L = SERIAL_UART_UBRR; \
/* baud rate */ \
UBRR1H = SERIAL_UART_UBRR >> 8; \
/* enable TX and RX */ \
UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); \
} while(0)
#define SERIAL_UART_INIT_CUSTOM \
/* enable TX and RX */ \
UCSR1B = _BV(TXEN1) | _BV(RXEN1); \
/* 8-bit data */ \
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10);

#endif
4 changes: 2 additions & 2 deletions keyboards/chimera_ortho/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h"
#include "matrix.h"
#include "timer.h"
#include "protocol/serial.h"

#if (MATRIX_COLS <= 8)
# define print_matrix_header() print("\nr/c 01234567\n")
Expand Down Expand Up @@ -78,12 +79,11 @@ uint8_t matrix_cols(void) {
void matrix_init(void) {

matrix_init_quantum();
serial_init();
}

uint8_t matrix_scan(void)
{
SERIAL_UART_INIT();

uint32_t timeout = 0;

//the s character requests the RF slave to send the matrix
Expand Down
8 changes: 1 addition & 7 deletions keyboards/chimera_ortho/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,5 @@ NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
UNICODE_ENABLE = YES # Unicode
# BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID

USB = /dev/ttyACM0

OPT_DEFS += -DCHIMERA_ORTHO_PROMICRO
CHIMERA_ORTHO_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)

# project specific files
SRC = matrix.c
SRC += matrix.c serial_uart.c
5 changes: 0 additions & 5 deletions keyboards/chimera_ortho_plus/chimera_ortho_plus.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include "chimera_ortho_plus.h"

void uart_init(void) {
SERIAL_UART_INIT();
}

void led_init(void) {
setPinOutput(D1);
setPinOutput(F4);
Expand All @@ -18,6 +14,5 @@ void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
matrix_init_user();
uart_init();
led_init();
}
Loading

0 comments on commit 25c599c

Please sign in to comment.