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: test_fg.cpp
- Revision:
- 0:be95bfb06686
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test_fg.cpp Mon Jan 17 13:20:09 2022 +0000
@@ -0,0 +1,46 @@
+#include "test_fg.h"
+#include "main_init.h"
+#include "mbed.h"
+
+test_fg::test_fg(PinName pin): test_vector(pin, rise_rise, 1000)
+{
+
+}
+
+void test_fg::configure()
+{
+ configureTimer();
+ setUpTimerBuffer();
+}
+
+void test_fg::run()
+{
+ startTimer();
+ while(!getTimerBufferFull()){};
+}
+
+void test_fg::stop()
+{
+ stopTimer();
+}
+
+void test_fg::release()
+{
+ releaseTimerBuffer();
+}
+
+uint32_t* test_fg::getResult()
+{
+ return getTimerBufferPointer();
+}
+
+
+char* test_fg::getResultStatus()
+{
+ return "Test PASS!!!";
+}
+
+uint32_t test_fg::getBufferSize()
+{
+ return 1000;
+}
