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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? stm32f10x_tim.c

?? 萬(wàn)利開(kāi)發(fā)板上的lcd例程
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
/*******************************************************************************
* Function Name  : TIM_ClearOC3Ref
* Description    : Clears or safeguards the OCREF3 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_ClearOC3Ref(TIM_TypeDef* TIMx, u16 TIM_OCClear)
{
  u32 tmpccmr2 = 0;

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

  tmpccmr2 = TIMx->CCMR2;

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

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

  TIMx->CCMR2 = (u16)tmpccmr2;
}

/*******************************************************************************
* Function Name  : TIM_ClearOC4Ref
* Description    : Clears or safeguards the OCREF4 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_ClearOC4Ref(TIM_TypeDef* TIMx, u16 TIM_OCClear)
{
  u32 tmpccmr2 = 0;

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

  tmpccmr2 = TIMx->CCMR2;

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

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

  TIMx->CCMR2 = (u16)tmpccmr2;
}

/*******************************************************************************
* Function Name  : TIM_UpdateDisableConfig
* Description    : Enables or Disables the TIMx Update event.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - Newstate: new state of the TIMx peripheral Preload register
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_UpdateDisableConfig(TIM_TypeDef* TIMx, FunctionalState Newstate)
{
  u32 tmpcr1 = 0;

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

  tmpcr1 = TIMx->CR1;

  if (Newstate != DISABLE)
  {
    /* Set the Update Disable Bit */
    tmpcr1 |= CR1_UDIS_Set;
  }
  else
  {
    /* Reset the Update Disable Bit */
    tmpcr1 &= CR1_UDIS_Reset;
  }

  TIMx->CR1 = (u16)tmpcr1;
}

/*******************************************************************************
* Function Name  : TIM_EncoderInterfaceConfig
* Description    : Configures the TIMx Encoder Interface.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_EncoderMode: specifies the TIMx Encoder Mode.
*                    This parameter can be one of the following values:
*                       - TIM_EncoderMode_TI1: Counter counts on TI1FP1 edge
*                         depending on TI2FP2 level.
*                       - TIM_EncoderMode_TI2: Counter counts on TI2FP2 edge
*                         depending on TI1FP1 level.
*                       - TIM_EncoderMode_TI12: Counter counts on both TI1FP1 and
*                         TI2FP2 edges depending on the level of the other input.
*                  - TIM_IC1Polarity: specifies the IC1 Polarity
*                    This parmeter can be one of the following values:
*                        - TIM_ICPolarity_Falling
*                        - TIM_ICPolarity_Rising
*                  - TIM_IC2Polarity: specifies the IC2 Polarity
*                    This parmeter can be one of the following values:
*                       - TIM_ICPolarity_Falling
*                       - TIM_ICPolarity_Rising
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_EncoderInterfaceConfig(TIM_TypeDef* TIMx, u16 TIM_EncoderMode,
                                u16 TIM_IC1Polarity, u16 TIM_IC2Polarity)
{
  u32 tmpsmcr = 0;
  u32 tmpccmr1 = 0;
  u32 tmpccer = 0;
    
  /* Check the parameters */
  assert(IS_TIM_ENCODER_MODE(TIM_EncoderMode));
  assert(IS_TIM_IC_POLARITY(TIM_IC1Polarity));
  assert(IS_TIM_IC_POLARITY(TIM_IC2Polarity));

  tmpsmcr = TIMx->SMCR;
  tmpccmr1 = TIMx->CCMR1;
  tmpccer = TIMx->CCER;

  /* Set the encoder Mode */
  tmpsmcr &= SMCR_SMS_Mask;
  tmpsmcr |= TIM_EncoderMode;

  /* Select the Capture Compare 1 and the Capture Compare 2 as input */
  tmpccmr1 &= CCMR_CC13S_Mask & CCMR_CC24S_Mask;
  tmpccmr1 |= CCMR_TI13Direct_Set | CCMR_TI24Direct_Set;

  /* Set the TI1 and the TI2 Polarities */
  tmpccer &= CCER_CC1P_Mask & CCER_CC2P_Mask;
  tmpccer |= (TIM_IC1Polarity | (u16)((u16)TIM_IC2Polarity << 4));

  TIMx->SMCR = (u16)tmpsmcr;

  TIMx->CCMR1 = (u16)tmpccmr1;

  TIMx->CCER = (u16)tmpccer;
}

/*******************************************************************************
* Function Name  : TIM_GenerateEvent
* Description    : Configures the TIMx event to be generate by software.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_EventSource: specifies the event source.
*                    This parameter can be one or more of the following values:
*                       - TIM_EventSource_Update: Timer update Event source
*                       - TIM_EventSource_CC1: Timer Capture Compare 1 Event source
*                       - TIM_EventSource_CC2: Timer Capture Compare 2 Event source
*                       - TIM_EventSource_CC3: Timer Capture Compare 3 Event source
*                       - TIM_EventSource_CC4: Timer Capture Compare 4 Event source
*                       - TIM_EventSource_Trigger: Timer Trigger Event source
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_GenerateEvent(TIM_TypeDef* TIMx, u16 TIM_EventSource)
{
  /* Check the parameters */
  assert(IS_TIM_EVENT_SOURCE(TIM_EventSource));

  /* Set the event sources */
  TIMx->EGR |= TIM_EventSource;
}

/*******************************************************************************
* Function Name  : TIM_OC1PolarityConfig
* Description    : Configures the TIMx channel 1 polarity.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCPolarity: specifies the OC1 Polarity
*                    This parmeter can be one of the following values:
*                       - TIM_OCPolarity_High: Output Compare active high
*                       - TIM_OCPolarity_Low: Output Compare active low
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC1PolarityConfig(TIM_TypeDef* TIMx, u16 TIM_OCPolarity)
{
  u32 tmpccer = 0;

  /* Check the parameters */
  assert(IS_TIM_OC_POLARITY(TIM_OCPolarity));

  tmpccer = TIMx->CCER;

  /* Set or Reset the CC1P Bit */
  tmpccer &= CCER_CC1P_Mask;
  tmpccer |= TIM_OCPolarity;

  TIMx->CCER = (u16)tmpccer;
}

/*******************************************************************************
* Function Name  : TIM_OC2PolarityConfig
* Description    : Configures the TIMx channel 2 polarity.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCPolarity: specifies the OC2 Polarity
*                    This parmeter can be one of the following values:
*                       - TIM_OCPolarity_High: Output Compare active high
*                       - TIM_OCPolarity_Low: Output Compare active low
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC2PolarityConfig(TIM_TypeDef* TIMx, u16 TIM_OCPolarity)
{
  u32 tmpccer = 0;

  /* Check the parameters */
  assert(IS_TIM_OC_POLARITY(TIM_OCPolarity));

  tmpccer = TIMx->CCER;

  /* Set or Reset the CC2P Bit */
  tmpccer &= CCER_CC2P_Mask;
  tmpccer |= (u16)((u16)TIM_OCPolarity << 4);

  TIMx->CCER = (u16)tmpccer;
}

/*******************************************************************************
* Function Name  : TIM_OC3PolarityConfig
* Description    : Configures the TIMx channel 3 polarity.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCPolarity: specifies the OC3 Polarity
*                    This parmeter can be one of the following values:
*                       - TIM_OCPolarity_High: Output Compare active high
*                       - TIM_OCPolarity_Low: Output Compare active low
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC3PolarityConfig(TIM_TypeDef* TIMx, u16 TIM_OCPolarity)
{
  u32 tmpccer = 0;

  /* Check the parameters */
  assert(IS_TIM_OC_POLARITY(TIM_OCPolarity));

  tmpccer = TIMx->CCER;

  /* Set or Reset the CC3P Bit */
  tmpccer &= CCER_CC3P_Mask;
  tmpccer |= (u16)((u16)TIM_OCPolarity << 8);

  TIMx->CCER = (u16)tmpccer;
}

/*******************************************************************************
* Function Name  : TIM_OC4PolarityConfig
* Description    : Configures the TIMx channel 4 polarity.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OCPolarity: specifies the OC4 Polarity
*                    This parmeter can be one of the following values:
*                       - TIM_OCPolarity_High: Output Compare active high
*                       - TIM_OCPolarity_Low: Output Compare active low
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_OC4PolarityConfig(TIM_TypeDef* TIMx, u16 TIM_OCPolarity)
{
  u32 tmpccer = 0;

  /* Check the parameters */
  assert(IS_TIM_OC_POLARITY(TIM_OCPolarity));

  tmpccer = TIMx->CCER;

  /* Set or Reset the CC4P Bit */
  tmpccer &= CCER_CC4P_Mask;
  tmpccer |= (u16)((u16)TIM_OCPolarity << 12);

  TIMx->CCER = (u16)tmpccer;
}

/*******************************************************************************
* Function Name  : TIM_UpdateRequestConfig
* Description    : Configures the TIMx Update Request Interrupt source.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_UpdateSource: specifies the Update source.
*                    This parameter can be one of the following values:
*                       - TIM_UpdateSource_Regular
*                       - TIM_UpdateSource_Global
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_UpdateRequestConfig(TIM_TypeDef* TIMx, u16 TIM_UpdateSource)
{
  u32 tmpcr1 = 0;

  /* Check the parameters */
  assert(IS_TIM_UPDATE_SOURCE(TIM_UpdateSource));

  tmpcr1 = TIMx->CR1;

  if (TIM_UpdateSource == TIM_UpdateSource_Regular)
  {
    /* Set the URS Bit */
    tmpcr1 |= CR1_URS_Set;
  }
  else
  {
    /* Reset the URS Bit */
    tmpcr1 &= CR1_URS_Reset;
  }
  TIMx->CR1 = (u16)tmpcr1;
}

/*******************************************************************************
* Function Name  : TIM_SelectHallSensor
* Description    : Enables or disables the TIMx抯 Hall sensor interface.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - Newstate: new state of the TIMx Hall sensor interface.
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SelectHallSensor(TIM_TypeDef* TIMx, FunctionalState Newstate)
{
  /* Check the parameters */
  assert(IS_FUNCTIONAL_STATE(Newstate));

  if (Newstate != DISABLE)
  {
   

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线一区二区综合免费视频| 日韩欧美你懂的| 成人av集中营| 成人综合婷婷国产精品久久| 国产精品白丝jk黑袜喷水| 久久国产婷婷国产香蕉| 奇米影视在线99精品| 日韩黄色片在线观看| 日韩电影在线免费观看| 日韩激情视频网站| 久久成人精品无人区| 久久99热这里只有精品| 狠狠色综合日日| 精彩视频一区二区三区| 国产精品一线二线三线精华| 国产精品一线二线三线| 99久久精品一区二区| 色综合久久中文字幕综合网| 色拍拍在线精品视频8848| 欧美色图12p| 欧美一区二区三区思思人| 精品国产亚洲一区二区三区在线观看 | 国产一区二区看久久| 国产一区二区91| 成人精品视频一区| 91福利在线导航| 欧美一级欧美三级在线观看 | 奇米影视一区二区三区小说| 久久丁香综合五月国产三级网站| 国产馆精品极品| 91网址在线看| 欧美日韩免费高清一区色橹橹 | 免费欧美高清视频| 久久国产精品99久久人人澡| 国产成人av在线影院| 91久久国产综合久久| 在线播放国产精品二区一二区四区| 91精品国产高清一区二区三区 | 欧美videossexotv100| 中文字幕免费在线观看视频一区| 一区二区在线观看视频| 全部av―极品视觉盛宴亚洲| 韩国中文字幕2020精品| 成人精品视频一区二区三区尤物| 91久久精品一区二区三区| 日韩亚洲欧美在线观看| 中文字幕第一区二区| 亚洲国产综合在线| 国产成人超碰人人澡人人澡| 欧美中文字幕久久| 亚洲精品一区二区三区香蕉| 亚洲精品一二三| 国产又黄又大久久| 欧美亚洲日本一区| 亚洲精品一区二区三区精华液| 亚洲欧洲精品一区二区三区 | 国产一区 二区 三区一级| 99re热视频这里只精品| 日韩精品一区二区三区在线观看| 1024成人网| 国产最新精品精品你懂的| 在线看日本不卡| 国产欧美日韩精品在线| 日韩黄色一级片| 一本到高清视频免费精品| 久久久久久久久一| 五月综合激情婷婷六月色窝| 成人av在线一区二区三区| 欧美一区二区三区四区五区| 亚洲激情av在线| 成人免费视频一区二区| 日韩视频免费观看高清在线视频| 亚洲男人的天堂在线aⅴ视频| 韩国一区二区在线观看| 欧美乱妇一区二区三区不卡视频| 成人欧美一区二区三区黑人麻豆| 经典三级视频一区| 91精品国产91综合久久蜜臀| 亚洲男人都懂的| 99热在这里有精品免费| 国产人成亚洲第一网站在线播放 | 国产精品一二三区| 日韩精品在线一区二区| 手机精品视频在线观看| 欧美在线free| 一卡二卡三卡日韩欧美| 91在线免费看| 国产精品麻豆99久久久久久| 国产精品香蕉一区二区三区| www激情久久| 日本不卡在线视频| 欧美日韩成人在线一区| 亚洲一区二区三区爽爽爽爽爽| 不卡的av在线| 中文字幕日韩一区| 91丨九色丨蝌蚪丨老版| 一区在线播放视频| 91性感美女视频| 综合色天天鬼久久鬼色| av资源网一区| 亚洲精品视频在线观看网站| av在线播放成人| 亚洲少妇最新在线视频| 91丝袜美女网| 一区二区三区欧美激情| 欧美优质美女网站| 午夜精品福利一区二区三区av| 欧美日韩国产精选| 日韩福利电影在线| 精品久久久久久综合日本欧美| 久久不见久久见免费视频1| 欧美精品一区二区三区一线天视频| 精品午夜久久福利影院| 国产日韩欧美电影| 91在线免费看| 亚洲va中文字幕| 日韩欧美在线影院| 国产**成人网毛片九色| 国产精品人妖ts系列视频| 成人精品在线视频观看| 亚洲精品国产一区二区三区四区在线| 色婷婷激情久久| 亚洲成a人v欧美综合天堂| 日韩美女视频一区二区在线观看| 国产另类ts人妖一区二区| 欧美激情资源网| 色综合久久天天| 日韩在线卡一卡二| 久久综合久色欧美综合狠狠| 大白屁股一区二区视频| 一区二区三区在线免费视频| 91超碰这里只有精品国产| 精品无人码麻豆乱码1区2区 | 日韩欧美一级二级| 国产精品一区二区你懂的| 自拍偷拍亚洲欧美日韩| 精品视频色一区| 美国三级日本三级久久99 | 久久99精品国产.久久久久| 久久精品人人做人人综合 | 91麻豆.com| 午夜精品一区二区三区三上悠亚| 欧美成人精品1314www| 国产91丝袜在线18| 亚洲国产综合色| 久久久国产精品午夜一区ai换脸| 在线视频你懂得一区| 久久不见久久见免费视频1| 日韩理论片网站| 日韩丝袜美女视频| 97精品久久久午夜一区二区三区| 日本在线不卡一区| 国产精品美女久久久久av爽李琼| 欧美人妇做爰xxxⅹ性高电影| 国产不卡高清在线观看视频| 亚洲一级不卡视频| 国产午夜精品一区二区三区视频 | 亚洲色图视频网| 欧美一区二区在线不卡| 成人va在线观看| 免费看日韩a级影片| 日韩理论片中文av| 久久久午夜电影| 欧美日韩电影在线播放| 99久久99久久久精品齐齐| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品盗摄一区二区三区| 精品电影一区二区三区 | 亚洲国产精品99久久久久久久久| 欧美美女喷水视频| 成人黄色电影在线| 国产乱码精品一区二区三区av | 国产精品第一页第二页第三页| 日韩一区二区在线观看视频播放| 99国产精品久久| 风流少妇一区二区| 美腿丝袜在线亚洲一区| 亚洲国产精品综合小说图片区| 最新热久久免费视频| 久久久久高清精品| 日韩精品专区在线| 制服丝袜激情欧洲亚洲| 欧美主播一区二区三区| 99久久久国产精品| 丁香激情综合国产| 国产激情偷乱视频一区二区三区| 美女一区二区三区| 天堂av在线一区| 亚洲午夜视频在线观看| 亚洲人成人一区二区在线观看| 国产午夜精品美女毛片视频| 欧美成人伊人久久综合网| 欧美日韩国产欧美日美国产精品| 日本道免费精品一区二区三区| kk眼镜猥琐国模调教系列一区二区| 国产一区二区三区免费在线观看 | 91精品国产综合久久精品app| 91玉足脚交白嫩脚丫在线播放| 成人免费视频一区二区| 成人激情黄色小说|