aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F37x/hal_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-17 08:46:51 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-17 08:46:51 +0000
commit5f4fb7dff9a86a507a73e940cea3af7e776b7492 (patch)
tree33681c506e782da7c6aecccae761f9cb6fbefa5b /os/hal/platforms/STM32F37x/hal_lld.c
parent3fc18fd71fd1d3266b4c606db52e2404b7bc9d77 (diff)
downloadChibiOS-5f4fb7dff9a86a507a73e940cea3af7e776b7492.tar.gz
ChibiOS-5f4fb7dff9a86a507a73e940cea3af7e776b7492.tar.bz2
ChibiOS-5f4fb7dff9a86a507a73e940cea3af7e776b7492.zip
STM32F37x ADC related changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5446 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F37x/hal_lld.c')
-rw-r--r--os/hal/platforms/STM32F37x/hal_lld.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32F37x/hal_lld.c b/os/hal/platforms/STM32F37x/hal_lld.c
index d3d809662..57457d67d 100644
--- a/os/hal/platforms/STM32F37x/hal_lld.c
+++ b/os/hal/platforms/STM32F37x/hal_lld.c
@@ -179,9 +179,9 @@ void stm32_clock_init(void) {
#endif
/* Clock settings.*/
- RCC->CFGR = STM32_MCOSEL | STM32_USBPRE | STM32_PLLMUL |
- STM32_PLLSRC | STM32_PPRE1 | STM32_PPRE2 |
- STM32_HPRE;
+ RCC->CFGR = STM32_SDPRE | STM32_MCOSEL | STM32_USBPRE |
+ STM32_PLLMUL | STM32_PLLSRC | STM32_ADCPRE |
+ STM32_PPRE1 | STM32_PPRE2 | STM32_HPRE;
RCC->CFGR2 = STM32_PREDIV;
RCC->CFGR3 = STM32_USART3SW | STM32_USART2SW | STM32_I2C2SW |
STM32_I2C1SW | STM32_USART1SW;