blob: 38e0eb08f685df19e5960f760a433a682e079ccd (
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
|
/*
* Copyright (c) 2006-2025 RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2026-06-23 ox-horse first version
* 2026-08-19 ox-horse Add N32H47X_48X and N32H49X
*/
#ifndef __DRV_LPTIM_H__
#define __DRV_LPTIM_H__
#include <rtthread.h>
/* 0x20 - 0x3F udevice control commands */
typedef enum
{
DRV_HW_LPTIMER_CTRL_GET_TICK_MAX = 0x20, /* get the maximum tick value */
DRV_HW_LPTIMER_CTRL_GET_FREQ = 0X21, /* get the timer frequency */
DRV_HW_LPTIMER_CTRL_START = 0X22, /* set the timeout value */
DRV_HW_LPTIMER_CTRL_GET_COUNT = 0X23, /* get the current count value */
} drv_hw_lptimer_ctrl_t;
#endif /* __DRV_LPTIM_H__ */
|