Skip to content

Commit

Permalink
cpu/esp8266: doc fixes for esp_task thread
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Jan 5, 2019
1 parent a130889 commit 404297f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions cpu/esp8266/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -688,19 +688,19 @@ necessary, for example, if you want to use the built-in WLAN module. The
SDK is also used automatically when software timers are used by activating
the `esp_sw_timer` module.

Internally, the SDK uses its own priority-based multitasking, the **ETS**,
to handle hardware components such as the WiFi interface, or to implement
event-driven functions such as software timers. ETS periodically executes
all ETS tasks with pending events in an infinite loop with the ROM
Internally, the SDK uses its own priority-based multitasking sytsem,
the **ETS**, to handle hardware components such as the WiFi interface, or to
implement event-driven functions such as software timers. ETS periodically
executes all ETS tasks with pending events in an infinite loop with the ROM
function `ets_run`.

ETS doesn't process interrupts directly in interrupt service routines.
Instead, they use the `ets_post` ROM function to send an event to one of the
ETS tasks, which then processes the interrupts asynchronously. Context
switches are not possible in interrupt service routines.

To use SDK functions and keep the system alive, ETS tasks with pending have to
be handled. For that purpose
To use SDK functions and keep the system alive, ETS tasks with pending events
have to be handled. For that purpose

- the `ets_task_func` RIOT thread with highest possible priority is used
- the ROM functions `ets_run` and `ets_post` are overwritten.
Expand Down
12 changes: 6 additions & 6 deletions cpu/esp8266/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -693,19 +693,19 @@ necessary, for example, if you want to use the built-in WLAN module. The
SDK is also used automatically when software timers are used by activating
the `esp_sw_timer` module.

Internally, the SDK uses its own priority-based multitasking, the **ETS**,
to handle hardware components such as the WiFi interface, or to implement
event-driven functions such as software timers. ETS periodically executes
all ETS tasks with pending events in an infinite loop with the ROM
Internally, the SDK uses its own priority-based multitasking sytsem,
the **ETS**, to handle hardware components such as the WiFi interface, or to
implement event-driven functions such as software timers. ETS periodically
executes all ETS tasks with pending events in an infinite loop with the ROM
function `ets_run`.

ETS doesn't process interrupts directly in interrupt service routines.
Instead, they use the `ets_post` ROM function to send an event to one of the
ETS tasks, which then processes the interrupts asynchronously. Context
switches are not possible in interrupt service routines.

To use SDK functions and keep the system alive, ETS tasks with pending have to
be handled. For that purpose
To use SDK functions and keep the system alive, ETS tasks with pending events
have to be handled. For that purpose

- the `ets_task_func` RIOT thread with highest possible priority is used
- the ROM functions `ets_run` and `ets_post` are overwritten.
Expand Down
12 changes: 6 additions & 6 deletions cpu/esp8266/sdk/ets_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
*/

/*
* Internally, the SDK uses its own priority-based multitasking, the *ETS*,
* to handle hardware components such as the WiFi interface, or to implement
* event-driven functions such as software timers. ETS periodically executes
* all ETS tasks with pending events in an infinite loop with the ROM
* Internally, the SDK uses its own priority-based multitasking system,
* the *ETS*, to handle hardware components such as the WiFi interface, or to
* implement event-driven functions such as software timers. ETS periodically
* executes all ETS tasks with pending events in an infinite loop with the ROM
* function *ets_run*.
*
* ETS doesn't process interrupts directly in interrupt service routines.
* Instead, they use the *ets_post* ROM function to send an event to one of the
* ETS tasks, which then processes the interrupts asynchronously. Context
* switches are not possible in interrupt service routines.
*
* To use SDK functions and keep the system alive, ETS tasks with pending have
* to be handled. For that purpose
* To use SDK functions and keep the system alive, ETS tasks with pending
* events have to be handled. For that purpose
*
* - the *ets_task_func* RIOT thread with highest possible priority is used
* - the ROM functions *ets_run* and *ets_post* are overwritten.
Expand Down

0 comments on commit 404297f

Please sign in to comment.