Question
Zephyr SPI Codes Translation for The STMCubeIDE
Hello,
I am working on the SPI interfacing with STM32F4 microcontroller. I found an application which was written Zephyr. My aim is translating that code in to STM32CubeIDE format. Could you help me on this?
Here is the code,
static u16_t tx_buffer[1];
static u16_t rx_buffer[1];
const struct spi_buf tx_buf = {
.buf = tx_buffer,
.len = sizeof(tx_buffer)
};
const struct spi_buf_set tx = {
.buffers = &tx_buf,
.count = 1
};
struct spi_buf rx_buf = {
.buf = rx_buffer,
.len = sizeof(rx_buffer),
};
const struct spi_buf_set rx = {
.buffers = &rx_buf,
.count = 1
};Thank you,
