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.
Diff: LUTs/LUTs_debug.h
- Revision:
- 11:6ae098535da9
- Parent:
- 10:258a1eca02cc
- Child:
- 21:60f01b17b0a6
--- a/LUTs/LUTs_debug.h Wed May 06 19:51:22 2020 +0000
+++ b/LUTs/LUTs_debug.h Thu May 07 12:22:39 2020 +0000
@@ -31,6 +31,20 @@
if (tri_wavtable[i]==expected_tri) {
return (1);
} else {
+ printf("expected-%i__real-%u \n",expected_tri,tri_wavtable[i]);
+ return(0);
+ }
+}
+
+bool pulse_debug(int pulsewidth,int i, int expected_pulse)
+{
+ //method
+ luts.pulse_wavetable(pulsewidth);
+
+ if (pulse_wavtable[i]==expected_pulse) {
+ return (1);
+ } else {
+ printf("expected-%i__real-%u \n",expected_pulse,pulse_wavtable[i]);
return(0);
}
}