diff options
| author | hathach <[email protected]> | 2018-09-02 20:30:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-09-02 20:30:07 +0700 |
| commit | 1a4a27324b1ed5adc456a1df72f34b63b9b87c93 (patch) | |
| tree | 5a08eb02804def997aa34a2a926ac3b4076e5636 | |
| parent | cfdcd5fc39299fe4beebf20d9dbc1520fcb45539 (diff) | |
clean up
| -rw-r--r-- | pkg.yml | 9 | ||||
| -rw-r--r-- | src/common/tusb_compiler.h | 5 | ||||
| -rw-r--r-- | version.yml | 2 |
3 files changed, 11 insertions, 5 deletions
diff --git a/pkg.yml b/pkg.yml new file mode 100644 index 000000000..3b3e10796 --- /dev/null +++ b/pkg.yml @@ -0,0 +1,9 @@ +pkg.name: tinyusb +pkg.description: A silly USB stack for embedded +pkg.author: "Ha Thach <[email protected]>" +pkg.homepage: "https://github.com/hathach/tinyusb" +pkg.keywords: + - usb + +pkg.deps: + - "@apache-mynewt-core/kernel/os" diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h index 7048732cf..933d76043 100644 --- a/src/common/tusb_compiler.h +++ b/src/common/tusb_compiler.h @@ -58,9 +58,8 @@ //--------------------------------------------------------------------+
// Compile-time Assert (use TU_VERIFY_STATIC to avoid name conflict)
//--------------------------------------------------------------------+
-#if defined(__ICCARM__) || (__STDC_VERSION__ >= 201112L )
- #include <assert.h>
- #define TU_VERIFY_STATIC static_assert
+#if __STDC_VERSION__ >= 201112L
+ #define TU_VERIFY_STATIC _Static_assert
#else
#define TU_VERIFY_STATIC(const_expr, _mess) enum { XSTRING_CONCAT_(_verify_static_, _TU_COUNTER_) = 1/(!!(const_expr)) }
#endif
diff --git a/version.yml b/version.yml index b6495858d..92baae6de 100644 --- a/version.yml +++ b/version.yml @@ -1,3 +1 @@ -# Newt uses this file to determine the version of a checked out repo. -# This should always be 0.0.0 in the master branch. repo.version: 0.0.1 |
