WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
platform_types.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2018-2019. All rights reserved.
3 * Description: PLATFORM TYPES
4 * Author:
5 * Date:
6 */
7#ifndef PLATFORM_TYPES_H
8#define PLATFORM_TYPES_H
9
14#include "platform_core.h"
15#include "chip_definitions.h"
16
21typedef enum {
22 CORES_BT_CORE = 0, /* !< bt Core. */
23 CORES_PROTOCOL_CORE = 1, /* !< Hifi Core. */
24 CORES_APPS_CORE = 2, /* !< Applications Core. */
25 CORES_EXTERN0_CORE = 3, /* !< GNSS Core for libra. */
26#if CHIP_LIBRA
27 CORES_GNSS_CORE = CORES_EXTERN0_CORE,
28#else
30#endif
31 CORES_EXTERN1_CORE = 4, /* !< Sec Core for libra. */
33#if (CORE_NUMS < 3) /* !< For BS25, dsp core is null. */
34 CORES_MAX_NUMBER_PHYSICAL = 3, /* !< Used to size/range arrays for physical cores where needed. */
35#else
37#endif
38 CORES_NONE = CORES_MAX_NUMBER_PHYSICAL, /* !< Used to return a NONE value where needed. */
39 CORES_ASSET_CORE = CORES_MAX_NUMBER_PHYSICAL, /* used for asset store */
40 CORES_UNKNOWN = CORES_MAX_NUMBER_PHYSICAL + 1, /* !< Used to return a unknown value. */
41} cores_t;
42
48typedef enum {
49 CORE_IMAGES_BT = 0, /* !< bt core image A. At the lowest loadable slot in Flash. */
50 CORE_IMAGES_PROTOCOL = 1, /* !< Hifi core image A */
51 CORE_IMAGES_APPS = 2, /* !< Application core image A. */
52 CORE_IMAGES_RECOVERY = 3, /* !< Recover core image B. */
53 CORE_IMAGES_EXTERN0 = 4, /* !< GNSS image for libra. */
54 CORE_IMAGES_EXTERN1 = 5, /* !< Sec image for libra. */
55 CORE_IMAGES_EXTERN1_SSB = 6, /* !< Sec image for libra. */
56#if CHIP_SOCMN1 || CHIP_BS25
58#else
60#endif
62
66typedef void (*isr_callback)(void);
67
71typedef enum {
72 INTERRUPT_STATE_DISABLED = 0, /* !< Interrupt Disabled */
73 INTERRUPT_STATE_ENABLED = 1, /* !< Interrupt Enabled */
75
79#endif
interrupt_state_t
Interrupt State Type.
Definition platform_types.h:71
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
void(* isr_callback)(void)
Interrupt Service Routine Callback Type.
Definition platform_types.h:66
@ INTERRUPT_STATE_ENABLED
Definition platform_types.h:73
@ INTERRUPT_STATE_DISABLED
Definition platform_types.h:72
@ CORES_SEC_CORE
Definition platform_types.h:32
@ CORES_APPS_CORE
Definition platform_types.h:24
@ CORES_UNKNOWN
Definition platform_types.h:40
@ CORES_EXTERN0_CORE
Definition platform_types.h:25
@ CORES_MAX_NUMBER_PHYSICAL
Definition platform_types.h:34
@ CORES_EXTERN1_CORE
Definition platform_types.h:31
@ CORES_HIFI1_CORE
Definition platform_types.h:29
@ CORES_BT_CORE
Definition platform_types.h:22
@ CORES_ASSET_CORE
Definition platform_types.h:39
@ CORES_NONE
Definition platform_types.h:38
@ CORES_PROTOCOL_CORE
Definition platform_types.h:23
@ CORE_IMAGES_EXTERN1_SSB
Definition platform_types.h:55
@ CORE_IMAGES_EXTERN0
Definition platform_types.h:53
@ CORE_IMAGES_MAX_NUMBER
Definition platform_types.h:59
@ CORE_IMAGES_EXTERN1
Definition platform_types.h:54
@ CORE_IMAGES_BT
Definition platform_types.h:49
@ CORE_IMAGES_PROTOCOL
Definition platform_types.h:50
@ CORE_IMAGES_APPS
Definition platform_types.h:51
@ CORE_IMAGES_RECOVERY
Definition platform_types.h:52