Merge branch 'bugfix/add_len_check_per_spi_master_transaction_v5.1' into 'release/v5.1'

spi master: added transaction length check to refuse longer than hardware supported length (v5.1)

See merge request espressif/esp-idf!23747
This commit is contained in:
morris
2023-05-18 16:47:18 +08:00
10 changed files with 59 additions and 11 deletions

View File

@@ -39,7 +39,8 @@ extern "C" {
#define HAL_SPI_SWAP_DATA_TX(data, len) HAL_SWAP32((uint32_t)(data) << (32 - len))
#define SPI_LL_GET_HW(ID) ((ID)==0? &SPI1:((ID)==1? &SPI2 : &SPI3))
#define SPI_LL_DATA_MAX_BIT_LEN (1 << 24)
#define SPI_LL_DMA_MAX_BIT_LEN (1 << 24) //reg len: 24 bits
#define SPI_LL_CPU_MAX_BIT_LEN (16 * 32) //Fifo len: 16 words
/**
* The data structure holding calculated clock configuration. Since the