pc98_usb: Configure for TMK Converter
This commit is contained in:
parent
47e9e80223
commit
54c9e737d0
2 changed files with 7 additions and 4 deletions
|
|
@ -32,7 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
/* key combination for command */
|
||||
#define IS_COMMAND() ( \
|
||||
host_get_first_key() == KC_CANCEL \
|
||||
keyboard_report->keys[0] == KC_STOP || \
|
||||
keyboard_report->mods == (MOD_BIT(KC_LALT) | MOD_BIT(KC_RALT)) \
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -56,7 +57,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
/* PC98 Retry Port */
|
||||
#define PC98_RTY_DDR DDRD
|
||||
#define PC98_RTY_PORT PORTD
|
||||
#define PC98_RTY_BIT 5
|
||||
#define PC98_RTY_BIT 1
|
||||
|
||||
/*
|
||||
* PC98 Serial(USART) configuration
|
||||
|
|
@ -110,7 +111,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
/*
|
||||
* Hardware Serial(UART)
|
||||
*/
|
||||
#ifdef __AVR_ATmega32U4__
|
||||
#if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega32U2__)
|
||||
#define SERIAL_UART_BAUD 19200
|
||||
#define SERIAL_UART_DATA UDR1
|
||||
#define SERIAL_UART_UBRR ((F_CPU/(16UL*SERIAL_UART_BAUD))-1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue