altos: Switch drivers to ao_arch_block/release_interrupts
[fw/altos] / src / drivers / ao_ms5607.c
index 077a40e6a02e6b4478e39b9923e021df99d1f00e..55bea563498701775f1580f28bc8e122dd92bfb0 100644 (file)
@@ -141,10 +141,10 @@ ao_ms5607_get_sample(uint8_t cmd) {
 #if AO_MS5607_PRIVATE_PINS
        ao_spi_put(AO_MS5607_SPI_INDEX);
 #endif
-       cli();
+       ao_arch_block_interrupts();
        while (!ao_ms5607_done)
                ao_sleep((void *) &ao_ms5607_done);
-       sei();
+       ao_arch_release_interrupts();
 #if AO_MS5607_PRIVATE_PINS
        stm_gpio_set(AO_MS5607_CS_PORT, AO_MS5607_CS_PIN, 1);
 #else