Browse Source

hhkb: Fix scan rate for HHKB JP #203

exp
tmk 9 years ago
parent
commit
a8822a16b4
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      keyboard/hhkb/matrix.c

+ 6
- 0
keyboard/hhkb/matrix.c View File



// NOTE: KEY_STATE keep its state in 20us after KEY_ENABLE. // NOTE: KEY_STATE keep its state in 20us after KEY_ENABLE.
// This takes 25us or more to make sure KEY_STATE returns to idle state. // This takes 25us or more to make sure KEY_STATE returns to idle state.
#ifdef HHKB_JP
// Looks like JP needs faster scan due to its twice larger matrix
// or it can drop keys in fast key typing
_delay_us(30);
#else
_delay_us(75); _delay_us(75);
#endif
} }
if (matrix[row] ^ matrix_prev[row]) matrix_last_modified = timer_read32(); if (matrix[row] ^ matrix_prev[row]) matrix_last_modified = timer_read32();
} }