From 9838cc0cc9eb74c7e64629cb628c73405c56c557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Recht=C3=A9?= Date: Tue, 20 Sep 2016 08:04:32 -0600 Subject: [PATCH] Make DAC structure packed --- include/nuttx/analog/dac.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/nuttx/analog/dac.h b/include/nuttx/analog/dac.h index db2cf5a7368..4f34709a847 100644 --- a/include/nuttx/analog/dac.h +++ b/include/nuttx/analog/dac.h @@ -47,6 +47,7 @@ ************************************************************************************/ #include +#include #include #include @@ -77,7 +78,7 @@ struct dac_msg_s { uint8_t am_channel; /* The 8-bit DAC Channel */ int32_t am_data; /* DAC convert result (4 bytes) */ -}; +} packed_struct; struct dac_fifo_s {