File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -97,3 +97,5 @@ Patch List:
97
97
- MCXA15x family
98
98
- MCXN23x family
99
99
- add kUSB_DeviceNotifySOF to usb_device_mcux_drv_port.h SDK USB stack already supports it in SDK 2.16.0
100
+ - mcux-sdk/drivers/adc12/fsl_adc12.c: add guards to avoid compilation warnings when building
101
+ with SDK clock control driver disabled.
Original file line number Diff line number Diff line change 30
30
*
31
31
* @param base ADC12 peripheral base address
32
32
*/
33
+ #if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL ) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL )
33
34
static uint32_t ADC12_GetInstance (ADC_Type * base );
35
+ #endif
34
36
35
37
/*!
36
38
* @brief Check calibration failed status.
@@ -62,15 +64,16 @@ static status_t ADC12_GetCalibrationStatus(ADC_Type *base);
62
64
* Variables
63
65
******************************************************************************/
64
66
/*! @brief Pointers to ADC12 bases for each instance. */
65
- static ADC_Type * const s_adc12Bases [] = ADC_BASE_PTRS ;
66
67
#if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL ) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL )
68
+ static ADC_Type * const s_adc12Bases [] = ADC_BASE_PTRS ;
67
69
/*! @brief Pointers to ADC12 clocks for each instance. */
68
70
static const clock_ip_name_t s_adc12Clocks [] = ADC12_CLOCKS ;
69
71
#endif /* FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL */
70
72
71
73
/*******************************************************************************
72
74
* Code
73
75
******************************************************************************/
76
+ #if !(defined(FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL ) && FSL_SDK_DISABLE_DRIVER_CLOCK_CONTROL )
74
77
static uint32_t ADC12_GetInstance (ADC_Type * base )
75
78
{
76
79
uint32_t instance ;
@@ -88,6 +91,7 @@ static uint32_t ADC12_GetInstance(ADC_Type *base)
88
91
89
92
return instance ;
90
93
}
94
+ #endif
91
95
92
96
static status_t ADC12_GetCalibrationStatus (ADC_Type * base )
93
97
{
You can’t perform that action at this time.
0 commit comments