boards+efm32: skip board initialization when in bootloader
This commit is contained in:
parent
962b0efaaf
commit
08bc67c0b6
@ -26,7 +26,9 @@ void board_init(void)
|
|||||||
/* initialize the CPU */
|
/* initialize the CPU */
|
||||||
cpu_init();
|
cpu_init();
|
||||||
|
|
||||||
|
#ifndef RIOTBOOT
|
||||||
/* initialize the LEDs */
|
/* initialize the LEDs */
|
||||||
gpio_init(LED0_PIN, GPIO_OUT);
|
gpio_init(LED0_PIN, GPIO_OUT);
|
||||||
gpio_init(LED1_PIN, GPIO_OUT);
|
gpio_init(LED1_PIN, GPIO_OUT);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,6 +28,7 @@ void board_init(void)
|
|||||||
/* initialize the CPU */
|
/* initialize the CPU */
|
||||||
cpu_init();
|
cpu_init();
|
||||||
|
|
||||||
|
#ifndef RIOTBOOT
|
||||||
/* perform common board initialization */
|
/* perform common board initialization */
|
||||||
board_common_init();
|
board_common_init();
|
||||||
|
|
||||||
@ -36,4 +37,5 @@ void board_init(void)
|
|||||||
gpio_init(SI7021_EN_PIN, GPIO_OUT);
|
gpio_init(SI7021_EN_PIN, GPIO_OUT);
|
||||||
gpio_set(SI7021_EN_PIN);
|
gpio_set(SI7021_EN_PIN);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,6 +28,7 @@ void board_init(void)
|
|||||||
/* initialize the CPU */
|
/* initialize the CPU */
|
||||||
cpu_init();
|
cpu_init();
|
||||||
|
|
||||||
|
#ifndef RIOTBOOT
|
||||||
/* perform common board initialization */
|
/* perform common board initialization */
|
||||||
board_common_init();
|
board_common_init();
|
||||||
|
|
||||||
@ -36,4 +37,5 @@ void board_init(void)
|
|||||||
gpio_init(SI7021_EN_PIN, GPIO_OUT);
|
gpio_init(SI7021_EN_PIN, GPIO_OUT);
|
||||||
gpio_set(SI7021_EN_PIN);
|
gpio_set(SI7021_EN_PIN);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,6 +32,7 @@ void board_init(void)
|
|||||||
/* initialize the CPU */
|
/* initialize the CPU */
|
||||||
cpu_init();
|
cpu_init();
|
||||||
|
|
||||||
|
#ifndef RIOTBOOT
|
||||||
/* perform common board initialization */
|
/* perform common board initialization */
|
||||||
board_common_init();
|
board_common_init();
|
||||||
|
|
||||||
@ -61,4 +62,5 @@ void board_init(void)
|
|||||||
(RGB_LED4_ENABLED << RGB_LED4_EN_BIT));
|
(RGB_LED4_ENABLED << RGB_LED4_EN_BIT));
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@ -28,6 +28,7 @@ void board_init(void)
|
|||||||
/* initialize the CPU */
|
/* initialize the CPU */
|
||||||
cpu_init();
|
cpu_init();
|
||||||
|
|
||||||
|
#ifndef RIOTBOOT
|
||||||
/* perform common board initialization */
|
/* perform common board initialization */
|
||||||
board_common_init();
|
board_common_init();
|
||||||
|
|
||||||
@ -36,4 +37,5 @@ void board_init(void)
|
|||||||
gpio_init(SI7021_EN_PIN, GPIO_OUT);
|
gpio_init(SI7021_EN_PIN, GPIO_OUT);
|
||||||
gpio_set(SI7021_EN_PIN);
|
gpio_set(SI7021_EN_PIN);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,6 +27,8 @@ void board_init(void)
|
|||||||
/* initialize the CPU */
|
/* initialize the CPU */
|
||||||
cpu_init();
|
cpu_init();
|
||||||
|
|
||||||
|
#ifndef RIOTBOOT
|
||||||
/* perform common board initialization */
|
/* perform common board initialization */
|
||||||
board_common_init();
|
board_common_init();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,6 +27,8 @@ void board_init(void)
|
|||||||
/* initialize the CPU */
|
/* initialize the CPU */
|
||||||
cpu_init();
|
cpu_init();
|
||||||
|
|
||||||
|
#ifndef RIOTBOOT
|
||||||
/* perform common board initialization */
|
/* perform common board initialization */
|
||||||
board_common_init();
|
board_common_init();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user