aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32F334-DISCOVERY
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-03-14 22:20:28 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-03-14 22:20:28 +0000
commit516ac1a7654591f4ed9fbbf3c5330027f5c10e50 (patch)
tree3ba680e1ac3086965b3083ed76ffaa410c68bad2 /demos/STM32/RT-STM32F334-DISCOVERY
parent3237ad67f64a1f7a9679d155a058821c18953348 (diff)
downloadChibiOS-516ac1a7654591f4ed9fbbf3c5330027f5c10e50.tar.gz
ChibiOS-516ac1a7654591f4ed9fbbf3c5330027f5c10e50.tar.bz2
ChibiOS-516ac1a7654591f4ed9fbbf3c5330027f5c10e50.zip
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
Diffstat (limited to 'demos/STM32/RT-STM32F334-DISCOVERY')
-rw-r--r--demos/STM32/RT-STM32F334-DISCOVERY/main.c5
-rw-r--r--demos/STM32/RT-STM32F334-DISCOVERY/mcuconf.h2
2 files changed, 6 insertions, 1 deletions
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