diff options
| author | Damien George | 2015-01-07 23:38:50 +0000 |
|---|---|---|
| committer | Damien George | 2015-01-07 23:38:50 +0000 |
| commit | 3b51b3e90f1d513031ad2c6b6a2a0d5d391f753d (patch) | |
| tree | 6903d1a13bdc49860c325e531e81582beb6063bf /stmhal/extint.h | |
| parent | 7a0636e80aea2ce1af03c890e024dabcdffcdf78 (diff) | |
stmhal: Collect all root pointers together in 1 place.
A GC in stmhal port now only scans true root pointers, not entire BSS.
This reduces base GC time from 1700ms to 900ms.
Diffstat (limited to 'stmhal/extint.h')
| -rw-r--r-- | stmhal/extint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/extint.h b/stmhal/extint.h index cae23959c..6eb213741 100644 --- a/stmhal/extint.h +++ b/stmhal/extint.h @@ -37,7 +37,7 @@ #define EXTI_RTC_TIMESTAMP (21) #define EXTI_RTC_WAKEUP (22) -#define EXTI_NUM_VECTORS (23) +#define EXTI_NUM_VECTORS (PYB_EXTI_NUM_VECTORS) #define EXTI_MODE_INTERRUPT (offsetof(EXTI_TypeDef, IMR)) #define EXTI_MODE_EVENT (offsetof(EXTI_TypeDef, EMR)) @@ -48,7 +48,7 @@ void extint_init0(void); -uint extint_register(mp_obj_t pin_obj, uint32_t mode, uint32_t pull, mp_obj_t callback_obj, bool override_callback_obj, void *param); +uint extint_register(mp_obj_t pin_obj, uint32_t mode, uint32_t pull, mp_obj_t callback_obj, bool override_callback_obj); void extint_enable(uint line); void extint_disable(uint line); |
