diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-02-28 18:44:46 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-02-28 18:44:46 +0000 |
commit | 6b5ddb71fcb396ec826a283427b4771018d193e8 (patch) | |
tree | 89b2fdc761a8a39cc75db7b97a91f4088da6612e /os/hal/platforms/STM32/hal_lld.c | |
parent | 381bddaf5af985848e36ed8abbd4321bbb442538 (diff) | |
download | ChibiOS-6b5ddb71fcb396ec826a283427b4771018d193e8.tar.gz ChibiOS-6b5ddb71fcb396ec826a283427b4771018d193e8.tar.bz2 ChibiOS-6b5ddb71fcb396ec826a283427b4771018d193e8.zip |
GPT driver model, STM32 GPT driver implementation, not tested, documentation not done yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2779 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/hal_lld.c')
-rw-r--r-- | os/hal/platforms/STM32/hal_lld.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/hal_lld.c b/os/hal/platforms/STM32/hal_lld.c index 8d8322033..cbbdf1587 100644 --- a/os/hal/platforms/STM32/hal_lld.c +++ b/os/hal/platforms/STM32/hal_lld.c @@ -57,6 +57,12 @@ */
void hal_lld_init(void) {
+ /* Reset of all the peripherals.*/
+ RCC->APB1RSTR = 0xFFFFFFFF;
+ RCC->APB2RSTR = 0xFFFFFFFF;
+ RCC->APB1RSTR = 0;
+ RCC->APB2RSTR = 0;
+
/* SysTick initialization using the system clock.*/
SysTick->LOAD = STM32_HCLK / CH_FREQUENCY - 1;
SysTick->VAL = 0;
|