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);
#endif
};
+#include <ao_lpuart.h>
+
void
ao_debug_out(char c);
void start(void);
+bool
+ao_storage_device_is_erased(uint32_t pos);
+
#endif /* _AO_ARCH_FUNCS_H_ */