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, 31 Mar 2013 19:24:24 +0000 (12:24 -0700)
commit4f1f3e836393304434130d362771a39f6f8f859a
tree5655f7ae7aa252a96aa585e3aee47b1b57a8fc9a
parent7afcec1a1dce140dfa569469df4ef42ed407a742
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