2017-12-24 15:00:20 -06:00
|
|
|
/****************************************************************************
|
2021-03-08 18:39:04 -03:00
|
|
|
* arch/arm/src/lpc54xx/lpc54_wwdt.h
|
2017-12-24 15:00:20 -06:00
|
|
|
*
|
2021-03-24 09:24:48 +01: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
|
2017-12-24 15:00:20 -06:00
|
|
|
*
|
2021-03-24 09:24:48 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2017-12-24 15:00:20 -06:00
|
|
|
*
|
2021-03-24 09:24:48 +01: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.
|
2017-12-24 15:00:20 -06:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2019-05-24 13:39:49 -06:00
|
|
|
#ifndef __ARCH_ARM_SRC_LPC54XX_LPC54_WDT_H
|
|
|
|
#define __ARCH_ARM_SRC_LPC54XX_LPC54_WDT_H
|
2017-12-24 15:00:20 -06:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
|
|
|
|
|
|
|
#include "chip.h"
|
2019-05-24 13:39:49 -06:00
|
|
|
#include "hardware/lpc54_wdt.h"
|
2017-12-24 15:00:20 -06:00
|
|
|
|
|
|
|
#ifdef CONFIG_WATCHDOG
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Pre-processor Definitions
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
#undef EXTERN
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
#define EXTERN extern "C"
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#else
|
|
|
|
#define EXTERN extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/****************************************************************************
|
2021-03-24 09:25:09 +01:00
|
|
|
* Public Functions Prototypes
|
2017-12-24 15:00:20 -06:00
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Name: lpc54_wwdt_initialize
|
|
|
|
*
|
|
|
|
* Description:
|
2021-03-24 09:25:09 +01:00
|
|
|
* Initialize the WWDG watchdog time. The watchdog timer is initializeed
|
|
|
|
* and registers as 'devpath. The initial state of the watchdog time is
|
2017-12-24 15:00:20 -06:00
|
|
|
* disabled.
|
|
|
|
*
|
|
|
|
* Input Parameters:
|
|
|
|
* devpath - The full path to the watchdog. This should be of the form
|
|
|
|
* /dev/watchdog0
|
|
|
|
*
|
2018-02-01 10:00:02 -06:00
|
|
|
* Returned Value:
|
2017-12-24 15:00:20 -06:00
|
|
|
* None
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifdef CONFIG_LPC54_WWDT
|
|
|
|
void lpc54_wwdt_initialize(FAR const char *devpath);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#undef EXTERN
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* CONFIG_WATCHDOG */
|
2019-05-24 13:39:49 -06:00
|
|
|
#endif /* __ARCH_ARM_SRC_LPC54XX_LPC54_WDT_H */
|