Skip to content
Snippets Groups Projects
Unverified Commit 483ee31e authored by Bas Stottelaar's avatar Bas Stottelaar Committed by GitHub
Browse files

Merge pull request #9879 from basilfx/feature/efm32_dcdc_off

cpu: efm32: add support for no DC-DC converter
parents 76558bd6 e12d4e8a
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,15 @@ extern "C" {
#endif
/** @} */
/**
* @name DC-DC configuration
* @{
*/
#ifdef EMU_DCDCINIT_OFF
#error "This option will soft-brick your board. Please remove it."
#endif
/** @} */
/**
* @name ADC configuration
* @{
......
......@@ -54,6 +54,15 @@ extern "C" {
#endif
/** @} */
/**
* @name DC-DC configuration
* @{
*/
#ifdef EMU_DCDCINIT_OFF
#error "This option will soft-brick your board. Please remove it."
#endif
/** @} */
/**
* @name ADC configuration
* @{
......
......@@ -56,9 +56,13 @@
*/
static void dcdc_init(void)
{
#ifdef EMU_DCDCINIT_OFF
EMU_DCDCPowerOff();
#else
EMU_DCDCInit_TypeDef init_dcdc = EMU_DCDCINIT;
EMU_DCDCInit(&init_dcdc);
#endif
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment