pc98_usb: Configure for TMK Converter
This commit is contained in:
parent
47e9e80223
commit
54c9e737d0
2 changed files with 7 additions and 4 deletions
|
|
@ -19,9 +19,10 @@ CONFIG_H = config.h
|
||||||
# MCU name, you MUST set this to match the board you are using
|
# MCU name, you MUST set this to match the board you are using
|
||||||
# type "make clean" after changing this, so all files will be rebuilt
|
# type "make clean" after changing this, so all files will be rebuilt
|
||||||
#MCU = at90usb162 # Teensy 1.0
|
#MCU = at90usb162 # Teensy 1.0
|
||||||
MCU = atmega32u4 # Teensy 2.0
|
#MCU = atmega32u4 # Teensy 2.0
|
||||||
#MCU = at90usb646 # Teensy++ 1.0
|
#MCU = at90usb646 # Teensy++ 1.0
|
||||||
#MCU = at90usb1286 # Teensy++ 2.0
|
#MCU = at90usb1286 # Teensy++ 2.0
|
||||||
|
MCU = atmega32u2 # TMK Converter
|
||||||
|
|
||||||
|
|
||||||
# Processor frequency.
|
# Processor frequency.
|
||||||
|
|
@ -61,6 +62,7 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = yes # Console for debug
|
CONSOLE_ENABLE = yes # Console for debug
|
||||||
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
#NKRO_ENABLE = yes # USB Nkey Rollover
|
#NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/* key combination for command */
|
/* key combination for command */
|
||||||
#define IS_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 */
|
/* PC98 Retry Port */
|
||||||
#define PC98_RTY_DDR DDRD
|
#define PC98_RTY_DDR DDRD
|
||||||
#define PC98_RTY_PORT PORTD
|
#define PC98_RTY_PORT PORTD
|
||||||
#define PC98_RTY_BIT 5
|
#define PC98_RTY_BIT 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PC98 Serial(USART) configuration
|
* PC98 Serial(USART) configuration
|
||||||
|
|
@ -110,7 +111,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
/*
|
/*
|
||||||
* Hardware Serial(UART)
|
* Hardware Serial(UART)
|
||||||
*/
|
*/
|
||||||
#ifdef __AVR_ATmega32U4__
|
#if defined(__AVR_ATmega32U4__) || defined(__AVR_ATmega32U2__)
|
||||||
#define SERIAL_UART_BAUD 19200
|
#define SERIAL_UART_BAUD 19200
|
||||||
#define SERIAL_UART_DATA UDR1
|
#define SERIAL_UART_DATA UDR1
|
||||||
#define SERIAL_UART_UBRR ((F_CPU/(16UL*SERIAL_UART_BAUD))-1)
|
#define SERIAL_UART_UBRR ((F_CPU/(16UL*SERIAL_UART_BAUD))-1)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue