klipper/src/pru
Kevin O'Connor 70068985a7 stepper: Introduce and use gpio_out_toggle_noirq()
The gpio_out_toggle() function in the sam3x8e and stm32f1 code was
only valid if it was called with irqs disabled.

Commits 018c5daa and 9c52ad43 enabled the lcd code which called
gpio_out_toggle() with irqs enabled.  This could cause corruption of
the gpio state.

Introduce a gpio_out_toggle_noirq() function that will only be invoked
with irqs disabled, and fix gpio_out_toggle() on sam3x8e and stm32f1
so that it safe to call even if irqs are enabled.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2018-05-15 17:09:11 -04:00
..
Kconfig
Makefile pru: Compile with -Os instead of -O2 2017-08-14 21:08:28 -04:00
adc.c pru: Don't reset the ADC reset complete flag if a shutdown occurs 2017-10-18 13:05:36 -04:00
gpio.c stepper: Introduce and use gpio_out_toggle_noirq() 2018-05-15 17:09:11 -04:00
gpio.h stepper: Introduce and use gpio_out_toggle_noirq() 2018-05-15 17:09:11 -04:00
internal.h
main.c pru: Fix race condition in clearing of irq flags 2017-09-08 11:50:21 -04:00
pru.lds
pru0.c pru: Avoid calling "slp" instruction on pru0 2017-09-11 13:12:18 -04:00