[Infineon]Fix scb5 can't use bug

This commit is contained in:
Rbb666 2023-02-24 18:36:51 +08:00 committed by Man, Jianting (Meco)
parent a5c62b9a84
commit 022760c569
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ extern "C" {
#endif
#if defined(CY_IP_MXSCB_INSTANCES)
#if defined(CY_DEVICE_PSOC6A256K)
#if defined(CY_DEVICE_PSOC6A256K) || defined(CY8C624ALQI_S2D42)
//Special case for 256k device which has 6 SCBs numbered 0, 1, 2, 4, 5, 6
#define _SCB_ARRAY_SIZE (CY_IP_MXSCB_INSTANCES + 1)
#else

View File

@ -51,7 +51,7 @@ CySCB_Type *const _CYHAL_SCB_BASE_ADDRESSES[_SCB_ARRAY_SIZE] =
#endif
#ifdef SCB3
SCB3,
#elif defined(CY_DEVICE_PSOC6A256K)
#elif defined(CY_DEVICE_PSOC6A256K) || defined(CY8C624ALQI_S2D42)
NULL, // Placeholder
#endif
#ifdef SCB4