spi: define tranfer max bit length in LL

This commit is contained in:
morris
2022-03-08 13:25:43 +08:00
parent ffe19e0c8d
commit 2c7cfdd784
9 changed files with 43 additions and 49 deletions

View File

@@ -42,6 +42,8 @@ extern "C" {
#define SPI_LL_PERIPH_CLK_FREQ (80 * 1000000)
#define SPI_LL_GET_HW(ID) ((ID)==0? ({abort();NULL;}):((ID)==1? &GPSPI2 : &GPSPI3))
#define SPI_LL_DATA_MAX_BIT_LEN (1 << 18)
/**
* The data structure holding calculated clock configuration. Since the
* calculation needs long time, it should be calculated during initialization and