From e78d3e03ec91e67e3b3b7c6397d1231a186a0b55 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 24 Aug 2023 12:56:13 +0300 Subject: pico hid: refactoring --- hid/pico/src/ph_com_uart.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hid/pico/src/ph_com_uart.h (limited to 'hid/pico/src/ph_com_uart.h') diff --git a/hid/pico/src/ph_com_uart.h b/hid/pico/src/ph_com_uart.h new file mode 100644 index 00000000..11e372da --- /dev/null +++ b/hid/pico/src/ph_com_uart.h @@ -0,0 +1,30 @@ +/***************************************************************************** +# # +# KVMD - The main PiKVM daemon. # +# # +# Copyright (C) 2018-2023 Maxim Devaev # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +*****************************************************************************/ + + +#pragma once + +#include "ph_types.h" + + +void ph_com_uart_init(void (*data_cb)(const u8 *), void (*timeout_cb)(void)); +void ph_com_uart_task(void); +void ph_com_uart_write(const u8 *data); -- cgit v1.2.3