Skip to content

Commit

Permalink
Added get_temp function
Browse files Browse the repository at this point in the history
  • Loading branch information
protocentralashwin committed Nov 5, 2024
1 parent 24d53d2 commit 92f8185
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/hw_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions app/src/hw_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 92f8185

Please sign in to comment.