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:
commit
483ee31e46
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user