Skip to content

Commit 4d448e3

Browse files
zejiang0jasondleach02
authored andcommitted
mcu-sdk-ng: drivers: dmamux: Fix build fail
Fix fail when FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL defined as 1 Signed-off-by: Jason Yu <[email protected]>
1 parent 27ea966 commit 4d448e3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

mcux/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,4 @@ Patch List:
192192
- mcux-sdk-middleware-ieee_802.15.4: adapt code to be supported with Zephyr
193193
- mcux-sdk-middleware-usb: Disable the control endpoint ZLT (Zero Length Transaction) of MCUX hal USB controller drivers
194194
(usb_device_ehci.c and usb_device_lpcip3511.c) in Zephyr environment.
195+
- drivers: dmamux: Fix build error when FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL is defined as 1.

mcux/mcux-sdk-ng/drivers/dmamux/fsl_dmamux.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,31 @@
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 DMAMUX.
2627
*
2728
* @param base DMAMUX peripheral base address.
2829
*/
2930
static uint32_t DMAMUX_GetInstance(DMAMUX_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 DMAMUX instance number to base pointer. */
3639
static DMAMUX_Type *const s_dmamuxBases[] = DMAMUX_BASE_PTRS;
3740

38-
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)
3941
/*! @brief Array to map DMAMUX instance number to clock name. */
4042
static const clock_ip_name_t s_dmamuxClockName[] = DMAMUX_CLOCKS;
4143
#endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */
4244

4345
/*******************************************************************************
4446
* Code
4547
******************************************************************************/
48+
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL)
4649
static uint32_t DMAMUX_GetInstance(DMAMUX_Type *base)
4750
{
4851
uint32_t instance;
@@ -60,6 +63,7 @@ static uint32_t DMAMUX_GetInstance(DMAMUX_Type *base)
6063

6164
return instance;
6265
}
66+
#endif
6367

6468
/*!
6569
* brief Initializes the DMAMUX peripheral.

0 commit comments

Comments
 (0)