Tricks to get faster function calls? #15483
Unanswered
fasaxc
asked this question in
Using MicroPython
Replies: 1 comment 1 reply
-
Maybe you already tried this, but on some microcontrollers you can change hardware device registers of the PWM directly. With Viper, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing an ISR using viper and I need to poke at some registers from the ISR. The nice way to do that is to call C-implemented API functions (for example
PWM.duty_u16()
) but it seems the function call overhead is pretty big: 8-10us. If I inline the function (just directly set registers in the ISR then it's well under 1us).I was wondering if there are any tricks to get faster function calls so I can avoid reinventing the wheel?
Beta Was this translation helpful? Give feedback.
All reactions