Skip to content

Commit

Permalink
Increase tick frequency for responsiveness
Browse files Browse the repository at this point in the history
Based off of PR qmk#866 which did the same thing for the infinity60
  • Loading branch information
belak committed Jan 9, 2017
1 parent ef2ebeb commit a702f46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keyboards/whitefox/chconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* @details Frequency of the system timer that drives the system ticks. This
* setting also defines the system tick time unit.
*/
#define CH_CFG_ST_FREQUENCY 1000
#define CH_CFG_ST_FREQUENCY 100000

/**
* @brief Time delta constant for the tick-less mode.
Expand Down
2 changes: 1 addition & 1 deletion keyboards/whitefox/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ uint8_t matrix_scan(void)
case 8: palSetPad(GPIOC, 11); break;
}

wait_us(1); // need wait to settle pin state
wait_us(10); // need wait to settle pin state

// read col data: { PTD0, PTD1, PTD4, PTD5, PTD6, PTD7, PTC1, PTC2 }
data = ((palReadPort(GPIOC) & 0x06UL) << 5) |
Expand Down

0 comments on commit a702f46

Please sign in to comment.