1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-04 11:51:50 +00:00

chore(vendor): bump micropython to 1.14

Relevant micropython commits:
  4559bcb4679e04e0a5e24030675676ff6a9803f2 unix: Make mp_hal_delay_ms run MICROPY_EVENT_POLL_HOOK.
This commit is contained in:
Pavol Rusnak 2021-03-26 11:28:43 +01:00 committed by matejcik
parent 23ce8a46f3
commit d153082c9c
2 changed files with 12 additions and 2 deletions

View File

@ -188,7 +188,12 @@ typedef long mp_off_t;
#define MICROPY_BEGIN_ATOMIC_SECTION() disable_irq() #define MICROPY_BEGIN_ATOMIC_SECTION() disable_irq()
#define MICROPY_END_ATOMIC_SECTION(state) enable_irq(state) #define MICROPY_END_ATOMIC_SECTION(state) enable_irq(state)
#define MICROPY_EVENT_POLL_HOOK __WFI(); #define MICROPY_EVENT_POLL_HOOK \
do { \
extern void mp_handle_pending(bool); \
mp_handle_pending(true); \
__WFI(); \
} while (0);
#define MICROPY_HW_BOARD_NAME "TREZORv2" #define MICROPY_HW_BOARD_NAME "TREZORv2"
#define MICROPY_HW_MCU_NAME "STM32F427xx" #define MICROPY_HW_MCU_NAME "STM32F427xx"

View File

@ -228,7 +228,12 @@ typedef unsigned int mp_uint_t; // must be pointer size
#endif #endif
#endif #endif
#define MICROPY_EVENT_POLL_HOOK mp_hal_delay_ms(1); #define MICROPY_EVENT_POLL_HOOK \
do { \
extern void mp_handle_pending(bool); \
mp_handle_pending(true); \
mp_hal_delay_us(500); \
} while (0);
// Cannot include <sys/types.h>, as it may lead to symbol name clashes // Cannot include <sys/types.h>, as it may lead to symbol name clashes
#if _FILE_OFFSET_BITS == 64 && !defined(__LP64__) #if _FILE_OFFSET_BITS == 64 && !defined(__LP64__)