2015-10-02 17:43:18 -06:00
|
|
|
/****************************************************************************
|
2014-08-08 14:21:48 -06:00
|
|
|
* sched/wdog/wd_initialize.c
|
2007-02-17 23:21:28 +00:00
|
|
|
*
|
2024-09-11 13:45:11 +02:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
2020-03-11 13:51:28 -06:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2007-02-17 23:21:28 +00:00
|
|
|
*
|
2020-03-11 13:51:28 -06:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2007-02-17 23:21:28 +00:00
|
|
|
*
|
2020-03-11 13:51:28 -06:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2007-02-17 23:21:28 +00:00
|
|
|
*
|
2015-10-02 17:43:18 -06:00
|
|
|
****************************************************************************/
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2015-10-02 17:43:18 -06:00
|
|
|
/****************************************************************************
|
2007-02-17 23:21:28 +00:00
|
|
|
* Included Files
|
2015-10-02 17:43:18 -06:00
|
|
|
****************************************************************************/
|
2009-12-14 18:39:29 +00:00
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2024-06-11 23:23:44 +08:00
|
|
|
#include <nuttx/list.h>
|
2009-12-14 18:39:29 +00:00
|
|
|
|
2014-08-08 14:21:48 -06:00
|
|
|
#include "wdog/wdog.h"
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2015-10-02 17:43:18 -06:00
|
|
|
/****************************************************************************
|
2015-10-02 16:30:35 -06:00
|
|
|
* Public Data
|
2015-10-02 17:43:18 -06:00
|
|
|
****************************************************************************/
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2012-07-14 19:30:31 +00:00
|
|
|
/* The g_wdactivelist data structure is a singly linked list ordered by
|
|
|
|
* watchdog expiration time. When watchdog timers expire,the functions on
|
|
|
|
* this linked list are removed and the function is called.
|
2007-02-17 23:21:28 +00:00
|
|
|
*/
|
|
|
|
|
2024-06-11 23:23:44 +08:00
|
|
|
struct list_node g_wdactivelist = LIST_INITIAL_VALUE(g_wdactivelist);
|
2007-02-17 23:21:28 +00:00
|
|
|
|
2015-10-02 17:43:18 -06:00
|
|
|
/****************************************************************************
|
2007-02-17 23:21:28 +00:00
|
|
|
* Public Functions
|
2015-10-02 17:43:18 -06:00
|
|
|
****************************************************************************/
|