mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
muted act led
This commit is contained in:
parent
a10c45a1c1
commit
ef8fee5f9c
@ -120,7 +120,8 @@ static void _timeout_handler(void) {
|
||||
|
||||
|
||||
int main(void) {
|
||||
ph_debug_init(false); // No UART
|
||||
//ph_debug_act_init();
|
||||
//ph_debug_uart_init();
|
||||
ph_outputs_init();
|
||||
ph_usb_init();
|
||||
|
||||
@ -135,7 +136,7 @@ int main(void) {
|
||||
ph_usb_task();
|
||||
if (!_reset_required) {
|
||||
_COMM(task);
|
||||
ph_debug_act_pulse(100);
|
||||
//ph_debug_act_pulse(100);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
@ -33,10 +33,11 @@
|
||||
#define _ACT_PIN 25
|
||||
|
||||
|
||||
void ph_debug_init(bool enable_uart) {
|
||||
if (enable_uart) {
|
||||
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);
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@
|
||||
#include "ph_types.h"
|
||||
|
||||
|
||||
void ph_debug_init(bool enable_uart);
|
||||
void ph_debug_uart_init();
|
||||
void ph_debug_act_init();
|
||||
void ph_debug_act(bool flag);
|
||||
void ph_debug_act_pulse(u64 delay_ms);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user