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

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

?? stm32f10x_tim.c

?? LCD液晶顯示驅動,芯片為ST7565,
?? C
?? 第 1 頁 / 共 5 頁
字號:

  /* Write to TIMx CR1 register */
  TIMx->CR1 = tmpcr1;
}

/*******************************************************************************
* Function Name  : TIM_SelectInputTrigger
* Description    : Selects the Input Trigger source
* Input          : - TIMx: where x can be  1, 2, 3, 4, 5 or 8 to select the TIM 
*                    peripheral.
*                  - TIM_InputTriggerSource: The Input Trigger source.
*                    This parameter can be one of the following values:
*                       - TIM_TS_ITR0: Internal Trigger 0
*                       - TIM_TS_ITR1: Internal Trigger 1
*                       - TIM_TS_ITR2: Internal Trigger 2
*                       - TIM_TS_ITR3: Internal Trigger 3
*                       - TIM_TS_TI1F_ED: TI1 Edge Detector
*                       - TIM_TS_TI1FP1: Filtered Timer Input 1
*                       - TIM_TS_TI2FP2: Filtered Timer Input 2
*                       - TIM_TS_ETRF: External Trigger input
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, u16 TIM_InputTriggerSource)
{
  u16 tmpsmcr = 0;

  /* Check the parameters */
  assert_param(IS_TIM_123458_PERIPH(TIMx));
  assert_param(IS_TIM_TRIGGER_SELECTION(TIM_InputTriggerSource));

  /* Get the TIMx SMCR register value */
  tmpsmcr = TIMx->SMCR;

  /* Reset the TS Bits */
  tmpsmcr &= SMCR_TS_Mask;

  /* Set the Input Trigger source */
  tmpsmcr |= TIM_InputTriggerSource;

  /* Write to TIMx SMCR */
  TIMx->SMCR = tmpsmcr;
}

/*******************************************************************************
* Function Name  : TIM_EncoderInterfaceConfig
* Description    : Configures the TIMx Encoder Interface.
* Input          : - TIMx: where x can be  1, 2, 3, 4, 5 or 8 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: IC Falling edge.
*                        - TIM_ICPolarity_Rising: IC Rising edge.
*                  - TIM_IC2Polarity: specifies the IC2 Polarity
*                    This parmeter can be one of the following values:
*                        - TIM_ICPolarity_Falling: IC Falling edge.
*                        - TIM_ICPolarity_Rising: IC Rising edge.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_EncoderInterfaceConfig(TIM_TypeDef* TIMx, u16 TIM_EncoderMode,
                                u16 TIM_IC1Polarity, u16 TIM_IC2Polarity)
{
  u16 tmpsmcr = 0;
  u16 tmpccmr1 = 0;
  u16 tmpccer = 0;
    
  /* Check the parameters */
  assert_param(IS_TIM_123458_PERIPH(TIMx));
  assert_param(IS_TIM_ENCODER_MODE(TIM_EncoderMode));
  assert_param(IS_TIM_IC_POLARITY(TIM_IC1Polarity));
  assert_param(IS_TIM_IC_POLARITY(TIM_IC2Polarity));

  /* Get the TIMx SMCR register value */
  tmpsmcr = TIMx->SMCR;

  /* Get the TIMx CCMR1 register value */
  tmpccmr1 = TIMx->CCMR1;

  /* Get the TIMx CCER register value */
  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_Reset & CCER_CC2P_Reset;
  tmpccer |= (TIM_IC1Polarity | (u16)(TIM_IC2Polarity << 4));

  /* Write to TIMx SMCR */
  TIMx->SMCR = tmpsmcr;

  /* Write to TIMx CCMR1 */
  TIMx->CCMR1 = tmpccmr1;

  /* Write to TIMx CCER */
  TIMx->CCER = tmpccer;
}

/*******************************************************************************
* Function Name  : TIM_ForcedOC1Config
* Description    : Forces the TIMx output 1 waveform to active or inactive level.
* Input          : - TIMx: where x can be  1, 2, 3, 4, 5 or 8 to select the TIM 
*                    peripheral.
*                  - TIM_ForcedAction: specifies the forced Action to be set to
*                    the output waveform.
*                    This parameter can be one of the following values:
*                       - TIM_ForcedAction_Active: Force active level on OC1REF
*                       - TIM_ForcedAction_InActive: Force inactive level on
*                         OC1REF.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_ForcedOC1Config(TIM_TypeDef* TIMx, u16 TIM_ForcedAction)
{
  u16 tmpccmr1 = 0;

  /* Check the parameters */
  assert_param(IS_TIM_123458_PERIPH(TIMx));
  assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction));

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the OC1M Bits */
  tmpccmr1 &= CCMR_OC13M_Mask;

  /* Configure The Forced output Mode */
  tmpccmr1 |= TIM_ForcedAction;

  /* Write to TIMx CCMR1 register */
  TIMx->CCMR1 = tmpccmr1;
}

/*******************************************************************************
* Function Name  : TIM_ForcedOC2Config
* Description    : Forces the TIMx output 2 waveform to active or inactive level.
* Input          : - TIMx: where x can be  1, 2, 3, 4, 5 or 8 to select the TIM 
*                    peripheral.
*                  - TIM_ForcedAction: specifies the forced Action to be set to
*                    the output waveform.
*                    This parameter can be one of the following values:
*                       - TIM_ForcedAction_Active: Force active level on OC2REF
*                       - TIM_ForcedAction_InActive: Force inactive level on
*                         OC2REF.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_ForcedOC2Config(TIM_TypeDef* TIMx, u16 TIM_ForcedAction)
{
  u16 tmpccmr1 = 0;

  /* Check the parameters */
  assert_param(IS_TIM_123458_PERIPH(TIMx));
  assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction));

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the OC2M Bits */
  tmpccmr1 &= CCMR_OC24M_Mask;

  /* Configure The Forced output Mode */
  tmpccmr1 |= (u16)(TIM_ForcedAction << 8);

  /* Write to TIMx CCMR1 register */
  TIMx->CCMR1 = tmpccmr1;
}

/*******************************************************************************
* Function Name  : TIM_ForcedOC3Config
* Description    : Forces the TIMx output 3 waveform to active or inactive level.
* Input          : - TIMx: where x can be  1, 2, 3, 4, 5 or 8 to select the TIM 
*                    peripheral.
*                  - TIM_ForcedAction: specifies the forced Action to be set to
*                    the output waveform.
*                    This parameter can be one of the following values:
*                       - TIM_ForcedAction_Active: Force active level on OC3REF
*                       - TIM_ForcedAction_InActive: Force inactive level on
*                         OC3REF.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_ForcedOC3Config(TIM_TypeDef* TIMx, u16 TIM_ForcedAction)
{
  u16 tmpccmr2 = 0;

  /* Check the parameters */
  assert_param(IS_TIM_123458_PERIPH(TIMx));
  assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction));

  tmpccmr2 = TIMx->CCMR2;

  /* Reset the OC1M Bits */
  tmpccmr2 &= CCMR_OC13M_Mask;

  /* Configure The Forced output Mode */
  tmpccmr2 |= TIM_ForcedAction;

  /* Write to TIMx CCMR2 register */
  TIMx->CCMR2 = tmpccmr2;
}

/*******************************************************************************
* Function Name  : TIM_ForcedOC4Config
* Description    : Forces the TIMx output 4 waveform to active or inactive level.
* Input          : - TIMx: where x can be  1, 2, 3, 4, 5 or 8 to select the TIM 
*                    peripheral.
*                  - TIM_ForcedAction: specifies the forced Action to be set to
*                    the output waveform.
*                    This parameter can be one of the following values:
*                       - TIM_ForcedAction_Active: Force active level on OC4REF
*                       - TIM_ForcedAction_InActive: Force inactive level on
*                         OC4REF.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_ForcedOC4Config(TIM_TypeDef* TIMx, u16 TIM_ForcedAction)
{
  u16 tmpccmr2 = 0;

  /* Check the parameters */
  assert_param(IS_TIM_123458_PERIPH(TIMx));
  assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction));
  tmpccmr2 = TIMx->CCMR2;

  /* Reset the OC2M Bits */
  tmpccmr2 &= CCMR_OC24M_Mask;

  /* Configure The Forced output Mode */
  tmpccmr2 |= (u16)(TIM_ForcedAction << 8);

  /* Write to TIMx CCMR2 register */
  TIMx->CCMR2 = tmpccmr2;
}

/*******************************************************************************
* Function Name  : TIM_ARRPreloadConfig
* Description    : Enables or disables TIMx peripheral Preload register on ARR.
* Input          : - TIMx: where x can be  1, 2, 3, 4, 5 or 8 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_ARRPreloadConfig(TIM_TypeDef* TIMx, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_TIM_ALL_PERIPH(TIMx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE)
  {
    /* Set the ARR Preload Bit */
    TIMx->CR1 |= CR1_ARPE_Set;
  }
  else
  {
    /* Reset the ARR Preload Bit */
    TIMx->CR1 &= CR1_ARPE_Reset;
  }
}

/*******************************************************************************
* Function Name  : TIM_SelectCOM
* Description    : Selects the TIM peripheral Commutation event.
* Input          :- TIMx: where x can be  1 or 8 to select the TIMx peripheral
*                 - NewState: new state of the Commutation event.
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SelectCOM(TIM_TypeDef* TIMx, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_TIM_18_PERIPH(TIMx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));

  if (NewState != DISABLE)
  {
    /* Set the COM Bit */
    TIMx->CR2 |= CR2_CCUS_Set;
  }
  else
  {
    /* Reset the COM Bit */
    TIMx->CR2 &= CR2_CCUS_Reset;
  }
}

/*******************************************************************************
* Function Name  : TIM_SelectCCDMA
* Description    : Selects the TIMx peripheral Capture Compare DMA source.
* Input          : - TIMx: where x can be  1, 2, 3, 4, 5 or 8 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)
{
  /* Check the parameters */
  assert_pa

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人动漫一区| 91在线精品秘密一区二区| 国产日产欧美一区二区三区| 欧美日韩久久久一区| 91视频免费看| 色综合天天做天天爱| 97久久超碰国产精品| 99综合影院在线| 成人18视频在线播放| 成人黄色在线视频| 成人国产精品视频| 精品视频1区2区| 欧美三级日韩在线| 在线观看视频一区二区欧美日韩| 日本高清无吗v一区| 99国产精品一区| 91麻豆国产香蕉久久精品| 337p日本欧洲亚洲大胆色噜噜| 成人涩涩免费视频| www一区二区| 99热这里都是精品| 精品一区二区三区免费毛片爱 | 91国模大尺度私拍在线视频| 91美女蜜桃在线| 91久久精品一区二区| 欧美tk—视频vk| 一区二区三区日韩在线观看| 欧美日精品一区视频| 精品av久久707| 一区二区三区在线免费| 老司机午夜精品| 欧美一级爆毛片| 精品久久久久香蕉网| 日精品一区二区三区| 在线视频欧美精品| 精品国产乱码久久久久久免费| 久久久不卡影院| 亚洲午夜在线视频| 国产成人av福利| 欧美三级蜜桃2在线观看| 久久这里只有精品首页| 一区二区三区鲁丝不卡| 国精产品一区一区三区mba视频| 99精品黄色片免费大全| 宅男在线国产精品| 亚洲日本丝袜连裤袜办公室| 美女脱光内衣内裤视频久久网站| 高清在线不卡av| 欧美专区在线观看一区| 国产精品色在线| 久草精品在线观看| 色拍拍在线精品视频8848| 精品国产精品网麻豆系列| 亚洲自拍与偷拍| 欧美日韩中文字幕一区| 国产精品毛片久久久久久| 精品制服美女丁香| 欧美性色黄大片手机版| 国产精品久久久久aaaa樱花| 久99久精品视频免费观看| 欧美日韩在线一区二区| 日韩一区在线看| av影院午夜一区| 国产亚洲精品7777| 国内成人精品2018免费看| 91精品国产欧美一区二区18| 亚洲综合男人的天堂| 91丨porny丨户外露出| 国产精品丝袜黑色高跟| 国产一区二区三区国产| 日韩欧美国产一二三区| 免费观看一级欧美片| 欧美日产国产精品| 午夜欧美一区二区三区在线播放| 91激情五月电影| 亚洲免费电影在线| 欧美亚洲另类激情小说| 一区二区三区免费在线观看| 欧美综合亚洲图片综合区| 亚洲黄网站在线观看| 欧美系列在线观看| 亚洲国产另类av| 777色狠狠一区二区三区| 午夜伦欧美伦电影理论片| 欧美日本在线观看| 婷婷综合久久一区二区三区| 正在播放一区二区| 美国精品在线观看| 精品成人a区在线观看| 国产91丝袜在线18| 中文幕一区二区三区久久蜜桃| a4yy欧美一区二区三区| 亚洲国产精品久久不卡毛片| 在线电影一区二区三区| 久久99久久久欧美国产| 国产婷婷色一区二区三区四区 | 国产一区视频导航| 久久欧美一区二区| 东方aⅴ免费观看久久av| 专区另类欧美日韩| 欧美蜜桃一区二区三区| 国产在线一区二区| 综合久久国产九一剧情麻豆| 91超碰这里只有精品国产| 久久国产精品99久久久久久老狼 | 亚洲女子a中天字幕| 色欧美片视频在线观看| 日韩中文字幕麻豆| 国产日韩视频一区二区三区| 91福利资源站| 韩国在线一区二区| 亚洲精品成人精品456| 日韩欧美国产一区二区三区| 99久久精品免费| 蜜臀久久久99精品久久久久久| 欧美国产综合一区二区| 欧美精品欧美精品系列| 国产伦理精品不卡| 亚洲成人免费av| 国产精品污污网站在线观看| 欧美精品在线视频| 99综合影院在线| 激情综合色丁香一区二区| 亚洲欧美另类图片小说| 欧美大度的电影原声| 欧美亚洲国产怡红院影院| 国产一区二区不卡| 日本不卡不码高清免费观看| 亚洲欧洲精品成人久久奇米网| 在线成人av影院| 91麻豆国产精品久久| 成人性视频免费网站| 中文av字幕一区| 1024成人网色www| 亚洲va欧美va人人爽午夜| 在线观看日产精品| 成人伦理片在线| 久久不见久久见中文字幕免费| 亚洲午夜激情网页| 亚洲精品第1页| 中文字幕欧美激情| 日本一区二区在线不卡| 久久日韩精品一区二区五区| 91麻豆精品91久久久久久清纯 | 欧美国产精品一区二区| 日韩精品一区二区三区在线| 91麻豆精品国产91久久久使用方法| 成人小视频免费观看| 国产盗摄视频一区二区三区| 久久精品72免费观看| 乱一区二区av| 蜜桃在线一区二区三区| 久久se精品一区精品二区| 蜜桃av一区二区三区| 日日夜夜免费精品| 日av在线不卡| 亚洲国产欧美日韩另类综合 | 91精品国产色综合久久ai换脸| 99久久免费精品| www.色综合.com| www..com久久爱| 99精品视频一区二区三区| 99久久99久久综合| 在线免费av一区| 精品污污网站免费看| 日韩视频一区在线观看| 欧美精品一区二区精品网| 久久久久国产一区二区三区四区 | av在线综合网| 在线亚洲欧美专区二区| 欧美色图天堂网| 日韩欧美国产精品| 欧美激情一区二区三区全黄| 中文字幕亚洲区| 亚洲gay无套男同| 久久99精品国产| 成人晚上爱看视频| 欧美少妇bbb| 精品国产乱码久久久久久1区2区 | 亚洲欧美偷拍另类a∨色屁股| 制服丝袜在线91| 欧美一级日韩免费不卡| 久久综合色综合88| 色综合一区二区三区| 91精品国产色综合久久久蜜香臀| 精品久久久久久久久久久久包黑料 | 日韩精品中午字幕| 精品国产1区二区| 亚洲精品视频自拍| 久久疯狂做爰流白浆xx| 成人av第一页| 日韩欧美国产综合在线一区二区三区| 久久久久国色av免费看影院| 亚洲一区电影777| 精品一区二区三区影院在线午夜 | 《视频一区视频二区| 蜜桃视频第一区免费观看| 91性感美女视频| 久久一留热品黄| 日韩中文字幕av电影|