|
| 1 | +/* |
| 2 | + * Copyright 2021-2024 NXP |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: BSD-3-Clause |
| 5 | + */ |
| 6 | + |
| 7 | +#ifndef HSE_IP_CFG_H |
| 8 | +#define HSE_IP_CFG_H |
| 9 | + |
| 10 | +/** |
| 11 | +* @file |
| 12 | +* |
| 13 | +* @addtogroup CRYPTO_43_HSE |
| 14 | +* @{ |
| 15 | +*/ |
| 16 | + |
| 17 | +#ifdef __cplusplus |
| 18 | +extern "C"{ |
| 19 | +#endif |
| 20 | + |
| 21 | + |
| 22 | +/*================================================================================================== |
| 23 | +* INCLUDE FILES |
| 24 | +* 1) system and project includes |
| 25 | +* 2) needed interfaces from external units |
| 26 | +* 3) internal and external interfaces from this unit |
| 27 | +==================================================================================================*/ |
| 28 | +#include "S32Z2_MU.h" |
| 29 | +#include "OsIf.h" |
| 30 | + |
| 31 | +/*================================================================================================== |
| 32 | +* SOURCE FILE VERSION INFORMATION |
| 33 | +==================================================================================================*/ |
| 34 | +#define HSE_IP_CFG_VENDOR_ID_H 43 |
| 35 | +#define HSE_IP_CFG_SW_MAJOR_VERSION_H 2 |
| 36 | +#define HSE_IP_CFG_SW_MINOR_VERSION_H 0 |
| 37 | +#define HSE_IP_CFG_SW_PATCH_VERSION_H 0 |
| 38 | + |
| 39 | +/*================================================================================================== |
| 40 | +* FILE VERSION CHECKS |
| 41 | +==================================================================================================*/ |
| 42 | + |
| 43 | +/*================================================================================================== |
| 44 | +* CONSTANTS |
| 45 | +==================================================================================================*/ |
| 46 | + |
| 47 | +/*================================================================================================== |
| 48 | +* DEFINES AND MACROS |
| 49 | +==================================================================================================*/ |
| 50 | + |
| 51 | +/* Defines for the available MU instances */ |
| 52 | +#define HSE_IP_MU_0 ((uint8)0U) |
| 53 | +#define HSE_IP_MU_1 ((uint8)1U) |
| 54 | +#define HSE_IP_MU_2 ((uint8)2U) |
| 55 | +#define HSE_IP_MU_3 ((uint8)3U) |
| 56 | +#define HSE_IP_MU_4 ((uint8)4U) |
| 57 | +#define HSE_IP_MU_5 ((uint8)5U) |
| 58 | +#define HSE_IP_MU_6 ((uint8)6U) |
| 59 | +#define HSE_IP_MU_7 ((uint8)7U) |
| 60 | + |
| 61 | +/* Max number of MU instances */ |
| 62 | +#define HSE_IP_NUM_OF_MU_INSTANCES (8U) |
| 63 | + |
| 64 | +/* Max number of channels per MU interface */ |
| 65 | +#define HSE_IP_NUM_OF_CHANNELS_PER_MU (16U) |
| 66 | + |
| 67 | +/* Pre-processor switch to enable/disable development error detection for Hse Ip API */ |
| 68 | +#define HSE_IP_DEV_ERROR_DETECT (STD_OFF) |
| 69 | + |
| 70 | +/* OsIf counter type used in timeout detection for HSE IP service request */ |
| 71 | +#define HSE_IP_TIMEOUT_OSIF_COUNTER_TYPE (OSIF_COUNTER_DUMMY) |
| 72 | + |
| 73 | +/* Support for Hse operations using TCM addresses */ |
| 74 | +#define HSE_IP_ENABLE_TCM_SUPPORT (STD_OFF) |
| 75 | + |
| 76 | +/* Initializer for the MU Host base addresses */ |
| 77 | +#define MU_HOST_BASE_PTRS { IP_MU0__MUB, IP_MU1__MUB, IP_MU2__MUB, IP_MU3__MUB, IP_MU4__MUB, IP_MU5__MUB, IP_MU6__MUB, IP_MU7__MUB } |
| 78 | + |
| 79 | +/*================================================================================================== |
| 80 | +* ENUMS |
| 81 | +==================================================================================================*/ |
| 82 | + |
| 83 | +/*================================================================================================== |
| 84 | +* STRUCTURES AND OTHER TYPEDEFS |
| 85 | +==================================================================================================*/ |
| 86 | + |
| 87 | +/*================================================================================================== |
| 88 | +* GLOBAL CONSTANTS |
| 89 | +==================================================================================================*/ |
| 90 | + |
| 91 | +/*================================================================================================== |
| 92 | +* GLOBAL VARIABLE DECLARATIONS |
| 93 | +==================================================================================================*/ |
| 94 | + |
| 95 | +/*================================================================================================== |
| 96 | +* FUNCTION PROTOTYPES |
| 97 | +==================================================================================================*/ |
| 98 | + |
| 99 | + |
| 100 | +#ifdef __cplusplus |
| 101 | +} |
| 102 | +#endif |
| 103 | + |
| 104 | +/** @} */ |
| 105 | + |
| 106 | +#endif /* HSE_IP_CFG_H */ |
| 107 | + |
0 commit comments