mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
Make DAC structure packed
This commit is contained in:
committed by
Gregory Nutt
parent
df26e80c63
commit
9838cc0cc9
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user