Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DirectSPI FastPWM
timers.cpp
00001 #include "sys.h" 00002 00003 Ticker ticker; 00004 00005 bool fTimeUp; 00006 00007 void timer10ms(){ 00008 fTimeUp = 1; 00009 } 00010 00011 bool isTickTimer_IF(){ 00012 return fTimeUp; 00013 } 00014 00015 void tickTimer_IF_clear() { 00016 fTimeUp = 0; 00017 } 00018 00019 /****************** 00020 init_tickTimer 00021 *******************/ 00022 void init_tickTimer() { 00023 ticker.attach(&timer10ms,10.0/1000); 00024 } 00025
Generated on Sun Jul 17 2022 17:49:00 by
1.7.2