]> git.gag.com Git - fw/altos/commit
altos: Do not release interrupts from any pollchar function
authorKeith Packard <keithp@keithp.com>
Sun, 24 Mar 2013 22:00:20 +0000 (15:00 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 24 Mar 2013 22:00:20 +0000 (15:00 -0700)
commitf3dc025a764ca6a2c44fb514ccaf22e6210f769d
tree05c0be2a58f2bfc84d2916d90baaea0f1609d890
parent0365df9ed5a638bfdefb29eec830e51301c13936
altos: Do not release interrupts from any pollchar function

getchar relies on interrupts being blocked across the pollchar calls
and into the sleep call or it may go to sleep with data pending.

This prefixes all pollchar functions with _ to indicate that they are
to be called with interrupts blocked and eliminates all interrupt
manipulation calls from within the pollchar functions.

Signed-off-by: Keith Packard <keithp@keithp.com>
14 files changed:
src/avr/ao_serial_avr.c
src/avr/ao_usb_avr.c
src/cc1111/ao_serial.c
src/cc1111/ao_usb.c
src/core/ao.h
src/core/ao_packet.h
src/core/ao_serial.h
src/core/ao_stdio.c
src/drivers/ao_btm.c
src/drivers/ao_packet.c
src/drivers/ao_packet_master.c
src/drivers/ao_packet_slave.c
src/stm/ao_serial_stm.c
src/stm/ao_usb_stm.c