From 546a5ccdba66dd8d8c19ce6d8486f46c84637cf2 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sat, 7 Dec 2024 13:58:46 -0700 Subject: Add way to toggle the default pattern and a way to switch the pattern. --- include/sysled.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/sysled.h') diff --git a/include/sysled.h b/include/sysled.h index b1a21c1..fea8f54 100644 --- a/include/sysled.h +++ b/include/sysled.h @@ -6,12 +6,12 @@ static inline void enable_sysled() { - CH573_GPIO__GPIO_PORT_T_INTF.dir.set(ch573_gpio__gpio_port_b, DIR_OUT, 10); - CH573_GPIO__GPIO_PORT_T_INTF.pd_drv.set(ch573_gpio__gpio_port_b, 1, 10); + CH573_GPIO__GPIO_PORT_T_INTF.dir.set(ch573_gpio__gpio_port_a, DIR_OUT, 11); + CH573_GPIO__GPIO_PORT_T_INTF.pd_drv.set(ch573_gpio__gpio_port_a, 1, 11); } static inline void set_sysled(int on) { CH573_GPIO__GPIO_PORT_T_INTF.out.set( - ch573_gpio__gpio_port_b, on ? ON : OFF, 10); + ch573_gpio__gpio_port_a, on ? ON : OFF, 11); } -- cgit