From 5575fce461e00d3d71994000fa26dee87748e4db Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 1 Oct 2024 11:58:29 +0200 Subject: [PATCH] chore(core): remove button state syscalls [no changelog] --- core/embed/trezorhal/stm32f4/syscall_dispatch.c | 6 ------ core/embed/trezorhal/stm32f4/syscall_numbers.h | 2 -- core/embed/trezorhal/stm32f4/syscall_stubs.c | 7 ------- 3 files changed, 15 deletions(-) diff --git a/core/embed/trezorhal/stm32f4/syscall_dispatch.c b/core/embed/trezorhal/stm32f4/syscall_dispatch.c index 49707a3fab..119b36e40b 100644 --- a/core/embed/trezorhal/stm32f4/syscall_dispatch.c +++ b/core/embed/trezorhal/stm32f4/syscall_dispatch.c @@ -316,12 +316,6 @@ __attribute((no_stack_protector)) void syscall_handler(uint32_t *args, case SYSCALL_BUTTON_READ: { args[0] = button_read(); } break; - case SYSCALL_BUTTON_STATE_LEFT: { - args[0] = button_state_left(); - } break; - case SYSCALL_BUTTON_STATE_RIGHT: { - args[0] = button_state_right(); - } break; #endif #ifdef USE_TOUCH case SYSCALL_TOUCH_GET_EVENT: { diff --git a/core/embed/trezorhal/stm32f4/syscall_numbers.h b/core/embed/trezorhal/stm32f4/syscall_numbers.h index f5789014f9..0e6138bc9d 100644 --- a/core/embed/trezorhal/stm32f4/syscall_numbers.h +++ b/core/embed/trezorhal/stm32f4/syscall_numbers.h @@ -98,8 +98,6 @@ typedef enum { SYSCALL_SECRET_BOOTLOADER_LOCKED, SYSCALL_BUTTON_READ, - SYSCALL_BUTTON_STATE_LEFT, - SYSCALL_BUTTON_STATE_RIGHT, SYSCALL_TOUCH_GET_EVENT, diff --git a/core/embed/trezorhal/stm32f4/syscall_stubs.c b/core/embed/trezorhal/stm32f4/syscall_stubs.c index 1fffa7f526..ddbdf92474 100644 --- a/core/embed/trezorhal/stm32f4/syscall_stubs.c +++ b/core/embed/trezorhal/stm32f4/syscall_stubs.c @@ -398,13 +398,6 @@ secbool secret_bootloader_locked(void) { uint32_t button_read(void) { return syscall_invoke0(SYSCALL_BUTTON_READ); } -char button_state_left(void) { - return (char)syscall_invoke0(SYSCALL_BUTTON_STATE_LEFT); -} -char button_state_right(void) { - return (char)syscall_invoke0(SYSCALL_BUTTON_STATE_RIGHT); -} - // ============================================================================= // touch.h // =============================================================================