altos/telelco-v3: Move USB pullup from PA9 to PA10
[fw/altos] / src / stm32l0 / ao_arch_funcs.h
index 65cf3f6ffaae27b5657942081e1ae80754eb1421..385fe0e32b192d6c815ec0fd32bdb96f8d69abe0 100644 (file)
@@ -133,14 +133,13 @@ ao_spi_recv_byte(uint8_t spi_index)
        stm_spi->dr = 0xff;
        while (!(stm_spi->sr & (1 << STM_SPI_SR_RXNE)))
                ;
-       return stm_spi->dr;
+       return (uint8_t) stm_spi->dr;
 }
 
 void
 ao_spi_recv(void *block, uint16_t len, uint8_t spi_index);
 
-void
-ao_spi_duplex(const void *out, void *in, uint16_t len, uint8_t spi_index);
+#define AO_SPI_DUPLEX  0
 
 void
 ao_spi_init(void);
@@ -386,6 +385,8 @@ struct ao_stm_usart {
 #endif
 };
 
+#include <ao_lpuart.h>
+
 void
 ao_debug_out(char c);
 
@@ -591,4 +592,7 @@ ao_arch_wait_interrupt(void) {
 
 void start(void);
 
+bool
+ao_storage_device_is_erased(uint32_t pos);
+
 #endif /* _AO_ARCH_FUNCS_H_ */