1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

chore(core): remove button state syscalls

[no changelog]
This commit is contained in:
tychovrahe 2024-10-01 11:58:29 +02:00 committed by cepetr
parent f822074047
commit 5575fce461
3 changed files with 0 additions and 15 deletions

View File

@ -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: {

View File

@ -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,

View File

@ -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
// =============================================================================