[Test] Reset timer for every unit test and provide timestamps for log messages (#17028)
This commit is contained in:
parent
e2ab98f960
commit
962e4c0e18
20 changed files with 1011 additions and 41 deletions
|
@ -41,11 +41,15 @@ void matrix_init_kb(void) {}
|
|||
void matrix_scan_kb(void) {}
|
||||
|
||||
void press_key(uint8_t col, uint8_t row) {
|
||||
matrix[row] |= 1 << col;
|
||||
matrix[row] |= (matrix_row_t)1 << col;
|
||||
}
|
||||
|
||||
void release_key(uint8_t col, uint8_t row) {
|
||||
matrix[row] &= ~(1 << col);
|
||||
matrix[row] &= ~((matrix_row_t)1 << col);
|
||||
}
|
||||
|
||||
bool matrix_is_on(uint8_t row, uint8_t col) {
|
||||
return (matrix[row] & ((matrix_row_t)1 << col));
|
||||
}
|
||||
|
||||
void clear_all_keys(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue