Skip to content

Commit 722ca13

Browse files
yangbolu1991mmahadevan108
authored andcommitted
mcux-sdk: irqsteer: fix compile with false FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL
Fixed irqsteer compile with false FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL. Signed-off-by: Yangbo Lu <[email protected]>
1 parent 8c87b0e commit 722ca13

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mcux/mcux-sdk/drivers/irqsteer/fsl_irqsteer.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,23 @@
2121
* Prototypes
2222
******************************************************************************/
2323

24+
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)
2425
/*!
2526
* @brief Get instance number for IRQSTEER.
2627
*
2728
* @param base IRQSTEER peripheral base address.
2829
*/
2930
static uint32_t IRQSTEER_GetInstance(IRQSTEER_Type *base);
31+
#endif
3032

3133
/*******************************************************************************
3234
* Variables
3335
******************************************************************************/
3436

37+
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)
3538
/*! @brief Array to map IRQSTEER instance number to base pointer. */
3639
static IRQSTEER_Type *const s_irqsteerBases[] = IRQSTEER_BASE_PTRS;
3740

38-
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)
3941
/*! @brief Array to map IRQSTEER instance number to clock name. */
4042
static const clock_ip_name_t s_irqsteerClockName[] = IRQSTEER_CLOCKS;
4143
#endif
@@ -48,7 +50,7 @@ static const IRQn_Type s_irqsteerIRQNumber[] = IRQSTEER_IRQS;
4850
/*******************************************************************************
4951
* Code
5052
******************************************************************************/
51-
53+
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)
5254
static uint32_t IRQSTEER_GetInstance(IRQSTEER_Type *base)
5355
{
5456
uint32_t instance;
@@ -66,6 +68,7 @@ static uint32_t IRQSTEER_GetInstance(IRQSTEER_Type *base)
6668

6769
return instance;
6870
}
71+
#endif
6972

7073
/*!
7174
* brief Initializes the IRQSTEER module.

0 commit comments

Comments
 (0)