From a7601395719543f3f105d7ccba90cd9ff6272c36 Mon Sep 17 00:00:00 2001 From: elratt0r Date: Fri, 17 Jan 2025 20:01:39 +0100 Subject: [PATCH 1/3] add missing include for registry_init --- clib/culfw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clib/culfw.c b/clib/culfw.c index d99a71b..b32cd55 100644 --- a/clib/culfw.c +++ b/clib/culfw.c @@ -10,6 +10,7 @@ #include "arch.h" #include "display.h" #include "fncollection.h" +#include "registry.h" #include "led.h" // ledfunc #include "ringbuffer.h" #include "rf_receive.h" From 6501d98923a674d18def7acbf856aaeba57f9bd1 Mon Sep 17 00:00:00 2001 From: elratt0r Date: Fri, 17 Jan 2025 20:10:25 +0100 Subject: [PATCH 2/3] add extern to cdc struct vars in usb.h --- clib/usb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clib/usb.h b/clib/usb.h index b6094cc..824b088 100644 --- a/clib/usb.h +++ b/clib/usb.h @@ -4,8 +4,8 @@ #include "Descriptors.h" #include -USB_ClassInfo_CDC_Device_t VirtualSerial1_CDC_Interface; -USB_ClassInfo_CDC_Device_t VirtualSerial2_CDC_Interface; +extern USB_ClassInfo_CDC_Device_t VirtualSerial1_CDC_Interface; +extern USB_ClassInfo_CDC_Device_t VirtualSerial2_CDC_Interface; void usb_init(void); void usb_task(void); From ae1bc001fd57b32d41d201f5fa09686573cb314a Mon Sep 17 00:00:00 2001 From: elratt0r Date: Fri, 17 Jan 2025 20:15:15 +0100 Subject: [PATCH 3/3] add extern to input/output flush func --- clib/ttydata.c | 1 + clib/ttydata.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clib/ttydata.c b/clib/ttydata.c index 8d60d58..fba8889 100644 --- a/clib/ttydata.c +++ b/clib/ttydata.c @@ -3,6 +3,7 @@ #include void (*input_handle_func)(uint8_t channel); +void (*output_flush_func)(void); rb_t TTY_Tx_Buffer; rb_t TTY_Rx_Buffer; diff --git a/clib/ttydata.h b/clib/ttydata.h index f38bd8a..0ca2111 100644 --- a/clib/ttydata.h +++ b/clib/ttydata.h @@ -11,8 +11,8 @@ typedef struct _fntab { void analyze_ttydata(uint8_t channel); uint8_t callfn(char *buf); -void (*input_handle_func)(uint8_t channel); -void (*output_flush_func)(void); +extern void (*input_handle_func)(uint8_t channel); +extern void (*output_flush_func)(void); extern rb_t TTY_Tx_Buffer; extern rb_t TTY_Rx_Buffer;