implement USB console

This commit is contained in:
Joey Castillo
2021-08-28 13:35:52 -04:00
parent 39a5c822a2
commit 3e45de7dea
9 changed files with 356 additions and 2 deletions

View File

@@ -27,6 +27,12 @@
gpio_set_pin_function(pin, GPIO_PIN_FUNCTION_OFF);
}
void watch_disable_digital_input(const uint8_t pin) {
gpio_set_pin_direction(pin, GPIO_DIRECTION_OFF);
gpio_set_pin_pull_mode(pin, GPIO_PULL_OFF);
gpio_set_pin_function(pin, GPIO_PIN_FUNCTION_OFF);
}
void watch_enable_pull_up(const uint8_t pin) {
gpio_set_pin_pull_mode(pin, GPIO_PULL_UP);
}