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

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

?? 75x_adc.c

?? freertosV4.40 是一種small的嵌入式系統。利于嵌入式開好者入門學習嵌入式操作系統。通過對于源碼的學習可以很好的掌握freertos的運行機制。
?? C
?? 第 1 頁 / 共 3 頁
字號:
}

/*******************************************************************************
* Function Name  : ADC_ITConfig
* Description    : Enables or disables the specified ADC interrupts.
* Input          : - ADC_IT: specifies the ADC interrupts to be enabled or disabled.
*                    This parameter can be any combination of the following values:
*                         - ADC_IT_ECH:  End of chain conversion interrupt
*                         - ADC_IT_EOC:  End of channel conversion interrupt
*                         - ADC_IT_JECH: Injected end of chain conversion interrupt
*                         - ADC_IT_JEOC: Injected end of channel conversion interrupt
*                         - ADC_IT_AnalogWatchdog0_LowThreshold:
*                                        Analog Watchdog 0 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog0_HighThreshold:
*                                        Analog Watchdog 0 HighThreshold interrupt
*                         - ADC_IT_AnalogWatchdog1_LowThreshold:
*                                        Analog Watchdog 1 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog1_HighThreshold:
*                                        Analog Watchdog 1 HighThreshold interrupt
*                         - ADC_IT_AnalogWatchdog2_LowThreshold:
*                                        Analog Watchdog 2 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog2_HighThreshold:
*                                        Analog Watchdog 2 HighThreshold interrupt
*                         - ADC_IT_AnalogWatchdog3_LowThreshold:
*                                        Analog Watchdog 3 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog3_HighThreshold:
*                                         Analog Watchdog 5 HighThreshold interrupt
*                         - ADC_IT_ALL:  All interrupts
*                  - NewState: new state of the specified ADC interrupts.
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_ITConfig(u16 ADC_IT, FunctionalState NewState)
{
  if (NewState == ENABLE)
  {
    /* Enable the selected ADC interrupts */
    ADC->IMR |= ADC_IT;
  }
  else
  {
    /* Disable the selected ADC interrupts */
    ADC->IMR &= ~ADC_IT;
  }
}

/*******************************************************************************
* Function Name  : ADC_DMAConfig
* Description    : Configures the ADC抯 DMA interface.
* Input          : - ADC_DMA_CHANNEL: specifies the channels to be enabled or 
*                    disabled for DMA transfer. This parameter can be any 
*                    combination of ADC_DMA_CHANNELx where x can be (0..15). 
*                  - NewState: new state of the specified ADC DMA channels.
*                    This parameter can be: ENABLE or DISABLE.
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_DMAConfig(u16 ADC_DMA_CHANNEL, FunctionalState NewState)
{
  if(NewState == ENABLE)
  {
    /* Enable DMA for the selected channels */
    ADC->DMAR |= ADC_DMA_CHANNEL ;
  }
  else
  {
    /* Disable DMA for the selected channels */
    ADC->DMAR &= ~ADC_DMA_CHANNEL;
  }
}

/*******************************************************************************
* Function Name  : ADC_DMACmd
* Description    : Enable or disable the DMA transfer for the ADC.
* Input          : - ADC_DMA: specifies the DMA command. This parameter can be 
*                    one of the following values:
*                         - ADC_DMA_Disable: disable the DMA capability
*                         - ADC_DMA_Enable: enabled by setting the global 
*                           enable bit
*                         - ADC_DMA_ExtTrigger_HighLevel: enabled by detection of
*                           high level of TIM2 OC2 signal
*                         - ADC_DMA_ExtTrigger_LowLevel: enabled by detection of
*                           low level of TIM2 OC2 signal
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_DMACmd(u16 ADC_DMA)
{
  /* Configure the DMA external trigger enable */
  switch (ADC_DMA)
  {
    case ADC_DMA_Disable :
      /* Disable DMA transfer */
      ADC->DMAE &= ADC_DMA_Disable;
      break;
      
    case ADC_DMA_Enable :
      /* Enable DMA transfer */
      ADC->DMAE |= ADC_DMA_Enable;
      break;
      
    case ADC_DMA_ExtTrigger_HighLevel :
      /* Enable DMA transfer on high level of the external trigger (TIM2) */
      ADC->DMAE &= ADC_DMA_Disable;
      ADC->DMAE |= ADC_DMA_ExtTrigger_HighLevel;
      break;
      
    case ADC_DMA_ExtTrigger_LowLevel :
      /* Enable DMA transfer on low level of the external trigger (TIM2) */
      ADC->DMAE |= ADC_DMA_ExtEnable_Mask; 
      ADC->DMAE &= ADC_DMA_ExtTrigger_LowLevel;
      break;

    default:
      break;      
  }  
}

/*******************************************************************************
* Function Name  : ADC_GetDMAFirstEnabledChannel
* Description    : Gets the first DMA-enabled channel configured at the time that
*                  DMA was last globally enabled.
* Input          : None
* Output         : None
* Return         : The first DMA enabled channel
*******************************************************************************/
u16 ADC_GetDMAFirstEnabledChannel(void)
{
  /* Return the DMA first enabled channel */
  return (ADC->DMAE & ADC_DMAFirstEnabledChannel_Mask);
}

/*******************************************************************************
* Function Name  : ADC_GetFlagStatus
* Description    : Checks whether the specified ADC flag is set or not.
* Input          : - ADC_FLAG: specifies the ADC flag to check. This parameter 
*                    can be one of the following values:
*                         - ADC_FLAG_ECH:  End of chain conversion Flag
*                         - ADC_FLAG_EOC:  End of channel conversion Flag
*                         - ADC_FLAG_JECH: End of injected chain conversion Flag
*                         - ADC_FLAG_JEOC: End of injected channel conversion Flag
*                         - ADC_FLAG_AnalogWatchdog0_LowThreshold:  
*                                          Analog Watchdog 0 LowThreshold Flag        
*                         - ADC_FLAG_AnalogWatchdog0_HighThreshold: 
*                                          Analog Watchdog 0 HighThreshold Flag 	
*                         - ADC_FLAG_AnalogWatchdog1_LowThreshold:  
*                                          Analog Watchdog 1 LowThreshold Flag  	
*                         - ADC_FLAG_AnalogWatchdog1_HighThreshold: 
*                                          Analog Watchdog 1 HighThreshold Flag  	
*                         - ADC_FLAG_AnalogWatchdog2_LowThreshold:  
*                                          Analog Watchdog 2 LowThreshold Flag  	
*                         - ADC_FLAG_AnalogWatchdog2_HighThreshold: 
*                                          Analog Watchdog 2 HighThreshold Flag 	
*                         - ADC_FLAG_AnalogWatchdog3_LowThreshold:  
*                                          Analog Watchdog 3 LowThreshold Flag  	
*                         - ADC_FLAG_AnalogWatchdog3_HighThreshold: 
*                                          Analog Watchdog 3 HighThreshold Flag 
* Output         : None	
* Return         : The new state of the ADC_FLAG (SET or RESET).
*******************************************************************************/
FlagStatus ADC_GetFlagStatus(u16 ADC_FLAG)
{
  /* Check the status of the specified ADC flag */
  if((ADC->PBR & ADC_FLAG) != RESET)
  {
    /* Return SET if ADC_FLAG is set */
    return SET;
  }
  else
  {
    /* Return RESET if ADC_FLAG is reset */
    return RESET;
  }
}

/*******************************************************************************
* Function Name  : ADC_ClearFlag
* Description    : Clears the ADC抯 pending flags.  
* Input          : - ADC_FLAG: specifies the flag to clear. This parameter can 
*                    be any combination of the following values:
*                         - ADC_FLAG_ECH:  End of chain conversion flag
*                         - ADC_FLAG_EOC:  End of channel conversion flag
*                         - ADC_FLAG_JECH: Injected end of chain conversion flag
*                         - ADC_FLAG_JEOC: Injected end of channel conversion flag
*                         - ADC_FLAG_AnalogWatchdog0_LowThreshold:  
*                                         Analog Watchdog 0 LowThreshold flag        
*                         - ADC_FLAG_AnalogWatchdog0_HighThreshold: 
*                                         Analog Watchdog 0 HighThreshold flag 	
*                         - ADC_FLAG_AnalogWatchdog1_LowThreshold:  
*                                         Analog Watchdog 1 LowThreshold flag  	
*                         - ADC_FLAG_AnalogWatchdog1_HighThreshold: 
*                                         Analog Watchdog 1 HighThreshold flag  	
*                         - ADC_FLAG_AnalogWatchdog2_LowThreshold:  
*                                         Analog Watchdog 2 LowThreshold flag  	
*                         - ADC_FLAG_AnalogWatchdog2_HighThreshold: 
*                                         Analog Watchdog 2 HighThreshold flag 	
*                         - ADC_FLAG_AnalogWatchdog3_LowThreshold:  
*                                         Analog Watchdog 3 LowThreshold flag  	
*                         - ADC_FLAG_AnalogWatchdog3_HighThreshold: 
*                                         Analog Watchdog 3 HighThreshold flag  	
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_ClearFlag(u16 ADC_FLAG)
{
  /* Clear the selected ADC flag */ 
  ADC->PBR = ADC_FLAG;
}

/*******************************************************************************
* Function Name  : ADC_GetITStatus
* Description    : Checks whether the specified ADC interrupt has occured or not.
* Input          : - ADC_IT: specifies the ADC interrupt source to check. This 
*                    parameter can be one of the following values:
*                         - ADC_IT_ECH :End of chain conversion interrupt 
*                         - ADC_IT_EOC :End of channel conversion interrupt
*                         - ADC_IT_JECH :End of injected chain conversion interrupt
*                         - ADC_IT_JEOC :End of injected channel conversion interrupt
*                         - ADC_IT_AnalogWatchdog0_LowThreshold:  
*                                         Analog Watchdog 0 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog0_HighThreshold: 
*                                         Analog Watchdog 0 HighThreshold interrupt
*                         - ADC_IT_AnalogWatchdog1_LowThreshold:  
*                                         Analog Watchdog 1 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog1_HighThreshold: 
*                                         Analog Watchdog 1 HighThreshold interrupt
*                         - ADC_IT_AnalogWatchdog2_LowThreshold:  
*                                         Analog Watchdog 2 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog2_HighThreshold: 
*                                         Analog Watchdog 2 HighThreshold interrupt
*                         - ADC_IT_AnalogWatchdog3_LowThreshold:  
*                                         Analog Watchdog 3 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog3_HighThreshold: 
*                                         Analog Watchdog 3 HighThreshold interrupt
* Output         : None	
* Return         : The new state of the ADC_IT (SET or RESET).
*******************************************************************************/
ITStatus ADC_GetITStatus(u16 ADC_IT)
{
  /* Check the status of the specified ADC interrupt */
  if((ADC->PBR & ADC_IT) != RESET)
  {
    /* Return SET if the ADC interrupt flag is set */
    return SET;
  }
  else
  {
    /* Return RESET if the ADC interrupt flag is reset */
    return RESET;
  }
}

/*******************************************************************************
* Function Name  : ADC_ClearITPendingBit
* Description    : Clears the ADC抯 interrupt pending bits.  
* Input          : - ADC_IT: specifies the interrupt pending bit to clear. This 
*                    parameter can be can be any combination of the following 
*                    values:
*                         - ADC_IT_ECH:  End of chain conversion interrupt
*                         - ADC_IT_EOC:  End of channel conversion interrupt
*                         - ADC_IT_JECH: Injected end of chain conversion interrupt
*                         - ADC_IT_JEOC: Injected end of channel conversion interrupt
*                         - ADC_IT_AnalogWatchdog0_LowThreshold:  
*                                         Analog Watchdog 0 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog0_HighThreshold: 
*                                         Analog Watchdog 0 HighThreshold interrupt
*                         - ADC_IT_AnalogWatchdog1_LowThreshold:  
*                                         Analog Watchdog 1 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog1_HighThreshold: 
*                                         Analog Watchdog 1 HighThreshold interrupt
*                         - ADC_IT_AnalogWatchdog2_LowThreshold:  
*                                         Analog Watchdog 2 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog2_HighThreshold: 
*                                         Analog Watchdog 2 HighThreshold interrupt
*                         - ADC_IT_AnalogWatchdog3_LowThreshold:  
*                                         Analog Watchdog 3 LowThreshold interrupt
*                         - ADC_IT_AnalogWatchdog3_HighThreshold: 
*                                         Analog Watchdog 5 HighThreshold interrupt
* Output         : None
* Return         : None
*******************************************************************************/
void ADC_ClearITPendingBit(u16 ADC_IT)
{
  /* Clear the selected ADC interrupts pending bits */
  ADC->PBR = ADC_IT;
}

/******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜久久久久久久久| 亚洲最大成人综合| 欧日韩精品视频| 国产麻豆成人精品| 一区二区三区.www| 国产欧美一区二区三区在线看蜜臀 | 日韩欧美区一区二| 99re这里都是精品| 美女www一区二区| 亚洲国产cao| 综合久久久久综合| 欧美国产日韩精品免费观看| 欧美一区二区三区免费在线看 | 日韩1区2区日韩1区2区| 亚洲视频在线观看一区| 国产欧美综合在线| 久久一夜天堂av一区二区三区| 激情久久五月天| 日韩主播视频在线| 亚洲成人综合视频| 一片黄亚洲嫩模| 国产精品国产三级国产普通话蜜臀| 国产成人在线网站| 激情都市一区二区| 久久99精品久久久久久动态图| 欧美v日韩v国产v| 欧美三级蜜桃2在线观看| 97国产一区二区| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 日韩久久久精品| 欧美日韩aaaaaa| 精品视频一区三区九区| 在线区一区二视频| 91久久精品网| 色偷偷88欧美精品久久久| 91网站在线播放| 91免费视频网| 欧美在线观看禁18| 欧美日韩aaaaa| 91精品国产欧美一区二区| 日韩一区和二区| 精品99久久久久久| 久久看人人爽人人| 国产欧美视频在线观看| 国产精品久久毛片av大全日韩| 欧美三级视频在线播放| 欧美日韩亚洲综合在线| 欧美精品丝袜久久久中文字幕| 国产一区二区三区免费在线观看| 国产精品美女视频| 国产精品网站在线播放| 亚洲色图视频网| 亚洲制服欧美中文字幕中文字幕| 久久久久久日产精品| 日本一区二区三区电影| 久久99精品国产.久久久久久| 国产精品国产三级国产普通话蜜臀 | 色婷婷香蕉在线一区二区| 一本大道综合伊人精品热热| 色婷婷久久99综合精品jk白丝| 激情五月播播久久久精品| 国产成人免费在线视频| 色偷偷88欧美精品久久久| 欧洲亚洲精品在线| 欧美一个色资源| 国产欧美日韩精品一区| 亚洲精品videosex极品| 日韩精品一区第一页| 国产一区二区三区黄视频 | 91国产福利在线| 日韩欧美一二三| 国产精品乱人伦一区二区| 一区二区三区四区乱视频| 日韩福利电影在线| 国产91精品一区二区麻豆亚洲| 日韩av成人高清| 国产老肥熟一区二区三区| 不卡在线观看av| 欧美四级电影在线观看| 精品久久久久久久一区二区蜜臀| 7777精品伊人久久久大香线蕉经典版下载 | 欧美激情自拍偷拍| 亚洲乱码国产乱码精品精小说| 亚洲国产成人私人影院tom| 亚洲一区二区视频| 国产一区二区剧情av在线| 色国产综合视频| 久久综合色婷婷| 亚洲综合激情小说| 91国模大尺度私拍在线视频| 欧美一区二区在线播放| 国产精品国产三级国产aⅴ入口| 国产亚洲短视频| 伊人夜夜躁av伊人久久| 韩国v欧美v亚洲v日本v| 欧洲一区二区三区在线| 国产女主播一区| 青椒成人免费视频| 在线观看免费成人| 国产精品欧美极品| 美洲天堂一区二卡三卡四卡视频| 蜜桃在线一区二区三区| 色婷婷激情久久| 亚洲国产精品传媒在线观看| 日韩国产一二三区| 在线观看不卡视频| 国产精品国产三级国产aⅴ中文| 亚洲精品水蜜桃| 丁香亚洲综合激情啪啪综合| 欧美一区二区精品| 亚洲mv大片欧洲mv大片精品| 91麻豆蜜桃一区二区三区| 国产欧美日本一区视频| 韩国女主播一区二区三区| 欧美一区二区三区的| 亚洲午夜一区二区| 一本色道**综合亚洲精品蜜桃冫 | 欧美一卡二卡在线观看| 亚洲国产一区在线观看| 成a人片国产精品| 国产欧美日韩麻豆91| 国产精品资源在线观看| 精品国产亚洲一区二区三区在线观看| 久久久www成人免费无遮挡大片| 国产精品另类一区| 国产成人夜色高潮福利影视| 久久综合久久99| 国产美女视频一区| 国产午夜精品久久久久久免费视| 国产精品久久久一本精品| 日本高清无吗v一区| 欧美色视频在线| 亚洲一区二区三区四区不卡| 91麻豆免费视频| 亚洲影院免费观看| 欧美日韩视频在线第一区 | 一本大道综合伊人精品热热 | 国产乱码精品一品二品| 日韩欧美国产精品| 蜜臀a∨国产成人精品| 日韩你懂的在线播放| 久久精品国产亚洲一区二区三区| 国产99久久久久久免费看农村| 成人avav影音| 亚洲免费观看高清完整版在线观看| 一区二区三区精品久久久| 色婷婷精品久久二区二区蜜臀av | 久久夜色精品国产欧美乱极品| 成人欧美一区二区三区黑人麻豆 | 韩国一区二区三区| 精品少妇一区二区三区在线播放| 中文字幕亚洲一区二区va在线| 亚洲第一综合色| 日韩视频免费直播| 国产主播一区二区| 中文字幕一区二区三区在线观看| 蜜桃av一区二区在线观看| 日韩一二三区不卡| 国产成人精品一区二| 亚洲免费观看高清完整| 欧美美女直播网站| 极品少妇xxxx精品少妇偷拍| 亚洲国产精品成人综合| 色婷婷久久久亚洲一区二区三区| 国产欧美日韩精品一区| 色诱视频网站一区| 五月天激情小说综合| 精品第一国产综合精品aⅴ| 成人av网址在线观看| 亚洲福利一区二区三区| 欧美精品一区二区高清在线观看| 午夜成人免费电影| 国产欧美日韩不卡免费| 在线日韩国产精品| 国产精品一区二区在线观看不卡| 国产精品久久一卡二卡| www.99精品| 水野朝阳av一区二区三区| 精品国产欧美一区二区| av中文字幕亚洲| 免费观看在线综合色| 中文字幕一区二区三区av| 88在线观看91蜜桃国自产| 国产不卡视频在线播放| 天天综合网天天综合色| 国产精品久久久久久久久久久免费看 | 亚洲婷婷在线视频| 欧美酷刑日本凌虐凌虐| 高潮精品一区videoshd| 日韩高清不卡一区二区三区| 中文字幕一区二区三区四区不卡| 不卡av在线免费观看| 日韩成人午夜电影| 国产精品成人在线观看| 欧美mv日韩mv亚洲| 在线日韩一区二区| 成人性生交大片免费看视频在线 | 欧美一区二区三区爱爱| gogo大胆日本视频一区| 激情深爱一区二区|