File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ avr_adc_read_l(
4747 struct avr_t * avr , avr_io_addr_t addr , void * param )
4848{
4949 avr_adc_t * p = (avr_adc_t * )param ;
50-
5150 if (p -> read_status ) // conversion already done
5251 return avr_core_watch_read (avr , addr );
5352
@@ -273,7 +272,7 @@ avr_adc_irq_notify(
273272 avr_t * avr = p -> io .avr ;
274273
275274 switch (irq -> irq ) {
276- case ADC_IRQ_ADC0 ... ADC_IRQ_ADC7 : {
275+ case ADC_IRQ_ADC0 ... ADC_IRQ_ADC15 : {
277276 p -> adc_values [irq -> irq ] = value ;
278277 } break ;
279278 case ADC_IRQ_TEMP : {
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ typedef struct avr_adc_t {
135135 * runtime bits
136136 */
137137 avr_adc_mux_t muxmode [64 ];// maximum 6 bits of mux modes
138- uint16_t adc_values [8 ]; // current values on the ADCs
138+ uint16_t adc_values [16 ]; // current values on the ADCs
139139 uint16_t temp ; // temp sensor reading
140140 uint8_t first ;
141141 uint8_t read_status ; // marked one when adcl is read
You can’t perform that action at this time.
0 commit comments