zephyr/drivers/watchdog/wdt_iwdg_stm32.h
Tomasz Bursztyka 1b28cb0ff1 drivers/wdt: Rename STM32 IWDG files to follow naming rules
Basically, all driver file names should start with the driver type as
prefix: wdt_ in case of watchdogs here.

Maybe 'iwdg' keyword could be removed entirely, and also in function
names. However that is not the scope of this patch.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2019-06-04 15:34:55 -04:00

36 lines
833 B
C

/*
* Copyright (c) 2016 Open-RnD Sp. z o.o.
* Copyright (c) 2017 RnDity Sp. z o.o.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_WATCHDOG_IWDG_STM32_H_
#define ZEPHYR_DRIVERS_WATCHDOG_IWDG_STM32_H_
#include <zephyr/types.h>
/**
* @brief Driver for Independent Watchdog (IWDG) for STM32 MCUs
*
* The driver targets all STM32 SoCs. For details please refer to
* an appropriate reference manual and look for chapter called:
*
* Independent watchdog (IWDG)
*
*/
/* driver data */
struct iwdg_stm32_data {
/* IWDG peripheral instance. */
IWDG_TypeDef *Instance;
};
#define IWDG_STM32_DATA(dev) \
((struct iwdg_stm32_data * const)(dev)->driver_data)
#define IWDG_STM32_STRUCT(dev) \
((IWDG_TypeDef *)(IWDG_STM32_DATA(dev))->Instance)
#endif /* ZEPHYR_DRIVERS_WATCHDOG_IWDG_STM32_H_ */