summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-26 13:07:42 +0700
committerhathach <[email protected]>2013-03-26 13:07:42 +0700
commit3c767e9f44ff6e430f85f7fae7c38ee8aca3b6e2 (patch)
tree2aa3fac2e208acd4614dd139eafa6f6b914453d0 /tinyusb/common
parent03d045ecde8961ec7ca1579b9d207a0a83d442e3 (diff)
add field to endpoint maxpacketsize (mult)
refractor hidh_open_subtask & hidh_keyboard_open add ATTR_PACKED_STRUCT(x) - TODO remove ugly pre_pack & post pack
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/compiler/compiler_gcc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h
index 2db8b222f..d2abc748f 100644
--- a/tinyusb/common/compiler/compiler_gcc.h
+++ b/tinyusb/common/compiler/compiler_gcc.h
@@ -74,6 +74,8 @@
#define ATTR_PACKED __attribute__ ((packed))
#define ATTR_PREPACKED
+
+#define ATTR_PACKED_STRUCT(x) x __attribute__ ((packed))
/** @} */
/**