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

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

?? stm32f10x_tim.c

?? STM32F RFID通訊源代碼(支持雙向發(fā)送接收)
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
  u32 tmpccer = 0;

  tmpccer = TIMx->CCER;

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

  TIMx->CCER = tmpccer;
}

/*******************************************************************************
* Function Name  : TIM_OC4PolarityConfig
* Description    : Configures the 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;

  tmpccer = TIMx->CCER;

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

  TIMx->CCER = tmpccer;
}

/*******************************************************************************
* Function Name  : TIM_UpdateRequestConfig
* Description    : Configures the 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, u8 TIM_UpdateSource)
{
  u32 tmpcr1 = 0;

  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 = 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)
{
  if (Newstate != DISABLE)
  {
    /* Set the TI1S Bit */
    TIMx->CR2 |= CR2_TI1S_Set;
  }
  else
  {
    /* Reset the TI1S Bit */
    TIMx->CR2 &= CR2_TI1S_Reset;
  }
}

/*******************************************************************************
* Function Name  : TIM_SelectOnePulseMode
* Description    : Enables or disables the TIMx抯 One Pulse Mode.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_OPMode: specifies the OPM Mode to be used.
*                    This parameter can be one of the following values:
*                       - TIM_OPMode_Single
*                       - TIM_OPMode_Repetitive
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SelectOnePulseMode(TIM_TypeDef* TIMx, u16 TIM_OPMode)
{
  u32 tmpcr1 = 0;

  tmpcr1 = TIMx->CR1;

  /* Reset the OPM Bit */
  tmpcr1 &= CR1_OPM_Mask;

  /* Configure the OPM Mode */
  tmpcr1 |= TIM_OPMode;

  TIMx->CR1 = tmpcr1;
}

/*******************************************************************************
* Function Name  : TIM_SelectOutputTrigger
* Description    : Selects the TIM Trigger Output Mode.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_TRGOSource: specifies the Trigger Output source.
*                    This paramter can be one of the following values:
*                       - TIM_TRGOSource_Reset
*                       - TIM_TRGOSource_Enable
*                       - TIM_TRGOSource_Update
*                       - TIM_TRGOSource_OC1
*                       - TIM_TRGOSource_OC1Ref
*                       - TIM_TRGOSource_OC2Ref
*                       - TIM_TRGOSource_OC3Ref
*                       - TIM_TRGOSource_OC4Ref
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, u16 TIM_TRGOSource)
{
  u32 tmpcr2 = 0;

  tmpcr2 = TIMx->CR2;
  /* Reset the MMS Bits */
  tmpcr2 &= CR2_MMS_Mask;

  /* Select the TRGO source */
  tmpcr2 |=  TIM_TRGOSource;

  TIMx->CR2 = tmpcr2;
}

/*******************************************************************************
* Function Name  : TIM_SelectSlaveMode
* Description    : Selects the TIM Slave Mode.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_SlaveMode: specifies the Timer Slave Mode.
*                    This paramter can be one of the following values:
*                       - TIM_SlaveMode_Reset
*                       - TIM_SlaveMode_Gated
*                       - TIM_SlaveMode_Trigger
*                       - TIM_SlaveMode_External1
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, u16 TIM_SlaveMode)
{
  u32 tmpsmcr = 0;

  tmpsmcr = TIMx->SMCR;

  /* Reset the SMS Bits */
  tmpsmcr &= SMCR_SMS_Mask;

  /* Select the Slave Mode */
  tmpsmcr |= TIM_SlaveMode;

  TIMx->SMCR = tmpsmcr;
}

/*******************************************************************************
* Function Name  : TIM_SelectMasterSlaveMode
* Description    : Sets or Resets the TIM Master/Slave Mode.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_MasterSlaveMode: specifies the Timer Master Slave Mode.
*                    This paramter can be one of the following values:
*                       - TIM_MasterSlaveMode_Enable: synchronization between the
*                         current timer and its slaves (through TRGO).
*                       - TIM_MasterSlaveMode_Disable: No action
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SelectMasterSlaveMode(TIM_TypeDef* TIMx, u16 TIM_MasterSlaveMode)
{
  u32 tmpsmcr = 0;

  tmpsmcr = TIMx->SMCR;

  /* Set or Reset the MSM Bit */
  tmpsmcr &= SMCR_MSM_Mask;
  tmpsmcr |= TIM_MasterSlaveMode;

  TIMx->SMCR = tmpsmcr;
}

/*******************************************************************************
* Function Name  : TIM_SetAutoreload
* Description    : Sets the TIM Autoreload Register value
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - Autoreload: specifies the Autoreload register new value.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SetAutoreload(TIM_TypeDef* TIMx, u16 Autoreload)
{
  /* Set the Autoreload Register value */
  TIMx->ARR = Autoreload;
}

/*******************************************************************************
* Function Name  : TIM_SetCompare1
* Description    : Sets the TIM Capture Compare1 Register value
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - Compare1: specifies the Capture Compare1 register new value.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SetCompare1(TIM_TypeDef* TIMx, u16 Compare1)
{
  /* Set the Capture Compare1 Register value */
  TIMx->CCR1 = Compare1;
}

/*******************************************************************************
* Function Name  : TIM_SetCompare2
* Description    : Sets the TIM Capture Compare2 Register value
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - Compare2: specifies the Capture Compare2 register new value.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SetCompare2(TIM_TypeDef* TIMx, u16 Compare2)
{
  /* Set the Capture Compare2 Register value */
  TIMx->CCR2 = Compare2;
}

/*******************************************************************************
* Function Name  : TIM_SetCompare3
* Description    : Sets the TIM Capture Compare3 Register value
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - Compare3: specifies the Capture Compare3 register new value.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SetCompare3(TIM_TypeDef* TIMx, u16 Compare3)
{
  /* Set the Capture Compare3 Register value */
  TIMx->CCR3 = Compare3;
}

/*******************************************************************************
* Function Name  : TIM_SetCompare4
* Description    : Sets the TIM Capture Compare4 Register value
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - Compare4: specifies the Capture Compare4 register new value.
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SetCompare4(TIM_TypeDef* TIMx, u16 Compare4)
{
  /* Set the Capture Compare4 Register value */
  TIMx->CCR4 = Compare4;
}

/*******************************************************************************
* Function Name  : TIM_SetIC1Prescaler
* Description    : Sets the Input Capture 1 prescaler.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_IC1Prescaler: specifies the Input Capture1 prescaler
*                    new value.
*                    This parameter can be one of the following values:
*                       - TIM_ICPSC_DIV1: no prescaler
*                       - TIM_ICPSC_DIV2: capture is done once every 2 events
*                       - TIM_ICPSC_DIV4: capture is done once every 4 events
*                       - TIM_ICPSC_DIV8: capture is done once every 8 events
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SetIC1Prescaler(TIM_TypeDef* TIMx, u8 TIM_IC1Prescaler)
{
  u32 tmpccmr1 = 0;

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the IC1PSC Bits */
  tmpccmr1 &= CCMR_IC13PSC_Mask;

  /* Set the IC1PSC value */
  tmpccmr1 |= TIM_IC1Prescaler;

  TIMx->CCMR1 = tmpccmr1;
}

/*******************************************************************************
* Function Name  : TIM_SetIC2Prescaler
* Description    : Sets the Input Capture 2 prescaler.
* Input          : - TIMx: where x can be 2, 3 or 4 to select the TIM peripheral.
*                  - TIM_IC2Prescaler: specifies the Input Capture2 prescaler
*                    new value.
*                    This parameter can be one of the following values:
*                       - TIM_ICPSC_DIV1: no prescaler
*                       - TIM_ICPSC_DIV2: capture is done once every 2 events
*                       - TIM_ICPSC_DIV4: capture is done once every 4 events
*                       - TIM_ICPSC_DIV8: capture is done once every 8 events
* Output         : None
* Return         : None
*******************************************************************************/
void TIM_SetIC2Prescaler(TIM_TypeDef* TIMx, u8 TIM_IC2Prescaler)
{
  u32 tmpccmr1 = 0;

  tmpccmr1 = TIMx->CCMR1;

  /* Reset the IC2PSC Bits */
  tmpccmr1 &= CCMR_IC24PSC_Mask;

  /* Set the IC2PSC value */
  tmpccmr1 |= T

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产综合久久婷婷香蕉 | 欧美激情综合五月色丁香小说| 亚洲女同一区二区| 精品在线观看视频| 日本丰满少妇一区二区三区| 久久久精品人体av艺术| 日韩成人一区二区三区在线观看| av在线一区二区| 久久色成人在线| 日韩高清不卡在线| 欧美在线视频不卡| |精品福利一区二区三区| 国产乱人伦偷精品视频不卡| 欧美一级二级在线观看| 亚洲综合免费观看高清完整版 | 青青草成人在线观看| 91精品办公室少妇高潮对白| 亚洲国产电影在线观看| 精品一区二区在线视频| 在线观看91av| 亚洲一区在线电影| 一本色道综合亚洲| 中文字幕一区二区在线播放| 国产精品资源站在线| 精品国产免费久久| 美女脱光内衣内裤视频久久网站| 欧美片在线播放| 一个色综合av| 91麻豆国产福利在线观看| 中文字幕av一区二区三区免费看 | 亚洲猫色日本管| 粉嫩高潮美女一区二区三区| 久久久久久久久久久99999| 久久精品国产在热久久| 91麻豆精品国产91久久久久| 亚洲成人手机在线| 在线观看视频欧美| 亚洲午夜一区二区| 欧美性色黄大片手机版| 一区二区三区视频在线观看| 一本大道久久精品懂色aⅴ| 国产精品久久久久久久午夜片| 国产成人自拍网| 久久日一线二线三线suv| 国内不卡的二区三区中文字幕| 日韩欧美一二三| 九九精品视频在线看| 日韩精品一区二区三区swag | 亚洲视频小说图片| 色综合咪咪久久| 夜夜嗨av一区二区三区| 欧美日韩视频在线一区二区 | 国产欧美精品日韩区二区麻豆天美 | 91精品蜜臀在线一区尤物| 日日摸夜夜添夜夜添亚洲女人| 欧美日本高清视频在线观看| 日本不卡在线视频| 2022国产精品视频| 国产激情一区二区三区四区| 欧美国产乱子伦| 91视频免费看| 亚洲成a人片在线观看中文| 欧美福利电影网| 久久99精品国产.久久久久| 久久综合999| 成人av电影在线网| 亚洲综合免费观看高清完整版| 欧美二区三区的天堂| 久久99精品一区二区三区| 国产女人18毛片水真多成人如厕| 99久久夜色精品国产网站| 亚洲精品日产精品乱码不卡| 欧美乱妇15p| 蜜臀av一级做a爰片久久| 久久久久久97三级| 日本韩国视频一区二区| 日本欧美在线观看| 国产精品无遮挡| 91国产福利在线| 久久精品国产99久久6| 中文字幕国产一区| 欧美午夜精品一区二区三区| 另类的小说在线视频另类成人小视频在线 | 激情成人午夜视频| 国产精品国产a| 欧美日韩免费观看一区三区| 激情五月播播久久久精品| 国产精品剧情在线亚洲| 欧美日韩精品综合在线| 国产一二三精品| 亚洲精品国产视频| 欧美电影免费观看高清完整版在线| 成av人片一区二区| 日韩高清在线不卡| 国产精品美女久久久久久久久| 欧美色涩在线第一页| 国产乱人伦精品一区二区在线观看| 依依成人综合视频| 欧美精品一区二区三区四区 | 精品一区二区免费视频| 亚洲色图色小说| 欧美电影精品一区二区| 色婷婷精品大在线视频| 精品夜夜嗨av一区二区三区| 亚洲免费高清视频在线| 久久先锋资源网| 欧美色欧美亚洲另类二区| 国产suv精品一区二区883| 亚洲.国产.中文慕字在线| 亚洲国产精品激情在线观看| 日韩一区二区影院| 色婷婷综合五月| 国产精品一区二区在线看| 偷拍与自拍一区| 国产精品丝袜91| 日韩精品专区在线影院重磅| 欧美亚州韩日在线看免费版国语版| 高清不卡在线观看av| 人人爽香蕉精品| 亚洲一二三区不卡| 中文字幕一区av| 久久久亚洲高清| 91精品婷婷国产综合久久竹菊| 99精品热视频| 国产精品1区2区| 久久99精品久久久久| 天天做天天摸天天爽国产一区| 亚洲私人影院在线观看| 国产日产亚洲精品系列| 欧美成va人片在线观看| 欧美日韩情趣电影| 日本高清成人免费播放| 成人激情动漫在线观看| 韩国v欧美v亚洲v日本v| 日本成人在线电影网| 五月综合激情日本mⅴ| 亚洲免费高清视频在线| 成人免费一区二区三区视频| 久久精品亚洲一区二区三区浴池| 欧美大片在线观看| 欧美精品1区2区3区| 欧美三级在线看| 91精品1区2区| 欧美综合久久久| 日本韩国精品在线| 色婷婷精品大在线视频| 色网站国产精品| 91国在线观看| 日本韩国精品在线| 91黄色激情网站| 91久久线看在观草草青青| 91美女视频网站| 91亚洲午夜精品久久久久久| 成人av资源在线| 丁香婷婷综合色啪| 粉嫩av一区二区三区| 成人av综合一区| av福利精品导航| 91色综合久久久久婷婷| 91日韩在线专区| 在线精品视频一区二区| 在线中文字幕一区二区| 欧美中文一区二区三区| 欧美性xxxxxx少妇| 欧美精三区欧美精三区| 51久久夜色精品国产麻豆| 欧美一区二区三区人| 日韩欧美视频在线| 日韩女优av电影在线观看| 精品国产乱码久久久久久免费| 久久一留热品黄| 国产午夜久久久久| ...av二区三区久久精品| 一区二区三国产精华液| 亚洲大片一区二区三区| 奇米影视一区二区三区小说| 激情成人午夜视频| 成人午夜在线播放| 色综合天天性综合| 欧美日韩一区二区电影| 91精品国产色综合久久久蜜香臀| 日韩免费观看高清完整版| 久久精品视频免费观看| 亚洲日本韩国一区| 亚洲午夜免费电影| 久久激情五月婷婷| 成人视屏免费看| 日本精品视频一区二区| 日韩一二三四区| 国产欧美日韩视频在线观看| 亚洲精品国产一区二区精华液 | 午夜久久久久久电影| 久久99精品久久久久久国产越南 | 亚洲成人午夜影院| 韩国三级电影一区二区| 不卡的av在线播放| 欧美片网站yy| 久久日韩粉嫩一区二区三区| 亚洲精品一二三| 久久99精品国产麻豆不卡|