mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
touch: change iface num to 255
This commit is contained in:
parent
50c100bf34
commit
fb398d07cb
@ -401,7 +401,7 @@ STATIC mp_obj_t mod_TrezorMsg_Msg_send(mp_obj_t self, mp_obj_t iface, mp_obj_t m
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_3(mod_TrezorMsg_Msg_send_obj, mod_TrezorMsg_Msg_send);
|
||||
|
||||
#define TICK_RESOLUTION 1000
|
||||
#define TOUCH_IFACE 0
|
||||
#define TOUCH_IFACE 255
|
||||
extern uint32_t touch_read(void); // defined in HAL
|
||||
|
||||
/// def trezor.msg.select(timeout_us: int) -> tuple:
|
||||
|
@ -14,11 +14,7 @@ from micropython import const
|
||||
from trezor import msg
|
||||
from trezor import log
|
||||
|
||||
# message interfaces:
|
||||
# 0x0000 - touch event interface
|
||||
# 0x0001 - 0xFFFF - USB HID
|
||||
|
||||
TOUCH = const(0) # interface
|
||||
TOUCH = const(255) # interface
|
||||
TOUCH_START = const(1) # event
|
||||
TOUCH_MOVE = const(2) # event
|
||||
TOUCH_END = const(4) # event
|
||||
|
Loading…
Reference in New Issue
Block a user