klipper/src/avr
Kevin O'Connor 4a8f9407b8 avr: Do not use Idle mode
The AVR chips (bizarrely) start an ADC conversion when entering Idle
mode.  This behavior can cause the ADC to be busy when a sample is
required.  Worse, if a series of events cause the cpu to enter and
leave Idle mode with a timing similar to the ADC checking rate then it
can cause the ADC to show as busy for extended periods.  This could
cause high MCU load and possibly lead to a "Rescheduled timer in the
past" shutdown.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2018-04-28 21:26:42 -04:00
..
Kconfig avr: Clean up serial port register aliases 2018-04-25 10:55:18 -04:00
Makefile serial_irq: Add new generic/serial_irq.c code 2018-04-20 11:19:37 -04:00
gpio.c avr: Explicitly set ADCSRA on each conversion start 2018-04-25 19:13:44 -04:00
gpio.h gpio: Merge gpio_adc_sample_time() into gpio_adc_sample() 2016-11-02 17:36:43 -04:00
irq.h avr: Do not use Idle mode 2018-04-28 21:26:42 -04:00
main.c avr: Do not use Idle mode 2018-04-28 21:26:42 -04:00
pgm.h Initial commit of source code. 2016-05-25 11:37:40 -04:00
serial.c avr: Clean up serial port register aliases 2018-04-25 10:55:18 -04:00
timer.c avr: Clear the TCNT1 register on timer startup 2018-01-07 22:22:08 -05:00
usbserial.c command: Don't pass max_size to command_encodef() 2017-08-14 18:32:15 -04:00
watchdog.c build: Use compile_time_request system for init, tasks, and shutdown 2017-05-26 12:39:34 -04:00