summaryrefslogtreecommitdiff
path: root/src/stm/ao_lcd_stm.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-10-25 11:25:42 -0700
committerKeith Packard <keithp@keithp.com>2012-10-25 11:25:42 -0700
commitf221c78e6237e0a118ebe85c25e433fe16a7735d (patch)
tree52e5e0dd555b3b0e5eef86e5f3d879304b4d9594 /src/stm/ao_lcd_stm.c
parent963f7715be6c67056bbd8bbe898639adac64fc29 (diff)
altos: Switch drivers to ao_arch_block/release_interrupts
Stop using cli/sei, which are avr-specific Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_lcd_stm.c')
-rw-r--r--src/stm/ao_lcd_stm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stm/ao_lcd_stm.c b/src/stm/ao_lcd_stm.c
index 0f9a8eb5..4f2a2242 100644
--- a/src/stm/ao_lcd_stm.c
+++ b/src/stm/ao_lcd_stm.c
@@ -253,12 +253,12 @@ ao_lcd_stm_fcr_sync(void)
void
ao_lcd_flush(void)
{
- cli();
+ ao_arch_block_interrupts();
ao_lcd_update_active = 1;
stm_lcd.sr = (1 << STM_LCD_SR_UDR);
while (ao_lcd_update_active)
ao_sleep(&ao_lcd_update_active);
- sei();
+ ao_arch_release_interrupts();
}
void