金牌会员
 
- 积分
- 1957
- 金钱
- 1957
- 注册时间
- 2014-8-8
- 在线时间
- 307 小时
|
发表于 2016-4-26 16:43:36
|
显示全部楼层
[mw_shl_code=c,true]/**
* @brief Sets the TIMx Capture Compare1 Register value
* @param TIMx: where x can be 1 to 17 except 6 and 7 to select the TIM peripheral.
* @param Compare1: specifies the Capture Compare1 register new value.
* @retval None
*/
void TIM_SetCompare1(TIM_TypeDef* TIMx, uint16_t Compare1)
{
/* Check the parameters */
assert_param(IS_TIM_LIST8_PERIPH(TIMx));
/* Set the Capture Compare1 Register value */
TIMx->CCR1 = Compare1;
}[/mw_shl_code] |
|