Dirk O. Kaar
c312a2eaf1
Implement esp_yield() as a replacement for delay(0)
...
esp_yield() now also calls esp_schedule(), original esp_yield() function renamed to esp_suspend().
Don't use delay(0) in the Core internals, libraries and examples. Use yield() when the code is
supposed to be called from CONT, use esp_yield() when the code can be called from either CONT or SYS.
Clean-up esp_yield() and esp_schedule() declarations across the code and use coredecls.h instead.
Implement helper functions for libraries that were previously using esp_yield(), esp_schedule() and
esp_delay() directly to wait for certain SYS context tasks to complete. Correctly use esp_delay()
for timeouts, make sure scheduled functions have a chance to run (e.g. LwIP_Ethernet uses recurrent)
Related issues:
- #6107 - discussion about the esp_yield() and esp_delay() usage in ClientContext
- #6212 - discussion about replacing delay() with a blocking loop
- #6680 - pull request introducing LwIP-based Ethernet
- #7146 - discussion that originated UART code changes
- #7969 - proposal to remove delay(0) from the example code
- #8291 - discussion related to the run_scheduled_recurrent_functions() usage in LwIP Ethernet
- #8317 - yieldUntil() implementation, similar to the esp_delay() overload with a timeout and a 0 interval
2021-10-17 00:19:01 +03:00
..
2019-11-02 02:48:23 +01:00
2019-10-31 13:18:36 -07:00
2021-05-23 08:53:04 -07:00
2021-05-23 08:53:04 -07:00
2020-10-06 16:18:00 +02:00
2020-07-09 09:59:49 -07:00
2021-01-13 15:43:55 -08:00
2021-01-26 23:56:43 -08:00
2019-10-31 13:18:36 -07:00
2021-03-14 17:24:33 -07:00
2019-05-14 00:09:54 +02:00
2021-05-23 08:53:04 -07:00
2021-03-14 16:56:47 -07:00
2019-05-14 00:09:54 +02:00
2021-03-14 17:36:20 -07:00
2021-10-17 00:19:01 +03:00
2021-10-17 00:19:01 +03:00
2021-10-17 00:19:01 +03:00
2021-07-19 07:58:37 -07:00
2019-09-05 03:01:01 +02:00
2020-07-07 11:12:43 -07:00
2021-04-22 14:02:54 -07:00
2020-04-23 12:15:21 -04:00
2019-05-14 00:09:54 +02:00
2021-05-23 08:53:04 -07:00
2021-06-09 09:55:27 -07:00
2021-10-17 00:19:01 +03:00
2021-03-14 18:44:02 -07:00
2021-03-14 18:44:02 -07:00
2021-05-23 08:53:04 -07:00
2021-05-23 08:53:04 -07:00
2021-10-17 00:19:01 +03:00
2021-03-14 16:56:47 -07:00
2019-05-14 00:09:54 +02:00
2021-05-23 08:53:04 -07:00
2021-03-14 16:56:47 -07:00
2021-05-23 08:53:04 -07:00
2021-03-15 03:00:39 -07:00
2021-03-14 18:44:02 -07:00
2021-10-17 00:19:01 +03:00
2021-10-17 00:19:01 +03:00
2021-04-22 14:02:54 -07:00
2021-01-07 21:14:14 -08:00
2021-03-14 16:56:47 -07:00
2019-05-14 00:09:54 +02:00
2021-01-26 23:56:43 -08:00
2019-05-14 00:09:54 +02:00
2021-10-17 00:19:01 +03:00
2021-06-16 15:51:17 +02:00
2021-10-17 00:19:01 +03:00
2019-12-20 14:38:35 -08:00
2020-08-03 18:03:23 -07:00
2020-05-18 13:54:25 -04:00
2021-05-18 15:43:27 +02:00
2021-03-14 17:36:20 -07:00
2019-05-14 00:09:54 +02:00
2021-05-23 08:53:04 -07:00
2021-07-08 16:11:58 -07:00
2021-03-14 17:36:20 -07:00
2021-05-23 08:53:04 -07:00
2020-07-09 09:59:49 -07:00
2021-10-17 00:19:01 +03:00
2021-05-23 08:53:04 -07:00
2021-01-12 22:51:26 +01:00
2021-05-23 08:53:04 -07:00
2020-10-14 22:21:41 -07:00
2019-05-25 09:53:24 +02:00
2020-04-23 12:15:21 -04:00
2019-05-14 00:09:54 +02:00
2021-03-14 17:36:20 -07:00
2021-03-14 17:36:20 -07:00
2021-03-14 17:36:20 -07:00
2021-05-23 08:53:04 -07:00
2021-03-14 16:56:47 -07:00
2020-08-24 09:51:58 +02:00
2021-03-14 16:56:47 -07:00
2021-05-23 08:53:04 -07:00
2021-10-17 00:19:01 +03:00
2021-09-29 15:22:30 +02:00
2021-05-23 08:53:04 -07:00
2021-10-17 00:19:01 +03:00
2021-04-08 01:35:49 +02:00
2021-05-23 08:53:04 -07:00
2020-09-09 12:24:35 +02:00
2020-09-25 11:12:39 +02:00
2021-03-14 16:56:47 -07:00
2021-05-23 08:53:04 -07:00
2021-05-23 08:53:04 -07:00
2020-12-22 22:36:21 +01:00
2021-03-02 17:32:34 -08:00
2021-03-02 17:32:34 -08:00
2020-12-22 22:36:21 +01:00
2021-06-18 11:21:07 +02:00
2019-05-14 00:09:54 +02:00
2020-04-11 14:02:38 -04:00
2020-04-11 14:02:38 -04:00
2021-05-23 08:53:04 -07:00
2021-10-13 03:47:12 +03:00
2021-07-26 22:27:44 +02:00
2021-10-17 00:19:01 +03:00
2021-03-14 17:36:20 -07:00
2021-09-29 15:22:30 +02:00
2019-05-14 00:09:54 +02:00
2021-07-08 16:11:58 -07:00
2021-02-17 08:25:52 -08:00
2021-10-17 00:19:01 +03:00
2020-10-15 21:09:14 +02:00
2019-05-14 00:09:54 +02:00
2019-05-14 00:09:54 +02:00
2020-04-23 12:15:21 -04:00
2019-11-04 23:14:35 -03:00
2020-04-23 12:15:21 -04:00
2020-05-04 14:22:50 -04:00
2021-03-14 17:36:20 -07:00
2019-05-14 00:09:54 +02:00
2020-12-06 14:15:42 +01:00
2020-07-07 11:12:43 -07:00
2021-05-23 08:53:04 -07:00
2021-05-23 08:53:04 -07:00
2021-05-23 08:53:04 -07:00
2021-05-23 08:53:04 -07:00
2021-03-25 16:00:41 +01:00
2021-04-27 16:02:19 +02:00
2021-05-23 08:53:04 -07:00
2021-10-17 00:19:01 +03:00
2021-01-17 15:57:26 -08:00
2019-05-14 00:09:54 +02:00
2019-10-14 14:32:41 -07:00
2020-04-29 10:30:26 -04:00
2020-04-29 10:30:26 -04:00
2021-07-26 22:27:44 +02:00
2021-10-17 00:19:01 +03:00
2021-03-28 22:31:52 +02:00
2020-07-09 09:59:49 -07:00
2018-12-02 19:57:47 -08:00
2021-05-23 08:53:04 -07:00
2021-05-23 08:53:04 -07:00
2014-12-01 00:34:28 +03:00
2019-05-14 00:09:54 +02:00
2020-03-22 13:16:39 +01:00
2020-12-22 22:36:21 +01:00
2021-06-02 23:42:31 +02:00
2021-09-04 11:43:18 -07:00
2021-09-04 11:43:18 -07:00
2021-05-23 08:53:04 -07:00