File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ they should have the last argument be a callback function pointer.
236
236
returncode_t libtock_[name]_[desc](<arguments>, libtock_[name]_callback_[desc] cb);
237
237
```
238
238
239
- ### Example
239
+ ### Example:
240
240
241
241
242
242
For example, a library called "sensor" with a sensor read operation should look
@@ -294,7 +294,7 @@ application upcall will run until the synchronous API has finished.
294
294
| Source File Name | `libtock-sync/[category]/syscalls/[name]_syscalls.c` |
295
295
| Header File Name | `libtock-sync/[category]/syscalls/[name]_syscalls.h` |
296
296
297
- ### Header File
297
+ ### Synchronous Syscall Header File
298
298
299
299
The `[name]_syscalls.h` must be wrapped in `extern "C" { ... }` if the header
300
300
file is used in a C++ app.
@@ -354,7 +354,7 @@ returncode_t libtocksync_[name]_yield_wait_for(int* value) {
354
354
}
355
355
```
356
356
357
- ### Synchronous APIs
357
+ ### Synchronous Operations
358
358
359
359
The asynchronous operations should have matching synchronous versions using
360
360
Yield-WaitFor internally.
@@ -365,7 +365,7 @@ Yield-WaitFor internally.
365
365
| Source File Name | ` libtock-sync/[category]/[name].c ` |
366
366
| Header File Name | ` libtock-sync/[category]/[name].h ` |
367
367
368
- ### Header Files
368
+ ### Synchronous Operation Header Files
369
369
370
370
The libtock-sync ` [name].h ` header file must look like:
371
371
@@ -386,7 +386,7 @@ extern "C" {
386
386
#endif
387
387
```
388
388
389
- ### Synchronous APIs
389
+ ### Example:
390
390
391
391
For our sensor example:
392
392
You can’t perform that action at this time.
0 commit comments