/device/soc/st/stm32f4xx/sdk/Drivers/STM32F4xx_HAL_Driver/Inc/ |
D | stm32f4xx_ll_spi.h | 298 __STATIC_INLINE void LL_SPI_Enable(SPI_TypeDef *SPIx) in LL_SPI_Enable() argument 300 SET_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Enable() 310 __STATIC_INLINE void LL_SPI_Disable(SPI_TypeDef *SPIx) in LL_SPI_Disable() argument 312 CLEAR_BIT(SPIx->CR1, SPI_CR1_SPE); in LL_SPI_Disable() 321 __STATIC_INLINE uint32_t LL_SPI_IsEnabled(SPI_TypeDef *SPIx) in LL_SPI_IsEnabled() argument 323 return ((READ_BIT(SPIx->CR1, SPI_CR1_SPE) == (SPI_CR1_SPE)) ? 1UL : 0UL); in LL_SPI_IsEnabled() 337 __STATIC_INLINE void LL_SPI_SetMode(SPI_TypeDef *SPIx, uint32_t Mode) in LL_SPI_SetMode() argument 339 MODIFY_REG(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI, Mode); in LL_SPI_SetMode() 351 __STATIC_INLINE uint32_t LL_SPI_GetMode(SPI_TypeDef *SPIx) in LL_SPI_GetMode() argument 353 return (uint32_t)(READ_BIT(SPIx->CR1, SPI_CR1_MSTR | SPI_CR1_SSI)); in LL_SPI_GetMode() [all …]
|
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/drivers/inc/ |
D | gr55xx_ll_spi.h | 607 __STATIC_INLINE void ll_spi_enable_ss_toggle(ssi_regs_t *SPIx) in ll_spi_enable_ss_toggle() argument 609 SET_BITS(SPIx->CTRL0, SSI_CTRL0_SSTEN); in ll_spi_enable_ss_toggle() 623 __STATIC_INLINE void ll_spi_disable_ss_toggle(ssi_regs_t *SPIx) in ll_spi_disable_ss_toggle() argument 625 CLEAR_BITS(SPIx->CTRL0, SSI_CTRL0_SSTEN); in ll_spi_disable_ss_toggle() 639 __STATIC_INLINE uint32_t ll_spi_is_enabled_ss_toggle(ssi_regs_t *SPIx) in ll_spi_is_enabled_ss_toggle() argument 641 return (READ_BITS(SPIx->CTRL0, SSI_CTRL0_SSTEN) == (SSI_CTRL0_SSTEN)); in ll_spi_is_enabled_ss_toggle() 659 __STATIC_INLINE void ll_spi_set_frame_format(ssi_regs_t *SPIx, uint32_t frf) in ll_spi_set_frame_format() argument 661 MODIFY_REG(SPIx->CTRL0, SSI_CTRL0_SPIFRF, frf); in ll_spi_set_frame_format() 678 __STATIC_INLINE uint32_t ll_spi_get_frame_format(ssi_regs_t *SPIx) in ll_spi_get_frame_format() argument 680 return (uint32_t)(READ_BITS(SPIx->CTRL0, SSI_CTRL0_SPIFRF)); in ll_spi_get_frame_format() [all …]
|
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/src/ |
D | duet_spi.c | 27 void duet_spi_interrupt_config(SPI_TypeDef *SPIx, uint8_t spi_interrupt, uint8_t new_state) in duet_spi_interrupt_config() argument 30 SPIx->IMSC |= spi_interrupt; in duet_spi_interrupt_config() 32 SPIx->IMSC &= ~spi_interrupt; in duet_spi_interrupt_config() 38 SPI_TypeDef *SPIx = NULL; in duet_spi_dma_config() local 40 SPIx = SPI0; in duet_spi_dma_config() 42 SPIx = SPI1; in duet_spi_dma_config() 44 SPIx = SPI2; in duet_spi_dma_config() 49 SPIx->DMA_CR |= dma_tx_rx_sel; in duet_spi_dma_config() 51 SPIx->DMA_CR &= ~dma_tx_rx_sel; in duet_spi_dma_config() 56 void duet_spi_cmd(SPI_TypeDef *SPIx, uint8_t new_state) in duet_spi_cmd() argument [all …]
|
D | duet_dma.c | 221 SPI_TypeDef *SPIx = NULL; in duet_dma_spi_tx() local 224 SPIx = SPI0; in duet_dma_spi_tx() 227 SPIx = SPI1; in duet_dma_spi_tx() 230 SPIx = SPI2; in duet_dma_spi_tx() 247 ch_cfg.chan_dst_end_ptr = (uint32_t) & (SPIx->DR); in duet_dma_spi_tx() 270 SPI_TypeDef *SPIx = NULL; in duet_dma_spi_rx() local 273 SPIx = SPI0; in duet_dma_spi_rx() 276 SPIx = SPI1; in duet_dma_spi_rx() 279 SPIx = SPI2; in duet_dma_spi_rx() 293 ch_cfg.chan_src_end_ptr = (uint32_t) & (SPIx->DR); in duet_dma_spi_rx()
|
/device/soc/st/stm32f407zg/uniproton/board/common/STM32F4xx_StdPeriph_Driver/src/ |
D | stm32f4xx_spi.c | 224 void SPI_I2S_DeInit(SPI_TypeDef* SPIx) in SPI_I2S_DeInit() argument 227 assert_param(IS_SPI_ALL_PERIPH(SPIx)); in SPI_I2S_DeInit() 229 if (SPIx == SPI1) in SPI_I2S_DeInit() 236 else if (SPIx == SPI2) in SPI_I2S_DeInit() 243 else if (SPIx == SPI3) in SPI_I2S_DeInit() 250 else if (SPIx == SPI4) in SPI_I2S_DeInit() 257 else if (SPIx == SPI5) in SPI_I2S_DeInit() 266 if (SPIx == SPI6) in SPI_I2S_DeInit() 284 void SPI_Init(SPI_TypeDef* SPIx, SPI_InitTypeDef* SPI_InitStruct) in SPI_Init() argument 289 assert_param(IS_SPI_ALL_PERIPH(SPIx)); in SPI_Init() [all …]
|
/device/soc/st/stm32f4xx/sdk/Drivers/STM32F4xx_HAL_Driver/Src/ |
D | stm32f4xx_ll_spi.c | 123 ErrorStatus LL_SPI_DeInit(SPI_TypeDef *SPIx) in LL_SPI_DeInit() argument 128 assert_param(IS_SPI_ALL_INSTANCE(SPIx)); in LL_SPI_DeInit() 131 if (SPIx == SPI1) in LL_SPI_DeInit() 143 if (SPIx == SPI2) in LL_SPI_DeInit() 155 if (SPIx == SPI3) in LL_SPI_DeInit() 167 if (SPIx == SPI4) in LL_SPI_DeInit() 179 if (SPIx == SPI5) in LL_SPI_DeInit() 191 if (SPIx == SPI6) in LL_SPI_DeInit() 214 ErrorStatus LL_SPI_Init(SPI_TypeDef *SPIx, LL_SPI_InitTypeDef *SPI_InitStruct) in LL_SPI_Init() argument 219 assert_param(IS_SPI_ALL_INSTANCE(SPIx)); in LL_SPI_Init() [all …]
|
/device/soc/st/stm32f407zg/uniproton/board/common/STM32F4xx_StdPeriph_Driver/inc/ |
D | stm32f4xx_spi.h | 498 void SPI_I2S_DeInit(SPI_TypeDef* SPIx); 501 void SPI_Init(SPI_TypeDef* SPIx, SPI_InitTypeDef* SPI_InitStruct); 502 void I2S_Init(SPI_TypeDef* SPIx, I2S_InitTypeDef* I2S_InitStruct); 505 void SPI_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState); 506 void I2S_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState); 507 void SPI_DataSizeConfig(SPI_TypeDef* SPIx, uint16_t SPI_DataSize); 508 void SPI_BiDirectionalLineConfig(SPI_TypeDef* SPIx, uint16_t SPI_Direction); 509 void SPI_NSSInternalSoftwareConfig(SPI_TypeDef* SPIx, uint16_t SPI_NSSInternalSoft); 510 void SPI_SSOutputCmd(SPI_TypeDef* SPIx, FunctionalState NewState); 511 void SPI_TIModeCmd(SPI_TypeDef* SPIx, FunctionalState NewState); [all …]
|
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/inc/ |
D | duet_spi.h | 90 __STATIC_INLINE void duet_spi_interrupt_clear(SPI_TypeDef *SPIx, uint8_t spi_interrupt) in duet_spi_interrupt_clear() argument 92 SPIx->ICR |= spi_interrupt; in duet_spi_interrupt_clear() 95 __STATIC_INLINE ITstatus duet_spi_get_flag_status(SPI_TypeDef *SPIx, uint8_t spi_flag) in duet_spi_get_flag_status() argument 97 return SPIx->SR & spi_flag; in duet_spi_get_flag_status() 100 __STATIC_INLINE ITstatus duet_spi_get_interrupt_status(SPI_TypeDef *SPIx, uint8_t spi_interrupt) in duet_spi_get_interrupt_status() argument 102 return SPIx->MIS & spi_interrupt; in duet_spi_get_interrupt_status() 105 __STATIC_INLINE ITstatus duet_spi_get_raw_interrupt_status(SPI_TypeDef *SPIx, uint8_t spi_interrupt) in duet_spi_get_raw_interrupt_status() argument 107 return SPIx->RIS & spi_interrupt; in duet_spi_get_raw_interrupt_status() 110 void duet_spi_interrupt_config(SPI_TypeDef *SPIx, uint8_t spi_interrupt, uint8_t new_state); 113 void duet_spi_cmd(SPI_TypeDef *SPIx, uint8_t new_state);
|
/device/board/talkweb/niobe407/liteos_m/drivers/spi/src/ |
D | hal_spi.c | 24 uint8_t LL_SPI_Transmit(SPI_TypeDef* SPIx, uint8_t byte) in LL_SPI_Transmit() argument 27 while (LL_SPI_IsActiveFlag_TXE(SPIx) == 0); in LL_SPI_Transmit() 28 LL_SPI_TransmitData8(SPIx, send); in LL_SPI_Transmit() 29 while (LL_SPI_IsActiveFlag_RXNE(SPIx) == 0); in LL_SPI_Transmit() 30 read = LL_SPI_ReceiveData8(SPIx); in LL_SPI_Transmit()
|
/device/board/talkweb/niobe407/liteos_m/drivers/spi/include/ |
D | hal_spi.h | 32 uint8_t LL_SPI_Transmit(SPI_TypeDef* SPIx ,uint8_t byte);
|