diff --git a/include/syscalls.h b/include/syscalls.h index 95be10350..128615f10 100644 --- a/include/syscalls.h +++ b/include/syscalls.h @@ -297,6 +297,7 @@ #define SYSCALL_nbgl_get_font_ID 0x01fa000c #define SYSCALL_nbgl_screen_reinit_ID 0x00fa000d #define SYSCALL_nbgl_front_draw_img_rle_ID 0x05fa0010 +#define SYSCALL_nbgl_screen_update_temperature_ID 0x01fa0011 #endif #ifdef HAVE_BACKGROUND_IMG diff --git a/lib_nbgl/include/nbgl_screen.h b/lib_nbgl/include/nbgl_screen.h index 4081696be..3c67101eb 100644 --- a/lib_nbgl/include/nbgl_screen.h +++ b/lib_nbgl/include/nbgl_screen.h @@ -58,7 +58,10 @@ typedef struct PACKED__ nbgl_screen_s { /********************** * GLOBAL PROTOTYPES **********************/ + unsigned int nbgl_screen_reinit(void); +void nbgl_screen_update_temperature(uint8_t temp_degrees); + void nbgl_screenRedraw(void); nbgl_obj_t *nbgl_screenGetTop(void); uint8_t nbgl_screenGetCurrentStackSize(void); diff --git a/src/syscalls.c b/src/syscalls.c index 58c76f5dc..659b159ec 100644 --- a/src/syscalls.c +++ b/src/syscalls.c @@ -166,6 +166,15 @@ unsigned int nbgl_screen_reinit(void) parameters[0] = 0; return SVC_Call(SYSCALL_nbgl_screen_reinit_ID, parameters); } + +void nbgl_screen_update_temperature(uint8_t temp_degrees) +{ + unsigned int parameters[1]; + parameters[0] = (unsigned int) temp_degrees; + SVC_Call(SYSCALL_nbgl_screen_update_temperature_ID, parameters); + return; +} + #endif void nvm_write ( void * dst_adr, void * src_adr, unsigned int src_len ) {