2015-10-03 07:43:18 +08:00
|
|
|
/****************************************************************************
|
2014-08-09 04:21:48 +08:00
|
|
|
* sched/wdog/wd_initialize.c
|
2007-02-18 07:21:28 +08:00
|
|
|
*
|
2024-09-11 19:45:11 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
2020-03-12 03:51:28 +08: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-18 07:21:28 +08:00
|
|
|
*
|
2020-03-12 03:51:28 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2007-02-18 07:21:28 +08:00
|
|
|
*
|
2020-03-12 03:51:28 +08: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-18 07:21:28 +08:00
|
|
|
*
|
2015-10-03 07:43:18 +08:00
|
|
|
****************************************************************************/
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2015-10-03 07:43:18 +08:00
|
|
|
/****************************************************************************
|
2007-02-18 07:21:28 +08:00
|
|
|
* Included Files
|
2015-10-03 07:43:18 +08:00
|
|
|
****************************************************************************/
|
2009-12-15 02:39:29 +08:00
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2024-06-11 23:23:44 +08:00
|
|
|
#include <nuttx/list.h>
|
2009-12-15 02:39:29 +08:00
|
|
|
|
2014-08-09 04:21:48 +08:00
|
|
|
#include "wdog/wdog.h"
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2015-10-03 07:43:18 +08:00
|
|
|
/****************************************************************************
|
2015-10-03 06:30:35 +08:00
|
|
|
* Public Data
|
2015-10-03 07:43:18 +08:00
|
|
|
****************************************************************************/
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2012-07-15 03:30:31 +08: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-18 07:21:28 +08:00
|
|
|
*/
|
|
|
|
|
2024-06-11 23:23:44 +08:00
|
|
|
struct list_node g_wdactivelist = LIST_INITIAL_VALUE(g_wdactivelist);
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2015-10-03 07:43:18 +08:00
|
|
|
/****************************************************************************
|
2007-02-18 07:21:28 +08:00
|
|
|
* Public Functions
|
2015-10-03 07:43:18 +08:00
|
|
|
****************************************************************************/
|