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.
rcrx.h
00001 Timer tick; 00002 InterruptIn rc(p11); 00003 short buf_ppm[5]; 00004 char i = 0; 00005 00006 void PPM_rise() { 00007 tick.stop(); // Stop timer 00008 buf_ppm[i]=tick.read_us(); // Read timer to buffer[i] i=turns 00009 tick.reset(); // Reset timer 00010 i++; // increment i. 00011 if (i==6) i = 0; 00012 return; 00013 } 00014 00015 void PPM_fall() { // Rising edge on the serial comm 00016 tick.start(); // Start the timer 00017 return; 00018 }
Generated on Sun Jul 17 2022 23:18:49 by
1.7.2