Skip to content

Commit 6a88dbf

Browse files
committed
stlink, swlink: Add no-op stubs for spi_xfer_block
1 parent 1430564 commit 6a88dbf

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/platforms/stlink/platform.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,13 @@ uint8_t platform_spi_xfer(const spi_bus_e bus, const uint8_t value)
209209
(void)bus;
210210
return value;
211211
}
212+
213+
void platform_spi_xfer_block(
214+
const spi_bus_e bus, const uint8_t *const tx_buf, uint8_t *const rx_buf, const size_t count)
215+
{
216+
(void)bus;
217+
(void)tx_buf;
218+
(void)rx_buf;
219+
(void)count;
220+
return;
221+
}

src/platforms/swlink/platform.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,13 @@ uint8_t platform_spi_xfer(const spi_bus_e bus, const uint8_t value)
215215
(void)bus;
216216
return value;
217217
}
218+
219+
void platform_spi_xfer_block(
220+
const spi_bus_e bus, const uint8_t *const tx_buf, uint8_t *const rx_buf, const size_t count)
221+
{
222+
(void)bus;
223+
(void)tx_buf;
224+
(void)rx_buf;
225+
(void)count;
226+
return;
227+
}

0 commit comments

Comments
 (0)