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

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

?? comparator_drv.c

?? 這是無刷直流電機的控制程序
?? C
字號:
//! @file comparator_drv.c
//!
//! Copyright (c) 2004
//!
//! Please read file license.txt for copyright notice.
//!
//! @brief This file contains the low level functions for the analog comparators
//!
//! @version 1.4 (demo-bldc-sensor-at90pwm3-4_2_0)
//!
//! @todo
//! @bug

//_____  I N C L U D E S ___________________________________________________
#include "config.h"
#include "comparator_drv.h"

//_____ M A C R O S ________________________________________________________


//_____ P R I V A T E    D E C L A R A T I O N _____________________________


//_____ D E F I N I T I O N ________________________________________________


//_____ D E C L A R A T I O N ______________________________________________
//! Configures the comparator0 accordingly to the comparator0 Defines
//! Configuration values.
//! Take care that you have to select the comparators' inputs ports as
//! analog inputs thanks to the DIDR0 and DIDR1 registers.
//!
#ifdef USE_COMP0 //!< this define is set on config.h file

void init_comparator0(void)
{
#   if (COMPARATOR0_IT == 1)
       Enable_comparator0_interrupt();
#   elif (COMPARATOR0_IT == 0)
       Disable_comparator0_interrupt();
#   else
#      error (COMPARATOR0_IT should be 0 or 1... See config.h file)
#   endif


#   if (COMPARATOR0_IT_EVENT == 3)
       Comparator0_it_on_output_rising_edge();
#   elif (COMPARATOR0_IT_EVENT == 2)
       Comparator0_it_on_output_falling_edge();
#   elif (COMPARATOR0_IT_EVENT == 0)
       Comparator0_it_on_output_toggle();
#   else
#      error (COMPARATOR0_IT_EVENT should be 0, 2 or 3... See config.h file)
#   endif

#   if (COMPARATOR0_NEGATIVE_INPUT == 5)
       Set_comparator0_ni_dac();
#   elif (COMPARATOR0_NEGATIVE_INPUT == 4)
       Set_comparator0_ni_acmp();
#   elif (COMPARATOR0_NEGATIVE_INPUT == 3)
       Set_comparator0_ni_vref_1_60();
#   elif (COMPARATOR0_NEGATIVE_INPUT == 2)
       Set_comparator0_ni_vref_2_13();
#   elif (COMPARATOR0_NEGATIVE_INPUT == 1)
       Set_comparator0_ni_vref_3_20();
#   elif (COMPARATOR0_NEGATIVE_INPUT == 0)
       Set_comparator0_ni_vref_6_40();
#   else
#      error (COMPARATOR0_NEGATIVE_INPUT should be 0, 1, 2, 3, 4 or 5... See config.h file)
#   endif
    Enable_comparator0();
}
#endif // USE_COMP0

//! Configures the comparator1 accordingly to the comparator1 Defines
//! Configuration values.
//! Take care that you have to select the comparators' inputs ports as
//! analog inputs thanks to the DIDR0 and DIDR1 registers.
//!
#ifdef USE_COMP1 //!< this define is set on config.h file

void init_comparator1(void)
{
    Enable_comparator1();
#   if (COMPARATOR1_IT == 1)
       Enable_comparator1_interrupt();
#   elif (COMPARATOR1_IT == 0)
       Disable_comparator1_interrupt();
#   else
#      error (COMPARATOR1_IT should be 0 or 1... See config.h file)
#   endif


#   if (COMPARATOR1_IT_EVENT == 3)
       Comparator1_it_on_output_rising_edge();
#   elif (COMPARATOR1_IT_EVENT == 2)
       Comparator1_it_on_output_falling_edge();
#   elif (COMPARATOR1_IT_EVENT == 0)
       Comparator1_it_on_output_toggle();
#   else
#      error (COMPARATOR1_IT_EVENT should be 0, 2 or 3... See config.h file)
#   endif

#   if (COMPARATOR1_NEGATIVE_INPUT == 5)
       Set_comparator1_ni_dac();
#   elif (COMPARATOR1_NEGATIVE_INPUT == 4)
       Set_comparator1_ni_acmp();
#   elif (COMPARATOR1_NEGATIVE_INPUT == 3)
       Set_comparator1_ni_vref_1_60();
#   elif (COMPARATOR1_NEGATIVE_INPUT == 2)
       Set_comparator1_ni_vref_2_13();
#   elif (COMPARATOR1_NEGATIVE_INPUT == 1)
       Set_comparator1_ni_vref_3_20();
#   elif (COMPARATOR1_NEGATIVE_INPUT == 0)
       Set_comparator1_ni_vref_6_40();
#   else
#      error (COMPARATOR1_NEGATIVE_INPUT should be 0, 1, 2, 3, 4 or 5... See config.h file)
#   endif
}
#endif // USE_COMP1

//! Configures the comparator2 accordingly to the comparator2 Defines
//! Configuration values.
//! Take care that you have to select the comparators' inputs ports as
//! analog inputs thanks to the DIDR0 and DIDR1 registers.
//!
#ifdef USE_COMP2  //!< this define is set on config.h file

void init_comparator2(void)
{
    Enable_comparator2();
#   if (COMPARATOR2_IT == 1)
       Enable_comparator2_interrupt();
#   elif (COMPARATOR2_IT == 0)
       Disable_comparator2_interrupt();
#   else
#      error (COMPARATOR2_IT should be 0 or 1... See config.h file)
#   endif


#   if (COMPARATOR2_IT_EVENT == 3)
       Comparator2_it_on_output_rising_edge();
#   elif (COMPARATOR2_IT_EVENT == 2)
       Comparator2_it_on_output_falling_edge();
#   elif (COMPARATOR2_IT_EVENT == 0)
       Comparator2_it_on_output_toggle();
#   else
#      error (COMPARATOR2_IT_EVENT should be 0, 2 or 3... See config.h file)
#   endif

#   if (COMPARATOR2_NEGATIVE_INPUT == 5)
       Set_comparator2_ni_dac();
#   elif (COMPARATOR2_NEGATIVE_INPUT == 4)
       Set_comparator2_ni_acmp();
#   elif (COMPARATOR2_NEGATIVE_INPUT == 3)
       Set_comparator2_ni_vref_1_60();
#   elif (COMPARATOR2_NEGATIVE_INPUT == 2)
       Set_comparator2_ni_vref_2_13();
#   elif (COMPARATOR2_NEGATIVE_INPUT == 1)
       Set_comparator2_ni_vref_3_20();
#   elif (COMPARATOR2_NEGATIVE_INPUT == 0)
       Set_comparator2_ni_vref_6_40();
#   else
#      error (COMPARATOR2_NEGATIVE_INPUT should be 0, 1, 2, 3, 4 or 5... See config.h file)
#   endif
}
#endif // USE_COMP2

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色网站国产精品| 欧美熟乱第一页| 欧美亚洲国产一区二区三区| 精品国免费一区二区三区| 中文字幕亚洲欧美在线不卡| 美国欧美日韩国产在线播放| 一本大道av一区二区在线播放| 欧美成人三级在线| 亚洲mv在线观看| 91成人免费电影| 国产精品免费视频网站| 黄一区二区三区| 日韩一区二区免费电影| 午夜精品久久久久影视| 在线亚洲一区二区| 亚洲摸摸操操av| 99re热视频精品| 国产精品精品国产色婷婷| 国产精品一品二品| 欧美精品一区二区精品网| 免费观看在线色综合| 欧美精品v国产精品v日韩精品| 亚洲午夜久久久久中文字幕久| 一本久道久久综合中文字幕| 国产精品国产自产拍高清av| 风流少妇一区二区| 国产丝袜美腿一区二区三区| 国产福利一区二区三区| 久久久高清一区二区三区| 国产综合一区二区| 欧美激情自拍偷拍| 成人国产免费视频| 欧美国产精品一区二区三区| 成人午夜激情视频| 国产精品久久久久久福利一牛影视 | 免费成人av资源网| 色8久久精品久久久久久蜜| 亚洲一线二线三线久久久| 在线观看免费视频综合| 性感美女久久精品| 日韩一区二区三| 国产成人亚洲精品狼色在线| 中文字幕第一区第二区| 99国产欧美另类久久久精品| 亚洲精品老司机| 欧美欧美午夜aⅴ在线观看| 日韩av高清在线观看| 欧美一区二区三区视频在线| 韩国av一区二区三区在线观看| 2017欧美狠狠色| 成人av资源下载| 夜色激情一区二区| 欧美一级高清大全免费观看| 成人免费av在线| 亚洲午夜久久久久久久久电影院 | 不卡视频一二三| 一区二区三区中文在线观看| 欧美一区二区三区精品| 国产成a人亚洲精品| 一区二区三区鲁丝不卡| 精品日韩在线观看| 99久久精品情趣| 免费欧美在线视频| 最新久久zyz资源站| 在线播放一区二区三区| 成人一区二区三区视频在线观看 | 国产精品久久久久久久久久久免费看| 欧美在线短视频| 国产一区二区在线免费观看| 亚洲黄一区二区三区| 精品久久人人做人人爱| 91久久精品网| 粉嫩嫩av羞羞动漫久久久| 无吗不卡中文字幕| 国产精品短视频| 久久久亚洲国产美女国产盗摄| 日本久久电影网| 国产91精品一区二区麻豆亚洲| 丝袜亚洲精品中文字幕一区| 中文字幕一区av| 精品国产一二三| 欧美丰满美乳xxx高潮www| eeuss鲁一区二区三区| 久久精品噜噜噜成人av农村| 伊人一区二区三区| 亚洲国产成人一区二区三区| 欧美电视剧免费全集观看| 色一区在线观看| 福利一区在线观看| 国产一区二区三区在线观看免费| 午夜激情一区二区| 亚洲人成在线观看一区二区| 中文字幕欧美区| 久久亚洲精精品中文字幕早川悠里| 欧美影视一区二区三区| 91免费版在线| 成人精品视频.| 国产电影一区在线| 国产精品资源在线看| 人妖欧美一区二区| 老司机午夜精品99久久| 亚洲一区二区成人在线观看| 亚洲女爱视频在线| 亚洲三级在线播放| 亚洲三级免费电影| 亚洲人成精品久久久久| ...av二区三区久久精品| 国产亚洲欧洲一区高清在线观看| 精品美女在线播放| 久久综合九色综合久久久精品综合| 3atv一区二区三区| 欧美一区二区在线看| 欧美一区二区三区影视| 欧美一级搡bbbb搡bbbb| 欧美一级理论片| 精品女同一区二区| 久久天天做天天爱综合色| 精品乱人伦小说| 久久综合久久综合亚洲| 国产欧美日韩三级| ...av二区三区久久精品| 亚洲精品水蜜桃| 亚洲成人av福利| 蜜臀久久久久久久| 狠狠网亚洲精品| 国产馆精品极品| 色婷婷综合久色| 制服丝袜亚洲精品中文字幕| 精品国产91亚洲一区二区三区婷婷| 久久精品欧美日韩| 一区精品在线播放| 亚洲一区二区3| 久久成人av少妇免费| 成人丝袜18视频在线观看| 91豆麻精品91久久久久久| 欧美日韩国产片| 精品日韩99亚洲| 亚洲日本一区二区| 日韩激情中文字幕| 国产成人在线看| 欧美综合天天夜夜久久| 日韩美女天天操| 国产精品电影一区二区三区| 视频一区二区中文字幕| 国内精品伊人久久久久影院对白| 99在线精品视频| 在线综合亚洲欧美在线视频| 国产日产欧美一区| 亚洲h在线观看| 国产白丝精品91爽爽久久| 欧美无砖专区一中文字| 国产清纯白嫩初高生在线观看91 | 成人一区二区在线观看| 欧美日韩国产成人在线免费| 日本一区二区三区国色天香 | 久久久天堂av| 亚洲国产综合91精品麻豆| 国产精品资源网| 8x8x8国产精品| 18欧美亚洲精品| 精品系列免费在线观看| 欧美亚洲一区二区在线| 国产精品美女久久久久久| 奇米四色…亚洲| 欧美唯美清纯偷拍| 亚洲视频一区二区在线| 久久99热这里只有精品| 欧美一区二区三区色| 亚洲精品免费在线观看| 国产99一区视频免费| 日韩视频国产视频| 亚洲成av人片| 色婷婷av一区二区三区大白胸| 国产亚洲精品aa午夜观看| 美国三级日本三级久久99| 在线亚洲欧美专区二区| 国产精品美女久久久久高潮| 日韩av在线播放中文字幕| 欧美主播一区二区三区美女| 国产精品久久久久久妇女6080| 国产乱码一区二区三区| 欧美一区二区三区在线视频 | 欧美日韩国产电影| 亚洲免费观看在线视频| 国产suv精品一区二区三区| 日韩一区二区三区四区五区六区| 亚洲国产日韩精品| 在线免费观看不卡av| 综合久久久久综合| 成人国产精品免费观看动漫 | 日本精品视频一区二区| 国产精品美女久久久久久| 成人永久看片免费视频天堂| 国产区在线观看成人精品| 国产91精品一区二区麻豆亚洲| 亚洲国产精品二十页| 成人av先锋影音| 一区二区三区四区五区视频在线观看| 成人性生交大片免费看在线播放 | 一本大道久久a久久综合婷婷|