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
|
|
|
*
|
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
|
|
|
|
2022-09-25 23:08:38 +08:00
|
|
|
#include <nuttx/queue.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
|
|
|
*/
|
|
|
|
|
|
|
|
sq_queue_t g_wdactivelist;
|
|
|
|
|
2018-11-09 09:26:34 -06:00
|
|
|
/* This is wdog tickbase, for wd_gettime() may called many times
|
|
|
|
* between 2 times of wd_timer(), we use it to update wd_gettime().
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef CONFIG_SCHED_TICKLESS
|
|
|
|
clock_t g_wdtickbase;
|
|
|
|
#endif
|
|
|
|
|
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
|
|
|
****************************************************************************/
|