diff --git a/boards/nxp/mr-canhubk3/src/board_config.h b/boards/nxp/mr-canhubk3/src/board_config.h index 856016d9d3..ccc339846d 100644 --- a/boards/nxp/mr-canhubk3/src/board_config.h +++ b/boards/nxp/mr-canhubk3/src/board_config.h @@ -104,7 +104,7 @@ __BEGIN_DECLS /* User peripheral configuration structure 0 */ -extern const struct peripheral_clock_config_s g_peripheral_clockconfig0[]; +extern const struct peripheral_clock_config_s g_peripheral_clockconfig0[NUM_OF_PERIPHERAL_CLOCKS_0]; /**************************************************************************** * Public Function Prototypes diff --git a/boards/nxp/mr-canhubk3/src/s32k3xx_periphclocks.c b/boards/nxp/mr-canhubk3/src/s32k3xx_periphclocks.c index 0f07536842..a6e5264cd0 100644 --- a/boards/nxp/mr-canhubk3/src/s32k3xx_periphclocks.c +++ b/boards/nxp/mr-canhubk3/src/s32k3xx_periphclocks.c @@ -41,7 +41,7 @@ * This is needed to establish the initial peripheral clocking. */ -const struct peripheral_clock_config_s g_peripheral_clockconfig0[] = { +const struct peripheral_clock_config_s g_peripheral_clockconfig0[NUM_OF_PERIPHERAL_CLOCKS_0] = { { .clkname = FLEXCAN0_CLK, #ifdef CONFIG_S32K3XX_FLEXCAN0