WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
cpu_utils.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2018-2020. All rights reserved.
3 * Description: BT CPU UTILS Module Header
4 */
5#ifndef CPU_UTILS_H
6#define CPU_UTILS_H
7
8#include "non_os_reboot.h"
9#ifdef SUPPORT_PARTITION_INFO
10#include "partition.h"
11#endif
12
18typedef void (*cpu_utils_reboot_cb)(int32_t);
19
26
31
35void cpu_utils_init(void);
36
43
49
55
56#ifdef SUPPORT_PARTITION_INFO
62partition_ids_t cpu_utils_core_iamge_to_partition_id(core_images_e cimage);
63#endif
64
68#endif
cores_t
Generic enum to specify the required core. By using an enum, type safety can be enforced at compile t...
Definition platform_types.h:21
core_images_e
Generic enum to specify the core image. On master C20 the standard Security core is CORE_IMAGES_RECOV...
Definition platform_types.h:48
reboot_cause_t
This is a special enum, it is split into three sections Only 16 bits are used. Bits 13 to 15 are flag...
Definition non_os_reboot.h:45
cores_t cpu_utils_core_images_to_cores(core_images_e cimage)
Return the core associated with a given core image
Definition cpu_utils.c:210
void cpu_utils_reset_chip_with_log(cores_t core, reboot_cause_t cause)
Resets the entire chip, and logging information
Definition cpu_utils.c:54
void cpu_utils_reset_chip_with_cause(reboot_cause_t cause)
Reset the entire chip with reboot cause
Definition cpu_utils.c:71
void cpu_utils_init(void)
Registers the IPC action for the core reboot
Definition cpu_utils.c:195
void cpu_utils_set_mcu_callback(cpu_utils_reboot_cb cb)
Registers the call back for the Bt core reboot
Definition cpu_utils.c:235
void cpu_utils_set_system_status_by_cause(reboot_cause_t cause)
set reboot cause & set reboot magic
Definition cpu_utils.c:44
void(* cpu_utils_reboot_cb)(int32_t)
Definition cpu_utils.h:18
partition_ids_t
分区ID
Definition partition_resource_id.h:31