1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Merge pull request #9879 from basilfx/feature/efm32_dcdc_off

cpu: efm32: add support for no DC-DC converter
This commit is contained in:
Bas Stottelaar 2018-09-18 19:16:26 +02:00 committed by GitHub
commit 483ee31e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View File

@ -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
* @{

View File

@ -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
* @{

View File

@ -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