summaryrefslogtreecommitdiff
path: root/hid/pico/src/ph_debug.c
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-08-07 00:13:48 +0300
committerMaxim Devaev <[email protected]>2023-08-07 00:13:48 +0300
commitef8fee5f9ca1496717f3a97663939d3f8b533b83 (patch)
tree8baff0c230be1f3885bd4253b2af9e8e9b8e40d6 /hid/pico/src/ph_debug.c
parenta10c45a1c1857508e5349ea1ff5b267b0b6f77e6 (diff)
muted act led
Diffstat (limited to 'hid/pico/src/ph_debug.c')
-rw-r--r--hid/pico/src/ph_debug.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/hid/pico/src/ph_debug.c b/hid/pico/src/ph_debug.c
index 79eb64a3..ee497a31 100644
--- a/hid/pico/src/ph_debug.c
+++ b/hid/pico/src/ph_debug.c
@@ -33,10 +33,11 @@
#define _ACT_PIN 25
-void ph_debug_init(bool enable_uart) {
- if (enable_uart) {
- stdio_uart_init_full(_UART, _SPEED, _TX_PIN, _RX_PIN);
- }
+void ph_debug_uart_init(void) {
+ stdio_uart_init_full(_UART, _SPEED, _TX_PIN, _RX_PIN);
+}
+
+void ph_debug_act_init(void) {
gpio_init(_ACT_PIN);
gpio_set_dir(_ACT_PIN, GPIO_OUT);
}