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:
192
192
- mcux-sdk-middleware-ieee_802.15.4: adapt code to be supported with Zephyr
193
193
- mcux-sdk-middleware-usb: Disable the control endpoint ZLT (Zero Length Transaction) of MCUX hal USB controller drivers
194
194
(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 21
21
* Prototypes
22
22
******************************************************************************/
23
23
24
+ #if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL ) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL )
24
25
/*!
25
26
* @brief Get instance number for DMAMUX.
26
27
*
27
28
* @param base DMAMUX peripheral base address.
28
29
*/
29
30
static uint32_t DMAMUX_GetInstance (DMAMUX_Type * base );
31
+ #endif
30
32
31
33
/*******************************************************************************
32
34
* Variables
33
35
******************************************************************************/
34
36
37
+ #if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL ) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL )
35
38
/*! @brief Array to map DMAMUX instance number to base pointer. */
36
39
static DMAMUX_Type * const s_dmamuxBases [] = DMAMUX_BASE_PTRS ;
37
40
38
- #if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL ) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL )
39
41
/*! @brief Array to map DMAMUX instance number to clock name. */
40
42
static const clock_ip_name_t s_dmamuxClockName [] = DMAMUX_CLOCKS ;
41
43
#endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */
42
44
43
45
/*******************************************************************************
44
46
* Code
45
47
******************************************************************************/
48
+ #if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL ) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL )
46
49
static uint32_t DMAMUX_GetInstance (DMAMUX_Type * base )
47
50
{
48
51
uint32_t instance ;
@@ -60,6 +63,7 @@ static uint32_t DMAMUX_GetInstance(DMAMUX_Type *base)
60
63
61
64
return instance ;
62
65
}
66
+ #endif
63
67
64
68
/*!
65
69
* brief Initializes the DMAMUX peripheral.
You can’t perform that action at this time.
0 commit comments