mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
muted act led
This commit is contained in:
@@ -120,7 +120,8 @@ static void _timeout_handler(void) {
|
|||||||
|
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
ph_debug_init(false); // No UART
|
//ph_debug_act_init();
|
||||||
|
//ph_debug_uart_init();
|
||||||
ph_outputs_init();
|
ph_outputs_init();
|
||||||
ph_usb_init();
|
ph_usb_init();
|
||||||
|
|
||||||
@@ -135,7 +136,7 @@ int main(void) {
|
|||||||
ph_usb_task();
|
ph_usb_task();
|
||||||
if (!_reset_required) {
|
if (!_reset_required) {
|
||||||
_COMM(task);
|
_COMM(task);
|
||||||
ph_debug_act_pulse(100);
|
//ph_debug_act_pulse(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -33,10 +33,11 @@
|
|||||||
#define _ACT_PIN 25
|
#define _ACT_PIN 25
|
||||||
|
|
||||||
|
|
||||||
void ph_debug_init(bool enable_uart) {
|
void ph_debug_uart_init(void) {
|
||||||
if (enable_uart) {
|
stdio_uart_init_full(_UART, _SPEED, _TX_PIN, _RX_PIN);
|
||||||
stdio_uart_init_full(_UART, _SPEED, _TX_PIN, _RX_PIN);
|
}
|
||||||
}
|
|
||||||
|
void ph_debug_act_init(void) {
|
||||||
gpio_init(_ACT_PIN);
|
gpio_init(_ACT_PIN);
|
||||||
gpio_set_dir(_ACT_PIN, GPIO_OUT);
|
gpio_set_dir(_ACT_PIN, GPIO_OUT);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include "ph_types.h"
|
#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(bool flag);
|
||||||
void ph_debug_act_pulse(u64 delay_ms);
|
void ph_debug_act_pulse(u64 delay_ms);
|
||||||
|
|||||||
Reference in New Issue
Block a user