nuttx/boards/arm/cxd56xx/spresense/include/cxd56_wdt.h

70 lines
2.4 KiB
C
Raw Normal View History

Merged in alinjerpelea/nuttx (pull request #902) arch: arm: cxd56xx: PM and PWM * configs: spresense: add SPI configuration add SPI configuration for spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add support for PWM add support for PWM for cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable PWM support enable PWM support on spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Power Management PROCFS support the powermanager procfs support will export /proc/pm: clock power Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable powermanager procfs support The powermanager procfs is disabled by default and need to be enabled by the CONFIG_CXD56_PM_PROCFS option Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add timer driver Add timer driver for cxd56xx. NOTE The timer allows a divider of 1, 16 and 256 options Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Watch Dog Timer Add Watch Dog Timer on cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable timer the platform support has been added and now we can use the timers on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable WatchDog timer The platform support has been added and now we can use the WatchDog Timer on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-14 20:40:06 +02:00
/****************************************************************************
* boards/arm/cxd56xx/spresense/include/cxd56_wdt.h
Merged in alinjerpelea/nuttx (pull request #902) arch: arm: cxd56xx: PM and PWM * configs: spresense: add SPI configuration add SPI configuration for spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add support for PWM add support for PWM for cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable PWM support enable PWM support on spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Power Management PROCFS support the powermanager procfs support will export /proc/pm: clock power Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable powermanager procfs support The powermanager procfs is disabled by default and need to be enabled by the CONFIG_CXD56_PM_PROCFS option Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add timer driver Add timer driver for cxd56xx. NOTE The timer allows a divider of 1, 16 and 256 options Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Watch Dog Timer Add Watch Dog Timer on cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable timer the platform support has been added and now we can use the timers on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable WatchDog timer The platform support has been added and now we can use the WatchDog Timer on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-14 20:40:06 +02: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
Merged in alinjerpelea/nuttx (pull request #902) arch: arm: cxd56xx: PM and PWM * configs: spresense: add SPI configuration add SPI configuration for spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add support for PWM add support for PWM for cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable PWM support enable PWM support on spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Power Management PROCFS support the powermanager procfs support will export /proc/pm: clock power Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable powermanager procfs support The powermanager procfs is disabled by default and need to be enabled by the CONFIG_CXD56_PM_PROCFS option Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add timer driver Add timer driver for cxd56xx. NOTE The timer allows a divider of 1, 16 and 256 options Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Watch Dog Timer Add Watch Dog Timer on cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable timer the platform support has been added and now we can use the timers on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable WatchDog timer The platform support has been added and now we can use the WatchDog Timer on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-14 20:40:06 +02:00
*
* http://www.apache.org/licenses/LICENSE-2.0
Merged in alinjerpelea/nuttx (pull request #902) arch: arm: cxd56xx: PM and PWM * configs: spresense: add SPI configuration add SPI configuration for spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add support for PWM add support for PWM for cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable PWM support enable PWM support on spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Power Management PROCFS support the powermanager procfs support will export /proc/pm: clock power Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable powermanager procfs support The powermanager procfs is disabled by default and need to be enabled by the CONFIG_CXD56_PM_PROCFS option Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add timer driver Add timer driver for cxd56xx. NOTE The timer allows a divider of 1, 16 and 256 options Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Watch Dog Timer Add Watch Dog Timer on cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable timer the platform support has been added and now we can use the timers on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable WatchDog timer The platform support has been added and now we can use the WatchDog Timer on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-14 20:40:06 +02: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.
Merged in alinjerpelea/nuttx (pull request #902) arch: arm: cxd56xx: PM and PWM * configs: spresense: add SPI configuration add SPI configuration for spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add support for PWM add support for PWM for cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable PWM support enable PWM support on spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Power Management PROCFS support the powermanager procfs support will export /proc/pm: clock power Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable powermanager procfs support The powermanager procfs is disabled by default and need to be enabled by the CONFIG_CXD56_PM_PROCFS option Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add timer driver Add timer driver for cxd56xx. NOTE The timer allows a divider of 1, 16 and 256 options Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Watch Dog Timer Add Watch Dog Timer on cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable timer the platform support has been added and now we can use the timers on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable WatchDog timer The platform support has been added and now we can use the WatchDog Timer on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-14 20:40:06 +02:00
*
****************************************************************************/
#ifndef __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_WDT_H
#define __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_WDT_H
Merged in alinjerpelea/nuttx (pull request #902) arch: arm: cxd56xx: PM and PWM * configs: spresense: add SPI configuration add SPI configuration for spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add support for PWM add support for PWM for cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable PWM support enable PWM support on spresense board Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Power Management PROCFS support the powermanager procfs support will export /proc/pm: clock power Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable powermanager procfs support The powermanager procfs is disabled by default and need to be enabled by the CONFIG_CXD56_PM_PROCFS option Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add timer driver Add timer driver for cxd56xx. NOTE The timer allows a divider of 1, 16 and 256 options Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * arch: arm: cxd56xx: add Watch Dog Timer Add Watch Dog Timer on cxd56xx Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable timer the platform support has been added and now we can use the timers on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> * configs: spresense: enable WatchDog timer The platform support has been added and now we can use the WatchDog Timer on spresense board. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-06-14 20:40:06 +02:00
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
/****************************************************************************
* Public Types
****************************************************************************/
#ifndef __ASSEMBLY__
/****************************************************************************
* Public Data
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
/****************************************************************************
* Name: cxd56_wdt_initialize
*
* Description:
* Initialize WDT on the board.
*
****************************************************************************/
int cxd56_wdt_initialize(void);
#undef EXTERN
#if defined(__cplusplus)
}
#endif
#endif /* __ASSEMBLY__ */
#endif /* __BOARDS_ARM_CXD56XX_SPRESENSE_INCLUDE_CXD56_WDT_H */