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/test.cpp
- Revision:
- 22:713817fa6687
- Parent:
- 21:9430046ebd9d
- Child:
- 23:3626c7d73505
--- a/test/test.cpp Wed Dec 18 07:11:39 2019 +0000
+++ b/test/test.cpp Thu Dec 19 06:28:30 2019 +0000
@@ -1,5 +1,7 @@
#include "imu_driver.hpp"
+#if defined(COMPILE_TEST)
+
SPI spi2(PB_15, PB_14, PB_13); //1Mbps default, MOSI MISO SCLK, forIMU
Serial pc(USBTX, USBRX, 115200); // print debug message
@@ -36,4 +38,6 @@
imu.imuProcessedData.rate[0], imu.imuProcessedData.rate[1], imu.imuProcessedData.rate[2],
imu.imuProcessedData.accel[0], imu.imuProcessedData.accel[1], imu.imuProcessedData.accel[2]);
}
-}
\ No newline at end of file
+}
+
+#endif // COMPILE_TEST
\ No newline at end of file