亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? stm32f10x_tim.c

?? 用于STM32實時時鐘程序,可以代PC8563使用.
?? C
?? 第 1 頁 / 共 5 頁
字號:
  }

  TIMx->CR1 = (u16)tmpcr1;
}

/*******************************************************************************
* Function Name  : TIM_SelectCCDMA
* Description    : Selects the TIMx peripheral Capture Compare DMA source.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - Newstate: new state of the Capture Compare DMA source
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SelectCCDMA(TIM_TypeDef* TIMx, FunctionalState Newstate)
{
  u32 tmpcr2 = 0;

  /* Check the parameters */
  assert(IS_FUNCTIONAL_STATE(Newstate));

  tmpcr2 = TIMx->CR2;

  if (Newstate != DISABLE)
  {
    /* Set the CCDS Bit */
    tmpcr2 |= CR2_CCDS_Set;
  }
  else
  {
    /* Reset the CCDS Bit */
    tmpcr2 &= CR2_CCDS_Reset;
  }

  TIMx->CR2 = (u16)tmpcr2;
}

/*******************************************************************************
* Function Name  : TIM_OC1PreloadConfig
* Description    : Enables or disables the TIMx peripheral Preload register on CCR1.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCPreload: new state of the TIMx peripheral Preload
*                    register
*                    This parameter can be one of the following values:
*                       - TIM_OCPreload_Enable
*                       - TIM_OCPreload_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC1PreloadConfig(TIM_TypeDef* TIMx, u16 TIM_OCPreload)
{
  u32 tmpccmr1 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload));

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the OCPE Bit */
  tmpccmr1 &= CCMR_OC13PE_Mask;

  /* Enable or Disable the Output Compare Preload feature */
  tmpccmr1 |= TIM_OCPreload;

  TIMx->CCMR1 = (u16)tmpccmr1;
}

/*******************************************************************************
* Function Name  : TIM_OC2PreloadConfig
* Description    : Enables or disables the TIMx peripheral Preload register on CCR2.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCPreload: new state of the TIMx peripheral Preload
*                    register
*                    This parameter can be one of the following values:
*                       - TIM_OCPreload_Enable
*                       - TIM_OCPreload_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC2PreloadConfig(TIM_TypeDef* TIMx, u16 TIM_OCPreload)
{
  u32 tmpccmr1 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload));

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the OCPE Bit */
  tmpccmr1 &= CCMR_OC24PE_Mask;

  /* Enable or Disable the Output Compare Preload feature */
  tmpccmr1 |= (u16)(TIM_OCPreload << 8);

  TIMx->CCMR1 = (u16)tmpccmr1;
}

/*******************************************************************************
* Function Name  : TIM_OC3PreloadConfig
* Description    : Enables or disables the TIMx peripheral Preload register on CCR3.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCPreload: new state of the TIMx peripheral Preload
*                    register
*                    This parameter can be one of the following values:
*                       - TIM_OCPreload_Enable
*                       - TIM_OCPreload_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC3PreloadConfig(TIM_TypeDef* TIMx, u16 TIM_OCPreload)
{
  u32 tmpccmr2 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload));

  tmpccmr2 = TIMx->CCMR2;

  /* Reset the OCPE Bit */
  tmpccmr2 &= CCMR_OC13PE_Mask;

  /* Enable or Disable the Output Compare Preload feature */
  tmpccmr2 |= TIM_OCPreload;

  TIMx->CCMR2 = (u16)tmpccmr2;
}

/*******************************************************************************
* Function Name  : TIM_OC4PreloadConfig
* Description    : Enables or disables the TIMx peripheral Preload register on CCR4.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCPreload: new state of the TIMx peripheral Preload
*                    register
*                    This parameter can be one of the following values:
*                       - TIM_OCPreload_Enable
*                       - TIM_OCPreload_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC4PreloadConfig(TIM_TypeDef* TIMx, u16 TIM_OCPreload)
{
  u32 tmpccmr2 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload));

  tmpccmr2 = TIMx->CCMR2;

  /* Reset the OCPE Bit */
  tmpccmr2 &= CCMR_OC24PE_Mask;

  /* Enable or Disable the Output Compare Preload feature */
  tmpccmr2 |= (u16)(TIM_OCPreload << 8);

  TIMx->CCMR2 = (u16)tmpccmr2;
}

/*******************************************************************************
* Function Name  : TIM_OC1FastConfig
* Description    : Configures the TIMx Output Compare 1 Fast feature.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCFast: new state of the Output Compare Fast Enable Bit.
*                    This parameter can be one of the following values:
*                       - TIM_OCFast_Enable
*                       - TIM_OCFast_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC1FastConfig(TIM_TypeDef* TIMx, u16 TIM_OCFast)
{
  u32 tmpccmr1 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCFAST_STATE(TIM_OCFast));

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the OCFE Bit */
  tmpccmr1 &= CCMR_OC13FE_Mask;

  /* Enable or Disable the Output Compare Fast Bit */
  tmpccmr1 |= TIM_OCFast;

  TIMx->CCMR1 = (u16)tmpccmr1;
}

/*******************************************************************************
* Function Name  : TIM_OC2FastConfig
* Description    : Configures the TIMx Output Compare 2 Fast feature.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCFast: new state of the Output Compare Fast Enable Bit.
*                    This parameter can be one of the following values:
*                       - TIM_OCFast_Enable
*                       - TIM_OCFast_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC2FastConfig(TIM_TypeDef* TIMx, u16 TIM_OCFast)
{
  u32 tmpccmr1 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCFAST_STATE(TIM_OCFast));

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the OCFE Bit */
  tmpccmr1 &= CCMR_OC24FE_Mask;

  /* Enable or Disable the Output Compare Fast Bit */
  tmpccmr1 |= (u16)(TIM_OCFast << 8);

  TIMx->CCMR1 = (u16)tmpccmr1;
}

/*******************************************************************************
* Function Name  : TIM_OC3FastConfig
* Description    : Configures the TIMx Output Compare 3 Fast feature.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCFast: new state of the Output Compare Fast Enable Bit.
*                    This parameter can be one of the following values:
*                       - TIM_OCFast_Enable
*                       - TIM_OCFast_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC3FastConfig(TIM_TypeDef* TIMx, u16 TIM_OCFast)
{
  u32 tmpccmr2 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCFAST_STATE(TIM_OCFast));

  tmpccmr2 = TIMx->CCMR2;

  /* Reset the OCFE Bit */
  tmpccmr2 &= CCMR_OC13FE_Mask;

  /* Enable or Disable the Output Compare Fast Bit */
  tmpccmr2 |= TIM_OCFast;

  TIMx->CCMR2 = (u16)tmpccmr2;
}

/*******************************************************************************
* Function Name  : TIM_OC4FastConfig
* Description    : Configures the TIMx Output Compare 4 Fast feature.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCFast: new state of the Output Compare Fast Enable Bit.
*                    This parameter can be one of the following values:
*                       - TIM_OCFast_Enable
*                       - TIM_OCFast_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC4FastConfig(TIM_TypeDef* TIMx, u16 TIM_OCFast)
{
  u32 tmpccmr2 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCFAST_STATE(TIM_OCFast));

  tmpccmr2 = TIMx->CCMR2;

  /* Reset the OCFE Bit */
  tmpccmr2 &= CCMR_OC24FE_Mask;

  /* Enable or Disable the Output Compare Fast Bit */
  tmpccmr2 |= (u16)(TIM_OCFast << 8);

  TIMx->CCMR2 = (u16)tmpccmr2;
}

/*******************************************************************************
* Function Name  : TIM_ClearOC1Ref
* Description    : Clears or safeguards the OCREF1 signal on an external event
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCClear: new state of the Output Compare Clear Enable Bit.
*                    This parameter can be one of the following values:
*                       - TIM_OCClear_Enable
*                       - TIM_OCClear_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_ClearOC1Ref(TIM_TypeDef* TIMx, u16 TIM_OCClear)
{
  u32 tmpccmr1 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCCLEAR_STATE(TIM_OCClear));

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the OCFE Bit */
  tmpccmr1 &= CCMR_OC13CE_Mask;

  /* Enable or Disable the Output Compare Clear Bit */
  tmpccmr1 |= (u16)(TIM_OCClear);

  TIMx->CCMR1 = (u16)tmpccmr1;
}

/*******************************************************************************
* Function Name  : TIM_ClearOC2Ref
* Description    : Clears or safeguards the OCREF2 signal on an external event
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCClear: new state of the Output Compare Clear Enable Bit.
*                    This parameter can be one of the following values:
*                       - TIM_OCClear_Enable
*                       - TIM_OCClear_Disable
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_ClearOC2Ref(TIM_TypeDef* TIMx, u16 TIM_OCClear)
{
  u32 tmpccmr1 = 0;

  /* Check the parameters */
  assert(IS_TIM_OCCLEAR_STATE(TIM_OCClear));

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the OCFE Bit */
  tmpccmr1 &= CCMR_OC24CE_Mask;

  /* Enable or Disable the Output Compare Clear Bit */
  tmpccmr1 |= (u16)(TIM_OCClear << 8);

  TIMx->CCMR1 = (u16)tmpccmr1;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人午夜短视频| 精品国产sm最大网站免费看| 日韩一区二区三区视频在线| 欧美国产精品中文字幕| 婷婷综合在线观看| av网站免费线看精品| 7777女厕盗摄久久久| 一区精品在线播放| 国内精品久久久久影院薰衣草 | 国产91精品一区二区麻豆亚洲| 欧美自拍丝袜亚洲| 中文字幕国产精品一区二区| 蜜臀久久99精品久久久久久9| 99精品欧美一区二区蜜桃免费| 精品国产伦理网| 日韩成人免费在线| 欧美天堂亚洲电影院在线播放| 中文字幕av不卡| 国产美女一区二区三区| 精品国一区二区三区| 日本亚洲电影天堂| 欧美精品在欧美一区二区少妇| 亚洲天堂久久久久久久| 国产91丝袜在线播放| 国产欧美日韩一区二区三区在线观看| 三级影片在线观看欧美日韩一区二区| 色999日韩国产欧美一区二区| 国产精品久久久久久久裸模 | 精品成人一区二区| 九九热在线视频观看这里只有精品| 欧美写真视频网站| 亚洲午夜久久久久久久久电影网| 色综合久久中文字幕综合网| 国产精品成人一区二区艾草 | 国产成人无遮挡在线视频| 欧美va亚洲va国产综合| 毛片一区二区三区| 欧美videossexotv100| 精品一区二区三区日韩| 欧美精品一区男女天堂| 精品一区二区成人精品| 久久婷婷一区二区三区| 国产伦精一区二区三区| 国产亚洲成aⅴ人片在线观看| 国产一区二区福利视频| 国产精品国产精品国产专区不蜜| av电影在线不卡| 亚洲另类在线视频| 欧美三级日韩三级国产三级| 男人的天堂亚洲一区| 久久一区二区视频| 成人app网站| 一区二区三区欧美视频| 这里是久久伊人| 国产精品77777| 中文字幕日韩av资源站| 欧美另类高清zo欧美| 久久99国产精品尤物| 中文av字幕一区| 欧美色成人综合| 狠狠色丁香婷婷综合| 亚洲私人影院在线观看| 欧美日韩一区高清| 国产乱理伦片在线观看夜一区| 亚洲欧美在线观看| 欧美一区二区三区性视频| 国产伦精品一区二区三区免费| 亚洲欧美自拍偷拍| 欧美一级高清片| 91首页免费视频| 极品美女销魂一区二区三区| 亚洲欧美日韩小说| 久久综合视频网| 在线观看免费亚洲| 国产福利一区二区| 午夜精品久久久久影视| 国产日韩精品久久久| 欧美精品色一区二区三区| 国产久卡久卡久卡久卡视频精品| 亚洲综合在线电影| 国产精品青草综合久久久久99| 欧美日韩久久久一区| www.亚洲在线| 国产呦精品一区二区三区网站| 亚洲一区电影777| 欧美国产一区二区在线观看 | 国精产品一区一区三区mba桃花| 亚洲美女在线国产| 国产精品免费av| 欧美成人精品福利| 欧美日本在线一区| 97精品视频在线观看自产线路二| 精品一区二区国语对白| 三级精品在线观看| 亚洲一二三四区不卡| 日本一区二区三区四区| 欧美一二三区在线观看| 欧美午夜精品久久久久久超碰 | 日韩福利电影在线| 亚洲一区二区精品久久av| 亚洲手机成人高清视频| 亚洲国产高清aⅴ视频| 日韩欧美一级在线播放| 91麻豆精品91久久久久同性| 91久久人澡人人添人人爽欧美| 粉嫩一区二区三区性色av| 国产伦精品一区二区三区在线观看| 奇米777欧美一区二区| 婷婷丁香激情综合| 午夜视频在线观看一区| 亚洲一线二线三线视频| 一级中文字幕一区二区| 亚洲欧洲中文日韩久久av乱码| 国产日产欧美一区| 亚洲国产成人私人影院tom| 中文字幕av不卡| 中文字幕亚洲区| 亚洲人成网站在线| 亚洲综合激情小说| 一区二区三区在线不卡| 亚洲黄色免费网站| 天堂一区二区在线| 免费成人你懂的| 精品一区二区三区在线观看| 久久aⅴ国产欧美74aaa| 国产精品影音先锋| 99久久综合狠狠综合久久| av在线不卡免费看| 91蝌蚪porny| 欧美日韩国产精品成人| 日韩午夜激情视频| 久久精品一区二区| 亚洲裸体xxx| 免费精品视频最新在线| 精品一区二区影视| youjizz国产精品| 欧美日韩夫妻久久| 精品国产一二三| 日韩一区中文字幕| 视频一区在线播放| 国产成人精品免费在线| 91麻豆精品在线观看| 欧美一区二区在线播放| 国产欧美一区二区精品性色 | 日韩午夜精品电影| 国产精品另类一区| 亚洲大片一区二区三区| 久久se这里有精品| 色欲综合视频天天天| 777久久久精品| 国产精品不卡视频| 日韩一区精品字幕| av亚洲精华国产精华精| 国产伦精品一区二区三区免费| 成人激情综合网站| 欧美美女激情18p| 日本一区二区三区在线观看| 亚洲国产精品精华液网站| 激情图片小说一区| 国产一区二区在线视频| 午夜久久久影院| 成人一区二区三区视频在线观看| 91成人在线精品| 国产人成亚洲第一网站在线播放| 亚洲午夜精品网| 99久久精品久久久久久清纯| 日韩一区二区不卡| 亚洲自拍偷拍综合| 成人一区二区三区中文字幕| 日韩欧美色综合| 亚洲韩国一区二区三区| 成人国产一区二区三区精品| 日韩三级免费观看| 亚洲国产精品久久不卡毛片| a亚洲天堂av| 久久精品夜夜夜夜久久| 蜜桃91丨九色丨蝌蚪91桃色| 欧美私人免费视频| 亚洲欧洲成人av每日更新| 国产真实精品久久二三区| 91精品国产综合久久精品app| 亚洲色图19p| 99久久精品国产一区| 久久免费看少妇高潮| 久久精品国产秦先生| 欧美浪妇xxxx高跟鞋交| 亚洲综合在线第一页| 91搞黄在线观看| 亚洲天堂av老司机| 91丝袜国产在线播放| 国产精品人妖ts系列视频| 国产尤物一区二区在线 | 成人黄色av网站在线| 久久综合久久99| 国产乱子伦一区二区三区国色天香| 日韩精品一区二区三区视频| 日韩激情中文字幕| 日韩午夜在线影院| 国模一区二区三区白浆| 久久综合狠狠综合久久综合88 |