From 92f818500917a7315dd1598076b80c427073c7b7 Mon Sep 17 00:00:00 2001 From: Ashwin K Whitchurch Date: Tue, 5 Nov 2024 15:47:39 +0530 Subject: [PATCH] Added get_temp function --- app/src/hw_module.c | 5 +++++ app/src/hw_module.h | 1 + 2 files changed, 6 insertions(+) diff --git a/app/src/hw_module.c b/app/src/hw_module.c index e944354..94511f9 100644 --- a/app/src/hw_module.c +++ b/app/src/hw_module.c @@ -223,6 +223,11 @@ static void usb_init() printk("\nUSB Init complete\n\n"); } +int16_t hpi_get_global_temp(void) +{ + return global_temp_val; +} + int16_t hpi_hw_read_temp(void) { int ret = 0; diff --git a/app/src/hw_module.h b/app/src/hw_module.h index 0776a9f..8115b19 100644 --- a/app/src/hw_module.h +++ b/app/src/hw_module.h @@ -2,6 +2,7 @@ #define hw_module_h int16_t hpi_hw_read_temp(void); +int16_t hpi_get_global_temp(void); void send_usb_cdc(const char *buf, size_t len);