-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d08a50
commit 346b146
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Programmers Guide | ||
|
||
WIP | ||
|
||
## Raw API | ||
|
||
Valid for Pico-SDK / ESP-IDF | ||
|
||
From [BTstack documentation][btstack_multithreading] | ||
|
||
> BTstack is not thread-safe, but you're using a multi-threading OS. | ||
> Any function that is called from BTstack, e.g., packet handlers, can directly call into BTstack without issues. | ||
> For other situations, you need to provide some general 'do BTstack tasks' function and trigger BTstack to execute | ||
> it on its own thread. To call a function from the BTstack thread, you can use `btstack_run_loop_execute_on_main_thread()` | ||
> allows to directly schedule a function callback, i.e. 'do BTstack tasks' function, from the BTstack thread. | ||
> The called function should check if there are any pending BTstack tasks and execute them. | ||
[btstack_multithreading]: https://github.com/bluekitchen/btstack/blob/master/port/esp32/README.md#multi-threading | ||
|
||
## Arduino | ||
|
||
## CircuitPython |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters