File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
mcux-sdk-ng/drivers/dmamux Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 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 */
2930static 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. */
3639static 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. */
4042static 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 )
4649static 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.
You can’t perform that action at this time.
0 commit comments