muted act led

This commit is contained in:
Maxim Devaev 2023-08-07 00:13:48 +03:00
parent a10c45a1c1
commit ef8fee5f9c
3 changed files with 10 additions and 7 deletions

View File

@ -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;

View File

@ -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);
}

View File

@ -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);