static void unselect_col(uint8_t col);
static void select_col(uint8_t col);
#endif
-__attribute__ ((weak))
-void matrix_init_quantum(void) {
- matrix_init_kb();
-}
-
-__attribute__ ((weak))
-void matrix_scan_quantum(void) {
- matrix_scan_kb();
-}
__attribute__ ((weak))
void matrix_init_kb(void) {
void matrix_scan_user(void) {
}
+__attribute__ ((weak))
+void matrix_slave_scan_user(void) {
+}
+
inline
uint8_t matrix_rows(void)
{
void matrix_init(void)
{
+#ifdef DISABLE_JTAG
+ // JTAG disable for PORT F. write JTD bit twice within four cycles.
+ MCUCR |= (1<<JTD);
+ MCUCR |= (1<<JTD);
+#endif
+
debug_enable = true;
debug_matrix = true;
debug_mouse = true;
// initialize row and col
+#if (DIODE_DIRECTION == COL2ROW)
unselect_rows();
init_cols();
+#elif (DIODE_DIRECTION == ROW2COL)
+ unselect_cols();
+ init_rows();
+#endif
TX_RX_LED_INIT;
if (matrix_changed) {
debouncing = true;
debouncing_time = timer_read();
- PORTD ^= (1 << 2);
}
# else
serial_slave_buffer[i] = matrix[offset+i];
}
#endif
+ matrix_slave_scan_user();
}
bool matrix_is_modified(void)