struct packing
Looking at all structs as to where we can pack them a little better, and calling out the padding/stride at the end for future expansion. Change-Id: I4a651092e950dd3d915af9fa0ee0d7d59803e58f Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
f21ff23310
commit
4743684e4f
11 changed files with 30 additions and 14 deletions
|
@ -46,14 +46,16 @@ struct adc_seq_entry {
|
|||
/** Clock ticks delay before sampling the ADC. */
|
||||
int32_t sampling_delay;
|
||||
|
||||
/** Channel ID sampled from the ADC. */
|
||||
uint8_t channel_id;
|
||||
|
||||
/** Buffer pointer where the sample is written.*/
|
||||
uint8_t *buffer;
|
||||
|
||||
/** Length of the sampling buffer.*/
|
||||
uint32_t buffer_length;
|
||||
|
||||
/** Channel ID that should be sampled from the ADC */
|
||||
uint8_t channel_id;
|
||||
|
||||
uint8_t stride[3];
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -68,6 +70,7 @@ struct adc_seq_table {
|
|||
|
||||
/* Number of entries in the sequence entry array. */
|
||||
uint8_t num_entries;
|
||||
uint8_t stride[3];
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue