File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 50
50
51
51
#if !defined(CONFIG_ADC_FIFOSIZE )
52
52
# define CONFIG_ADC_FIFOSIZE 8
53
- #elif CONFIG_ADC_FIFOSIZE > 255
53
+ #elif CONFIG_ADC_FIFOSIZE > 65535
54
54
# undef CONFIG_ADC_FIFOSIZE
55
- # define CONFIG_ADC_FIFOSIZE 255
55
+ # define CONFIG_ADC_FIFOSIZE 65535
56
56
#endif
57
57
58
58
#if !defined(CONFIG_ADC_NPOLLWAITERS )
@@ -117,8 +117,8 @@ begin_packed_struct struct adc_msg_s
117
117
struct adc_fifo_s
118
118
{
119
119
sem_t af_sem ; /* Counting semaphore */
120
- uint8_t af_head ; /* Index to the head [IN] index in the circular buffer */
121
- uint8_t af_tail ; /* Index to the tail [OUT] index in the circular buffer */
120
+ uint16_t af_head ; /* Index to the head [IN] index in the circular buffer */
121
+ uint16_t af_tail ; /* Index to the tail [OUT] index in the circular buffer */
122
122
/* Circular buffer of CAN messages */
123
123
struct adc_msg_s af_buffer [CONFIG_ADC_FIFOSIZE ];
124
124
};
You can’t perform that action at this time.
0 commit comments