summaryrefslogtreecommitdiff
path: root/bsp/Infineon/libraries/HAL_Drivers/drv_wdt.h
blob: 9c554a75cf00e678b33eaea7f4bda21abe62fbc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Copyright (c) 2006-2022, Synwit Technology Co.,Ltd.
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-7-21      Rbb666       first version
 */

#ifndef __DRV_WDT_H__
#define __DRV_WDT_H__

#include <rtthread.h>
#include "board.h"

struct ifx_wdt_cfg
{
    const char *name;
    cyhal_wdt_t *WDTx;
};

struct ifx_wdt
{
    struct ifx_wdt_cfg *cfg;
    struct rt_watchdog_device wdt_device;
};

int rt_hw_wdt_init(void);

#endif /* __DRV_WDT_H__ */