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: SOEM SPI_STMPE610 SPI_TFT_ILI9341 TFT_fonts
Diff: SOEM/osal/osal_defs.h
- Revision:
- 0:7077d8f28b3e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SOEM/osal/osal_defs.h Tue Jun 11 10:19:08 2019 +0000
@@ -0,0 +1,37 @@
+/*
+ * Licensed under the GNU General Public License version 2 with exceptions. See
+ * LICENSE file in the project root for full license information
+ */
+
+#ifndef _osal_defs_
+#define _osal_defs_
+
+
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+
+// define if debug printf is needed
+//#define EC_DEBUG
+
+#ifdef EC_DEBUG
+#define EC_PRINT printf
+#else
+#define EC_PRINT(...) do {} while (0)
+#endif
+
+//#ifndef PACKED
+#define PACKED_BEGIN
+#define PACKED __attribute__((__packed__))
+#define PACKED_END
+//#endif
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
