Add an spi add fasync command.
diff --git a/libbitfury.c b/libbitfury.c
index 4cc7172..9610e15 100644
--- a/libbitfury.c
+++ b/libbitfury.c
@@ -181,6 +181,14 @@ void spi_add_break(struct bitfury_info *info)
spi_add_buf(info, "\x4", 1);
}
+void spi_add_fasync(struct bitfury_info *info, int n)
+{
+ int i;
+
+ for (i = 0; i < n; i++)
+ spi_add_buf(info, "\x5", 1);
+}
+
static void spi_add_buf_reverse(struct bitfury_info *info, const char *buf, const int sz)
{
int i;
diff --git a/libbitfury.h b/libbitfury.h
index 90a79c5..884ee57 100644
--- a/libbitfury.h
+++ b/libbitfury.h
@@ -21,6 +21,7 @@ void spi_send_init(struct bitfury_info *info);
void spi_clear_buf(struct bitfury_info *info);
void spi_add_buf(struct bitfury_info *info, const void *buf, const int sz);
void spi_add_break(struct bitfury_info *info);
+void spi_add_fasync(struct bitfury_info *info, int n);
void spi_add_data(struct bitfury_info *info, uint16_t addr, const void *buf, int len);
bool spi_reset(struct cgpu_info *bitfury, struct bitfury_info *info);
bool mcp_spi_txrx(struct cgpu_info *bitfury, struct bitfury_info *info);