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
Diff: LUTs/LUTs_debug.h
- Revision:
- 10:258a1eca02cc
- Parent:
- 9:f6ba53e355a0
- Child:
- 11:6ae098535da9
diff -r f6ba53e355a0 -r 258a1eca02cc LUTs/LUTs_debug.h
--- a/LUTs/LUTs_debug.h Wed May 06 14:37:34 2020 +0000
+++ b/LUTs/LUTs_debug.h Wed May 06 19:51:22 2020 +0000
@@ -8,11 +8,11 @@
@return true if debug is passed
*/
+// Objects
+LUTs luts;
+
bool sin_debug(int i, int expected_sin)
{
- // Objects
- LUTs luts;
-
//method
luts.sin_wavetable();
@@ -22,4 +22,17 @@
return(0);
}
}
+
+bool tri_debug(int pulsewidth,int i, int expected_tri)
+{
+ //method
+ luts.tri_wavetable(pulsewidth);
+
+ if (tri_wavtable[i]==expected_tri) {
+ return (1);
+ } else {
+ return(0);
+ }
+}
+
#endif