speed.h

来自「butterflylogger_src_20060822 for atmel a」· C头文件 代码 · 共 39 行

H
39
字号
////Atmel AVR Design Contest 2006 Registration Number AT3221////***************************************************************************////  File........: speed.c////  Author(s)...: Nick Lott////  Target(s)...: ATmega169////  Compiler....: AVR-GCC 3.3.1; avr-libc 1.0////  Description.: Wind Speed monitoring routines for AVR Butterfly ////  Revisions...: 1.0////  YYYYMMDD - VER. - COMMENT                                       - SIGN.////  20040419 - 1.0  - Created                                       - NAL//  20050610 -        Ported to GCC									- NAL////***************************************************************************// global varsextern int glastSpeed; // last 1 second countextern char glogSpeed; // tell RTC to add counts to total each secondextern int gSpeedSeconds;// no of seconds countedextern int gSpeedTotal; // used for counting the wind speed eventsextern int gSpeedSecondsToLog; // number of seconds to log timer counts// Function declarationsvoid Speed_init(void);char SpeedFunc(char);void PrintSpeed(unsigned int Speed);void ShowSpeed(void);//enable internal pullup 20-50K

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?