Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove HHKB RN42 code #21007

Merged
merged 1 commit into from
May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions keyboards/hhkb/ansi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define TAPPING_TERM 200

#ifdef HHKB_RN42_ENABLE
// rn42 support -- acquired from the tmk repo. This is almost certainly not
// integrated with qmk in the correct way.

#define SUART_OUT_PORT PORTD
#define SUART_OUT_BIT 0
#define SUART_IN_PIN PIND
#define SUART_IN_BIT 1

#define SERIAL_UART_BAUD 115200
#define SERIAL_UART_INIT_CUSTOM \
/* RX interrupt, RX: enable */ \
UCSR1B |= (1<<RXCIE1) | (1<<RXEN1); \
/* TX interrupt, TX: enable */ \
UCSR1B |= (0<<TXCIE1) | (1<<TXEN1); \
/* parity: none(00), even(01), odd(11) */ \
UCSR1C |= (0<<UPM11) | (0<<UPM10); \
/* RTS, CTS(no flow control by hardware) */ \
UCSR1D |= (0<<RTSEN) | (0<<CTSEN); \
/* RTS for flow control by firmware */ \
DDRD |= (1<<5); PORTD &= ~(1<<5);
#define SERIAL_UART_RTS_LO() do { PORTD &= ~(1<<5); } while (0)
#define SERIAL_UART_RTS_HI() do { PORTD |= (1<<5); } while (0)

/* power control of key switch board */
#define HHKB_POWER_SAVING

#endif

/*
* Feature disable options
* These options are also useful to firmware size reduction.
Expand Down
18 changes: 0 additions & 18 deletions keyboards/hhkb/ansi/post_rules.mk

This file was deleted.

9 changes: 0 additions & 9 deletions keyboards/hhkb/ansi/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ CUSTOM_MATRIX = yes # Custom matrix file for the HHKB
NKRO_ENABLE = no # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality

HHKB_RN42_ENABLE = no # Enable support for hasu's BT alt controller -- code borrowed from tmk source tree.

# Either uncomment the HHKB_RN42_ENABLE line above, or run make enabling the
# feature. Be sure to clean any existing build before trying to enable rn42
# support. For example:
#
# make hhkb-keymap-clean
# make hhkb-keymap-dfu HHKB_RN42_ENABLE=yes

# project specific files
SRC = matrix.c

Expand Down
29 changes: 0 additions & 29 deletions keyboards/hhkb/jp/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define TAPPING_TERM 200

#ifdef HHKB_RN42_ENABLE
// rn42 support -- acquired from the tmk repo. This is almost certainly not
// integrated with qmk in the correct way.

#define SUART_OUT_PORT PORTD
#define SUART_OUT_BIT 0
#define SUART_IN_PIN PIND
#define SUART_IN_BIT 1

#define SERIAL_UART_BAUD 115200
#define SERIAL_UART_INIT_CUSTOM \
/* RX interrupt, RX: enable */ \
UCSR1B |= (1<<RXCIE1) | (1<<RXEN1); \
/* TX interrupt, TX: enable */ \
UCSR1B |= (0<<TXCIE1) | (1<<TXEN1); \
/* parity: none(00), even(01), odd(11) */ \
UCSR1C |= (0<<UPM11) | (0<<UPM10); \
/* RTS, CTS(no flow control by hardware) */ \
UCSR1D |= (0<<RTSEN) | (0<<CTSEN); \
/* RTS for flow control by firmware */ \
DDRD |= (1<<5); PORTD &= ~(1<<5);
#define SERIAL_UART_RTS_LO() do { PORTD &= ~(1<<5); } while (0)
#define SERIAL_UART_RTS_HI() do { PORTD |= (1<<5); } while (0)

/* power control of key switch board */
#define HHKB_POWER_SAVING

#endif

/*
* Feature disable options
* These options are also useful to firmware size reduction.
Expand Down
18 changes: 0 additions & 18 deletions keyboards/hhkb/jp/post_rules.mk

This file was deleted.

9 changes: 0 additions & 9 deletions keyboards/hhkb/jp/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ CUSTOM_MATRIX = yes # Custom matrix file for the HHKB
NKRO_ENABLE = no # Enable N-Key Rollover
# BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality

# HHKB_RN42_ENABLE = yes # Enable support for hasu's BT alt controller -- code borrowed from tmk source tree.

# Either uncomment the HHKB_RN42_ENABLE line above, or run make enabling the
# feature. Be sure to clean any existing build before trying to enable rn42
# support. For example:
#
# make hhkb-keymap-clean
# make hhkb-keymap-dfu HHKB_RN42_ENABLE=yes

# project specific files
SRC = matrix.c

Expand Down
Loading