mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2026-05-23 08:04:44 +01:00
Update GPIO macro usages in core (#23093)
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user