Make DAC structure packed

This commit is contained in:
Marc Rechté
2016-09-20 08:04:32 -06:00
committed by Gregory Nutt
parent df26e80c63
commit 9838cc0cc9
+2 -1
View File
@@ -47,6 +47,7 @@
************************************************************************************/ ************************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/compiler.h>
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h> #include <stdint.h>
@@ -77,7 +78,7 @@ struct dac_msg_s
{ {
uint8_t am_channel; /* The 8-bit DAC Channel */ uint8_t am_channel; /* The 8-bit DAC Channel */
int32_t am_data; /* DAC convert result (4 bytes) */ int32_t am_data; /* DAC convert result (4 bytes) */
}; } packed_struct;
struct dac_fifo_s struct dac_fifo_s
{ {