|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "soc_osal.h"#include "common_def.h"#include "hal_rtc_v100.h"#include "chip_core_irq.h"#include "rtc_porting.h"
宏定义 | |
| #define | RTC_BASE_ADDR 0x57024000 |
| #define | RTC_0_BASE_ADDR (RTC_BASE_ADDR + 0x00) |
| #define | RTC_1_BASE_ADDR (RTC_BASE_ADDR + 0x14) |
| #define | RTC_2_BASE_ADDR (RTC_BASE_ADDR + 0x28) |
| #define | RTC_3_BASE_ADDR (RTC_BASE_ADDR + 0x3C) |
函数 | |
| uintptr_t | rtc_porting_comm_addr_get (void) |
| 获取硬件定时器公共寄存器的基地址。 | |
| uintptr_t | rtc_porting_base_addr_get (rtc_index_t index) |
| 获取指定rtc的基地址。 | |
| void | rtc_port_register_irq (rtc_index_t index, uint32_t id, uint16_t priority) |
| rtc注册中断。 | |
| void | rtc_port_unregister_irq (rtc_index_t index, uint32_t id) |
| rtc去注册中断。 | |
| void | rtc_porting_clock_value_update (uint32_t clock) |
| 更新RTC的时钟频率值,此值应和真实输入时钟频率保持一致 | |
| uint32_t | rtc_porting_clock_value_get (void) |
| 获取RTC时钟频率 | |
| uint64_t | rtc_porting_ms_2_cycle (uint32_t ms) |
| uint64_t | rtc_hw_porting_ms_2_cycle (uint64_t ms) |
| uint32_t | rtc_porting_cycle_2_us (uint64_t cycle) |
| uint64_t | rtc_porting_compensat_by_tcxo (uint64_t diff) |
| #define RTC_0_BASE_ADDR (RTC_BASE_ADDR + 0x00) |
| #define RTC_1_BASE_ADDR (RTC_BASE_ADDR + 0x14) |
| #define RTC_2_BASE_ADDR (RTC_BASE_ADDR + 0x28) |
| #define RTC_3_BASE_ADDR (RTC_BASE_ADDR + 0x3C) |
| #define RTC_BASE_ADDR 0x57024000 |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: Provide rtc port
History:
2023-03-02, Create file.