implement USB console
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user