Update GPIO macro usages in core (#23093)
This commit is contained in:
parent
6810aaf013
commit
2d1aed78a6
61 changed files with 334 additions and 334 deletions
|
@ -13,20 +13,20 @@ static inline void chThdSleepMicroseconds(uint32_t us) {
|
|||
#endif
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
setPinOutput(QMK_WAITING_TEST_BUSY_PIN);
|
||||
setPinOutput(QMK_WAITING_TEST_YIELD_PIN);
|
||||
gpio_set_pin_output(QMK_WAITING_TEST_BUSY_PIN);
|
||||
gpio_set_pin_output(QMK_WAITING_TEST_YIELD_PIN);
|
||||
}
|
||||
|
||||
static inline void wait_us_polling_with_strobe(uint32_t us) {
|
||||
writePinHigh(QMK_WAITING_TEST_BUSY_PIN);
|
||||
gpio_write_pin_high(QMK_WAITING_TEST_BUSY_PIN);
|
||||
wait_us(us);
|
||||
writePinLow(QMK_WAITING_TEST_BUSY_PIN);
|
||||
gpio_write_pin_low(QMK_WAITING_TEST_BUSY_PIN);
|
||||
}
|
||||
|
||||
static inline void wait_us_yield_with_strobe(uint32_t us) {
|
||||
writePinHigh(QMK_WAITING_TEST_YIELD_PIN);
|
||||
gpio_write_pin_high(QMK_WAITING_TEST_YIELD_PIN);
|
||||
chThdSleepMicroseconds(us);
|
||||
writePinLow(QMK_WAITING_TEST_YIELD_PIN);
|
||||
gpio_write_pin_low(QMK_WAITING_TEST_YIELD_PIN);
|
||||
}
|
||||
|
||||
static const uint32_t waiting_values[] = {0, 1, 5, 10, 25, 50, 100, 150, 200, 500, 1000};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue