arm/nxp_kinetis/k6x: always inline clock init function
The clkInit() is always called so this can be inlined. This saves 32 bytes of ROM space compared to non-inlined version. Change-Id: I2cb6d02c0996acad16029be243f6059183938089 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
b6f56d478a
commit
ad6ed299b7
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ uint8_t __security_frdm_k64f_section __security_frdm_k64f[] = {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void clkInit(void)
|
static ALWAYS_INLINE void clkInit(void)
|
||||||
{
|
{
|
||||||
uint8_t temp_reg;
|
uint8_t temp_reg;
|
||||||
K20_MCG_t *mcg_p = (K20_MCG_t *)PERIPH_ADDR_BASE_MCG; /* clk gen. ctl */
|
K20_MCG_t *mcg_p = (K20_MCG_t *)PERIPH_ADDR_BASE_MCG; /* clk gen. ctl */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue