|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <stdint.h>#include <stdbool.h>#include "common_def.h"#include "hal_timer_v150_regs_op.h"#include "timer_porting.h"#include "hal_timer_v150.h"
宏定义 | |
| #define | TIMER_COUNT_HIGH_32BIT_RIGHT_SHIFT 32 |
| #define | TIMER_LOAD_COUNT1_LOCK_VALUE 0x5A5A5A5A |
| #define | TIMER_CURRENT_COUNT_LOCK_TIMEOUT 0xFFFF |
函数 | |
| errcode_t | hal_timer_v150_init (timer_index_t index, hal_timer_callback_t callback) |
| HAL层Timer的初始化接口。 | |
| void | hal_timer_v150_deinit (timer_index_t index) |
| HAL层Timer的去初始化接口。 | |
| void | hal_timer_v150_start (timer_index_t index) |
| HAL层启动硬件定时器计数的接口。 | |
| void | hal_timer_v150_stop (timer_index_t index) |
| HAL层停止硬件定时器计数的接口。 | |
| void | hal_timer_v150_config_load (timer_index_t index, uint64_t delay_count) |
| HAL层设置硬件计时器计数的接口。 | |
| uint64_t | hal_timer_v150_get_current_value (timer_index_t index) |
| HAL层获取硬件当前计时器剩余计数的接口。 | |
| void | hal_timer_v150_interrupt_clear (timer_index_t index) |
| 清除timer模块内部的中断。 | |
| void | hal_timer_v150_irq_handler (timer_index_t index) |
| timer中断处理函数。 | |
| #define TIMER_COUNT_HIGH_32BIT_RIGHT_SHIFT 32 |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides V150 HAL timer
History:
2022-12-08, Create file.
| #define TIMER_CURRENT_COUNT_LOCK_TIMEOUT 0xFFFF |
| #define TIMER_LOAD_COUNT1_LOCK_VALUE 0x5A5A5A5A |