altos/ms5607: Use ao_gpio_set instead of stm_gpio_set
authorKeith Packard <keithp@keithp.com>
Mon, 7 Nov 2022 02:30:31 +0000 (18:30 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 7 Nov 2022 02:30:31 +0000 (18:30 -0800)
The former is architecture independent.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_ms5607.c

index f73b095622cd5a4eccf9f1d0b7e28a7ade50caf7..46da4e837fa1e1afa3a5cbdd688d95e60a358b02 100644 (file)
@@ -173,7 +173,7 @@ ao_ms5607_get_sample(uint8_t cmd) {
                ao_sleep((void *) &ao_ms5607_done);
        ao_arch_release_interrupts();
 #if AO_MS5607_PRIVATE_PINS
-       stm_gpio_set(AO_MS5607_CS_PORT, AO_MS5607_CS_PIN, 1);
+       ao_gpio_set(AO_MS5607_CS_PORT, AO_MS5607_CS_PIN, 1);
 #else
        ao_ms5607_stop();
 #endif