* [macway](keyboard/macway/) - [Compact keyboard mod][GH_macway] [retired] | * [macway](keyboard/macway/) - [Compact keyboard mod][GH_macway] [retired] | ||||
* [KMAC](keyboard/kmac/) - Korean custom keyboard | * [KMAC](keyboard/kmac/) - Korean custom keyboard | ||||
* [Lightsaber](keyboard/lightsaber/) - Korean custom keyboard | * [Lightsaber](keyboard/lightsaber/) - Korean custom keyboard | ||||
* [Infinity](keyboard/infinity/) - Massdrop [Infinity keyboard][Infinity] | |||||
[GH_macway]: http://geekhack.org/showwiki.php?title=Island:11930 | [GH_macway]: http://geekhack.org/showwiki.php?title=Island:11930 | ||||
[GH_hhkb]: http://geekhack.org/showwiki.php?title=Island:12047 | [GH_hhkb]: http://geekhack.org/showwiki.php?title=Island:12047 | ||||
[PC98]: http://en.wikipedia.org/wiki/NEC_PC-9801 | [PC98]: http://en.wikipedia.org/wiki/NEC_PC-9801 | ||||
[Sun]: http://en.wikipedia.org/wiki/Sun-3 | [Sun]: http://en.wikipedia.org/wiki/Sun-3 | ||||
[IIGS]: http://en.wikipedia.org/wiki/Apple_IIGS | [IIGS]: http://en.wikipedia.org/wiki/Apple_IIGS | ||||
[Infinity]: https://www.massdrop.com/buy/infinity-keyboard-kit | |||||
#define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1<<col)) | #define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1<<col)) | ||||
#ifdef __cplusplus | |||||
extern "C" { | |||||
#endif | |||||
/* number of matrix rows */ | /* number of matrix rows */ | ||||
uint8_t matrix_rows(void); | uint8_t matrix_rows(void); | ||||
/* number of matrix columns */ | /* number of matrix columns */ | ||||
/* whether a swtich is on */ | /* whether a swtich is on */ | ||||
bool matrix_is_on(uint8_t row, uint8_t col); | bool matrix_is_on(uint8_t row, uint8_t col); | ||||
/* matrix state on row */ | /* matrix state on row */ | ||||
matrix_row_t matrix_get_row(uint8_t row); | |||||
matrix_row_t matrix_get_row(uint8_t row); | |||||
/* print matrix for debug */ | /* print matrix for debug */ | ||||
void matrix_print(void); | void matrix_print(void); | ||||
void matrix_power_up(void); | void matrix_power_up(void); | ||||
void matrix_power_down(void); | void matrix_power_down(void); | ||||
#ifdef __cplusplus | |||||
} | |||||
#endif | |||||
#endif | #endif |
#define STRING_STACK_LIMIT 120 | #define STRING_STACK_LIMIT 120 | ||||
//TODO | |||||
int xprintf(const char* format, ...) { return 0; } | |||||
#if 0 | |||||
/* mbed Serial */ | /* mbed Serial */ | ||||
Serial ser(UART_TX, UART_RX); | Serial ser(UART_TX, UART_RX); | ||||
return r; | return r; | ||||
*/ | */ | ||||
} | } | ||||
#endif |
-D__MBED__=1 | -D__MBED__=1 | ||||
OBJECTS += \ | OBJECTS += \ | ||||
$(OBJDIR)/libraries/USBDevice/USBDevice/USBHAL_LPC11U.o \ | |||||
$(OBJDIR)/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.o \ | $(OBJDIR)/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.o \ | ||||
$(OBJDIR)/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.o \ | $(OBJDIR)/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.o \ | ||||
$(OBJDIR)/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.o \ | $(OBJDIR)/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.o \ |
OBJECTS += \ | OBJECTS += \ | ||||
$(OBJDIR)/libraries/mbed/common/gpio.o \ | $(OBJDIR)/libraries/mbed/common/gpio.o \ | ||||
$(OBJDIR)/libraries/mbed/common/us_ticker_api.o \ | $(OBJDIR)/libraries/mbed/common/us_ticker_api.o \ | ||||
$(OBJDIR)/libraries/mbed/common/wait_api.o | |||||
$(OBJDIR)/libraries/mbed/common/wait_api.o \ | |||||
$(OBJDIR)/libraries/USBDevice/USBDevice/USBDevice.o | |||||
# $(OBJDIR)/libraries/mbed/common/assert.o \ | # $(OBJDIR)/libraries/mbed/common/assert.o \ | ||||
# $(OBJDIR)/libraries/mbed/common/board.o \ | # $(OBJDIR)/libraries/mbed/common/board.o \ | ||||
-I$(MBED_DIR)/libraries/USBDevice/USBSerial | -I$(MBED_DIR)/libraries/USBDevice/USBSerial | ||||
# TMK mbed protocol | # TMK mbed protocol | ||||
#OBJECTS += \ | |||||
# $(OBJDIR)/protocol/mbed/mbed_driver.o \ | |||||
# $(OBJDIR)/protocol/mbed/HIDKeyboard.o | |||||
OBJECTS += \ | |||||
$(OBJDIR)/protocol/mbed/mbed_driver.o \ | |||||
$(OBJDIR)/protocol/mbed/HIDKeyboard.o | |||||
INCLUDE_PATHS += \ | INCLUDE_PATHS += \ | ||||
-I$(TMK_DIR)/protocol/mbed | -I$(TMK_DIR)/protocol/mbed |