Skip to content

Commit

Permalink
Merge pull request #230 from lucianomartin/feature/spi_buffers
Browse files Browse the repository at this point in the history
Increase SPI tx/rx buffer sizes
  • Loading branch information
shuchitak authored Jan 24, 2024
2 parents fcec58a + a6af76d commit 432f0d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RTOS Framework change log

* UPDATED: To latest tinyusb_src
* ADDED: Support for transitioning to USB test mode in tinyusb_src
* UPDATED: Increase SPI tx/rx buffer sizes from 64 to 256 bytes

3.0.5
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include "rtos_printf.h"
#include "device_control.h"

#define SPI_XFER_RX_SIZE (64)
#define SPI_XFER_TX_SIZE (64)
#define SPI_XFER_RX_SIZE (256)
#define SPI_XFER_TX_SIZE (256)
static uint8_t spi_xfer_rx_buf[SPI_XFER_RX_SIZE];
static uint8_t spi_xfer_tx_buf[SPI_XFER_TX_SIZE];
static uint8_t spi_xfer_rx_default_buf[SPI_XFER_RX_SIZE];
Expand Down Expand Up @@ -73,4 +73,4 @@ void device_control_spi_xfer_done_cb(rtos_spi_slave_t *ctx,
}
}
spi_slave_xfer_prepare(ctx, spi_xfer_rx_buf, SPI_XFER_RX_SIZE, spi_xfer_tx_buf, SPI_XFER_TX_SIZE);
}
}

0 comments on commit 432f0d7

Please sign in to comment.