diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-01-13 12:10:00 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-01-13 12:10:00 -0500 |
commit | 9a44a20a9d25f7e5d38ff943fbbd51d0f305ce3f (patch) | |
tree | 0772b124becf45b6561db108bcec0e93953209a8 /docs | |
parent | f335045273401d89977b663eab9b96d62e5e2bbb (diff) | |
download | kutter-9a44a20a9d25f7e5d38ff943fbbd51d0f305ce3f.tar.gz kutter-9a44a20a9d25f7e5d38ff943fbbd51d0f305ce3f.tar.xz kutter-9a44a20a9d25f7e5d38ff943fbbd51d0f305ce3f.zip |
command: Check for reentrant calls to sendf()
Allow sendf() to be called from irq and timer context - check for the
case where sendf() is called while already in sendf() and simply
discard those messages. This makes it safe to use output() debugging
calls even in irq and timer context.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Protocol.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/docs/Protocol.md b/docs/Protocol.md index 5c375e30..39b81a8a 100644 --- a/docs/Protocol.md +++ b/docs/Protocol.md @@ -105,9 +105,7 @@ output("The value of %u is %s with size %u.", x, buf, buf_len); ``` The output() function is similar in usage to printf() - it is intended -to generate and format arbitrary messages for human consumption. It is -a wrapper around sendf() and as with sendf() it should not be called -from interrupts or timers. +to generate and format arbitrary messages for human consumption. Declaring constants ------------------- |