diff options
| author | Shell <[email protected]> | 2024-08-15 21:30:58 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-08-19 10:39:15 +0800 |
| commit | c451dce8203fb2616d6ec4634db1f4a7b766680c (patch) | |
| tree | 61f814df3b2e19cd7a5560253e73cd75159dd60d /components/drivers/i2c/SConscript | |
| parent | d87f30cf21c74b380ec394fd896c1dcea5a2968b (diff) | |
feat: add ISR safe completion API
Since the completion is used to sync with ISR mostly, we should set the
default semantic to ISR-safe. So most user will be happy and don't see
any weird behavior in their codes.
Changes:
- Added `rt_completion_wait_noisr` and
`rt_completion_wait_flags_noisr` functions in `completion.h`,
`completion_comm.c`, `completion_mp.c`, and `completion_up.c`.
- The new APIs allow waiting for completions in non-ISR contexts
while ensuring thread context safety.
- Existing documentation and comments were updated to clarify
usage contexts and emphasize restrictions on ISR usage.
Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'components/drivers/i2c/SConscript')
0 files changed, 0 insertions, 0 deletions
