|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "soc_osal.h"#include "hal_hwi.h"#include "los_hwi.h"#include "los_tick_pri.h"#include "los_hwi_pri.h"#include "chip_io.h"#include "arch_barrier.h"#include "oal_interface.h"#include "platform_core.h"#include "idle_config.h"#include "core.h"#include "interrupt_porting.h"#include "systick.h"#include "tick_timer.h"
宏定义 | |
| #define | MACHINE_INT_NUM NUM_HAL_INTERRUPT_TIMER |
| #define | MACHINE_TIMER_BASE TICK_TIMER_BASE_ADDR |
| #define | MACHINE_TIMER_LOAD_COUNT 0x00 |
| #define | MACHINE_TIMER_LOAD_COUNT_L 0x00 |
| #define | MACHINE_TIMER_LOAD_COUNT_H 0x04 |
| #define | MACHINE_TIMER_CURRENT_VALUE_L 0x08 |
| #define | MACHINE_TIMER_CURRENT_VALUE_H 0x0C |
| #define | MACHINE_TIMER_CONTROL_REG 0x10 |
| #define | MACHINE_TIMER_EOI 0x14 |
| #define | MACHINE_TIMER_INT_STATUS 0x18 |
| #define | MACHINE_TIMER_ENABLE_USRMODE 0x03 |
函数 | |
| void | hal_tick_handle_register (tick_handle_hook hook) |
| LITE_OS_SEC_TEXT_INIT void | HalClockStart (void) |
| void | HalClockInit (void) |
| void | HalDelayUs (uint32_t usecs) |
| uint64_t | HalClockGetCycles (void) |
变量 | |
| tick_handle_hook | g_tick_handle_hook = NULL |
| #define MACHINE_INT_NUM NUM_HAL_INTERRUPT_TIMER |
| #define MACHINE_TIMER_BASE TICK_TIMER_BASE_ADDR |
| #define MACHINE_TIMER_CONTROL_REG 0x10 |
| #define MACHINE_TIMER_CURRENT_VALUE_H 0x0C |
| #define MACHINE_TIMER_CURRENT_VALUE_L 0x08 |
| #define MACHINE_TIMER_ENABLE_USRMODE 0x03 |
| #define MACHINE_TIMER_EOI 0x14 |
| #define MACHINE_TIMER_INT_STATUS 0x18 |
| #define MACHINE_TIMER_LOAD_COUNT 0x00 |
| #define MACHINE_TIMER_LOAD_COUNT_H 0x04 |
| #define MACHINE_TIMER_LOAD_COUNT_L 0x00 |
| void hal_tick_handle_register | ( | tick_handle_hook | hook | ) |
| uint64_t HalClockGetCycles | ( | void | ) |
| void HalClockInit | ( | void | ) |
| LITE_OS_SEC_TEXT_INIT void HalClockStart | ( | void | ) |
| void HalDelayUs | ( | uint32_t | usecs | ) |
| tick_handle_hook g_tick_handle_hook = NULL |