Rev 1 | Rev 238 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 196 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /******************** (C) COPYRIGHT 2006 STMicroelectronics ******************** |
1 | /******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** |
2 | * File Name : 91x_tim.c |
2 | * File Name : 91x_tim.c |
3 | * Author : MCD Application Team |
3 | * Author : MCD Application Team |
- | 4 | * Version : V2.1 |
|
4 | * Date First Issued : 05/18/2006 : Version 1.0 |
5 | * Date : 12/22/2008 |
5 | * Description : This file provides all the TIM software functions. |
6 | * Description : This file provides all the TIM firmware functions. |
6 | ******************************************************************************** |
- | |
7 | * History: |
- | |
8 | * 05/22/2007 : Version 1.2 |
- | |
9 | * 05/24/2006 : Version 1.1 |
- | |
10 | * 05/18/2006 : Version 1.0 |
- | |
11 | ******************************************************************************** |
7 | ******************************************************************************** |
12 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH |
8 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH |
13 | * CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS |
9 | * CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS |
14 | * A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT |
10 | * A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT |
15 | * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT |
11 | * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT |
Line 129... | Line 125... | ||
129 | /* APB clock */ |
125 | /* APB clock */ |
130 | TIMx->CR1 &= TIM_CLK_APB; |
126 | TIMx->CR1 &= TIM_CLK_APB; |
131 | } |
127 | } |
132 | else |
128 | else |
133 | { |
129 | { |
134 | /* External/SCU clock */ |
130 | /* External clock */ |
135 | TIMx->CR1 |= TIM_CLK_EXTERNAL; |
131 | TIMx->CR1 |= TIM_CLK_EXTERNAL; |
136 | if (TIM_InitStruct->TIM_Clock_Edge == TIM_CLK_EDGE_RISING) |
132 | if (TIM_InitStruct->TIM_Clock_Edge == TIM_CLK_EDGE_RISING) |
137 | { |
133 | { |
138 | /* Clock rising edge */ |
134 | /* Clock rising edge */ |
139 | TIMx->CR1 |= TIM_CLK_EDGE_RISING; |
135 | TIMx->CR1 |= TIM_CLK_EDGE_RISING; |
Line 687... | Line 683... | ||
687 | else |
683 | else |
688 | { |
684 | { |
689 | TIMx->CR2 &= TIM_DMA_DISABLE; |
685 | TIMx->CR2 &= TIM_DMA_DISABLE; |
690 | } |
686 | } |
691 | } |
687 | } |
692 | /******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/ |
688 | /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/ |