Commit 5fcb542b authored by Sergei Poselenov's avatar Sergei Poselenov

RT #81023. Implemented different configurations for K61-SOM and K70-SOM

modules running at 120 and 150 MHz.
parent e3b73277
......@@ -3236,8 +3236,22 @@ twr-k70f120m_config : unconfig
lpc-lnx-evb_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexm3 lpc-lnx-evb emcraft lpc178x
k61-som_config \
k61-som-150_config \
k70-som-150_config \
k70-som_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexm3 k70-som emcraft kinetis
@mkdir -p $(obj)include
@ >$(obj)include/config.h
@[ -z "$(findstring k61-,$@)" ] || \
{ echo "#define CONFIG_KINETIS_K61" >>$(obj)include/config.h ; \
echo "...for K61-SOM" ; \
}
@[ -z "$(findstring -150,$@)" ] || \
{ echo "#define CONFIG_KINETIS_150MHZ" >>$(obj)include/config.h ; \
echo "...for 150MHz" ; \
}
@$(MKCONFIG) -a k70-som arm arm_cortexm3 k70-som emcraft kinetis
lpc4350-eval_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm_cortexm3 lpc4350-eval hitex lpc18xx
......
......@@ -44,9 +44,15 @@
/*
* Choose Kinetis MCU family and maximum core frequency
* Default is K70 @120MHz and can be redefined by config.h
*/
#ifndef CONFIG_KINETIS_K61
#define CONFIG_KINETIS_K70
#endif
#ifndef CONFIG_KINETIS_150MHZ
#define CONFIG_KINETIS_120MHZ
#endif
/*
* Enable GPIO driver
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment