@@ -228,13 +228,17 @@ class Task : public espp::BaseComponent {
228
228
* @brief Start the task watchdog for this task.
229
229
* @return true if the watchdog was started, false otherwise.
230
230
* @note This function is only available on ESP
231
+ * @note This function will do nothing unless CONFIG_ESP_TASK_WDT_EN is
232
+ * enabled in the menuconfig. Default is y (enabled).
231
233
*/
232
234
bool start_watchdog ();
233
235
234
236
/* *
235
237
* @brief Stop the task watchdog for this task.
236
238
* @return true if the watchdog was stopped, false otherwise.
237
239
* @note This function is only available on ESP
240
+ * @note This function will do nothing unless CONFIG_ESP_TASK_WDT_EN is
241
+ * enabled in the menuconfig. Default is y (enabled).
238
242
*/
239
243
bool stop_watchdog ();
240
244
@@ -244,6 +248,8 @@ class Task : public espp::BaseComponent {
244
248
* @param panic_on_timeout Whether or not to panic on timeout.
245
249
* @return true if the watchdog was initialized, false otherwise.
246
250
* @note This function is only available on ESP
251
+ * @note This function will do nothing unless CONFIG_ESP_TASK_WDT_EN is
252
+ * enabled in the menuconfig. Default is y (enabled).
247
253
* @note This function will not monitor the idle tasks.
248
254
* @note If the watchdog has not been configured, then this function will call
249
255
* `esp_task_wdt_init`, otherwise it will then call
@@ -257,6 +263,8 @@ class Task : public espp::BaseComponent {
257
263
* @param panic_on_timeout Whether or not to panic on timeout.
258
264
* @return true if the watchdog was initialized, false otherwise.
259
265
* @note This function is only available on ESP
266
+ * @note This function will do nothing unless CONFIG_ESP_TASK_WDT_EN is
267
+ * enabled in the menuconfig. Default is y (enabled).
260
268
* @note This function will not monitor the idle tasks.
261
269
* @note If the watchdog has not been configured, then this function will call
262
270
* `esp_task_wdt_init`, otherwise it will then call
@@ -272,6 +280,8 @@ class Task : public espp::BaseComponent {
272
280
* @return std::string containing the task watchdog info, or an empty string
273
281
* if there was no timeout or there was an error retrieving the info.
274
282
* @note This function is only available on ESP
283
+ * @note This function will do nothing unless CONFIG_ESP_TASK_WDT_EN is
284
+ * enabled in the menuconfig. Default is y (enabled).
275
285
* @note This function will only return info for tasks which are still
276
286
* registered with the watchdog. If you call this after you have called
277
287
* stop_watchdog() for a task, then even if the task triggered the
@@ -295,7 +305,7 @@ class Task : public espp::BaseComponent {
295
305
* @note This function is only available on ESP
296
306
*/
297
307
static std::string get_info (const Task &task);
298
- #endif
308
+ #endif // ESP_PLATFORM
299
309
300
310
/* *
301
311
* @brief Get the ID for this Task's thread / task context.
0 commit comments