From 516ac1a7654591f4ed9fbbf3c5330027f5c10e50 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Mon, 14 Mar 2016 22:20:28 +0000 Subject: Improved comment related to Buck disabling, fixed wrong PLL Multiplier value git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9108 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM32/RT-STM32F334-DISCOVERY/main.c | 5 +++++ demos/STM32/RT-STM32F334-DISCOVERY/mcuconf.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'demos/STM32') diff --git a/demos/STM32/RT-STM32F334-DISCOVERY/main.c b/demos/STM32/RT-STM32F334-DISCOVERY/main.c index f39ea27eb..3379e92f1 100644 --- a/demos/STM32/RT-STM32F334-DISCOVERY/main.c +++ b/demos/STM32/RT-STM32F334-DISCOVERY/main.c @@ -61,8 +61,13 @@ int main(void) { halInit(); chSysInit(); + /* + * Turning off buck switch. Note that this means to completely turn of the + * High Brightness LED which is driven by the buck converter. + */ palSetLineMode(LINE_BK_Drive, PAL_MODE_OUTPUT_PUSHPULL); palClearLine(LINE_BK_Drive); + /* * Activates the serial driver 2 using the driver default configuration. */ diff --git a/demos/STM32/RT-STM32F334-DISCOVERY/mcuconf.h b/demos/STM32/RT-STM32F334-DISCOVERY/mcuconf.h index 06db92bf9..7732226d6 100644 --- a/demos/STM32/RT-STM32F334-DISCOVERY/mcuconf.h +++ b/demos/STM32/RT-STM32F334-DISCOVERY/mcuconf.h @@ -46,7 +46,7 @@ #define STM32_SW STM32_SW_PLL #define STM32_PLLSRC STM32_PLLSRC_HSI #define STM32_PREDIV_VALUE 1 -#define STM32_PLLMUL_VALUE 12 +#define STM32_PLLMUL_VALUE 9 #define STM32_HPRE STM32_HPRE_DIV1 #define STM32_PPRE1 STM32_PPRE1_DIV2 #define STM32_PPRE2 STM32_PPRE2_DIV2 -- cgit v1.2.3