drivers: clock_control: mcux_syscon: fix define collision
mcux HAL pollutes namespace with stuff like ARRAY_SIZE, MIN, MAX, etc. Luckily it only defines them if not already defined, so we can play with include order to "fix" the problem. Move the infamous soc.h (which includes HAL) after other Zephyr includes. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
edfcd0ab51
commit
140f014bed
1 changed files with 1 additions and 1 deletions
|
@ -6,9 +6,9 @@
|
|||
|
||||
#define DT_DRV_COMPAT nxp_lpc_syscon
|
||||
#include <errno.h>
|
||||
#include <soc.h>
|
||||
#include <zephyr/drivers/clock_control.h>
|
||||
#include <zephyr/dt-bindings/clock/mcux_lpc_syscon_clock.h>
|
||||
#include <soc.h>
|
||||
#include <fsl_clock.h>
|
||||
|
||||
#define LOG_LEVEL CONFIG_CLOCK_CONTROL_LOG_LEVEL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue