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 @@ -43,3 +43,5 @@ Patch List:
43
43
- drivers/caam/fsl_caam.c: Move used job descriptors in the CAAM driver from the stack to noncacheable section. At time of writing, there should
44
44
be four being used for entropy in zephyr.
45
45
- drivers/s3mu/fsl_s3mu.c: rename _BIT macro to avoid collision from util_macro.h in Zephyr
46
+ - drivers/adc12/fsl_adc12.c: add guards to avoid compilation warnings when building
47
+ 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