You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to understand the benefits of C++ coroutines in the embedded domain so I decided to take my chances by asking here.
Example scenario 1: We have two inputs. We want to
call a function once
on the rising edge of an input
if the other input is currently high.
Example scenario 2: We have two inputs. We want to
call a function once
on the rising edge of an input (t0)
if the other input is high at least for the last 1 second and at most for 2 seconds now (t0 moment). (eg. will be discarded if it's high for the last 0.9 seconds or it's high for the last 2.1 seconds.)
This discussion was converted from issue #840 on July 14, 2022 07:46.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to understand the benefits of C++ coroutines in the embedded domain so I decided to take my chances by asking here.
Example scenario 1: We have two inputs. We want to
high
.Example scenario 2: We have two inputs. We want to
t0
)high
at least for the last 1 second and at most for 2 seconds now (t0
moment). (eg. will be discarded if it'shigh
for the last 0.9 seconds or it'shigh
for the last 2.1 seconds.)How would that code look like?
Beta Was this translation helpful? Give feedback.
All reactions