SPI: update max IRQ rate (#1493)

This commit is contained in:
Adeeb Shihadeh
2023-07-03 22:06:35 -07:00
committed by GitHub
parent 14fd5ff5a3
commit a687b183ee

View File

@@ -5,9 +5,9 @@
#define SPI_BUF_SIZE 1024U
#define SPI_TIMEOUT_US 10000U
// we expect less than 50 transactions (including control messages and
// CAN buffers) at the 100Hz boardd interval, plus some buffer
#define SPI_IRQ_RATE 6500U
// got max rate from hitting a non-existent endpoint
// in a tight loop, plus some buffer
#define SPI_IRQ_RATE 16000U
#ifdef STM32H7
__attribute__((section(".ram_d1"))) uint8_t spi_buf_rx[SPI_BUF_SIZE];