SPI_Private_Functions
[SPI]

Functions

void I2S_Cmd (SPI_TypeDef *SPIx, FunctionalState NewState)
 Enables or disables the specified SPI peripheral (in I2S mode).
void I2S_Init (SPI_TypeDef *SPIx, I2S_InitTypeDef *I2S_InitStruct)
 Initializes the SPIx peripheral according to the specified parameters in the I2S_InitStruct.
void I2S_StructInit (I2S_InitTypeDef *I2S_InitStruct)
 Fills each I2S_InitStruct member with its default value.
void SPI_BiDirectionalLineConfig (SPI_TypeDef *SPIx, uint16_t SPI_Direction)
 Selects the data transfer direction in bi-directional mode for the specified SPI.
void SPI_CalculateCRC (SPI_TypeDef *SPIx, FunctionalState NewState)
 Enables or disables the CRC value calculation of the transfered bytes.
void SPI_Cmd (SPI_TypeDef *SPIx, FunctionalState NewState)
 Enables or disables the specified SPI peripheral.
void SPI_DataSizeConfig (SPI_TypeDef *SPIx, uint16_t SPI_DataSize)
 Configures the data size for the selected SPI.
uint16_t SPI_GetCRC (SPI_TypeDef *SPIx, uint8_t SPI_CRC)
 Returns the transmit or the receive CRC register value for the specified SPI.
uint16_t SPI_GetCRCPolynomial (SPI_TypeDef *SPIx)
 Returns the CRC Polynomial register value for the specified SPI.
void SPI_I2S_ClearFlag (SPI_TypeDef *SPIx, uint16_t SPI_I2S_FLAG)
 Clears the SPIx CRC Error (CRCERR) flag.
void SPI_I2S_ClearITPendingBit (SPI_TypeDef *SPIx, uint8_t SPI_I2S_IT)
 Clears the SPIx CRC Error (CRCERR) interrupt pending bit.
void SPI_I2S_DeInit (SPI_TypeDef *SPIx)
 Deinitializes the SPIx peripheral registers to their default reset values (Affects also the I2Ss).
void SPI_I2S_DMACmd (SPI_TypeDef *SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState)
 Enables or disables the SPIx/I2Sx DMA interface.
FlagStatus SPI_I2S_GetFlagStatus (SPI_TypeDef *SPIx, uint16_t SPI_I2S_FLAG)
 Checks whether the specified SPI/I2S flag is set or not.
ITStatus SPI_I2S_GetITStatus (SPI_TypeDef *SPIx, uint8_t SPI_I2S_IT)
 Checks whether the specified SPI/I2S interrupt has occurred or not.
void SPI_I2S_ITConfig (SPI_TypeDef *SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState)
 Enables or disables the specified SPI/I2S interrupts.
uint16_t SPI_I2S_ReceiveData (SPI_TypeDef *SPIx)
 Returns the most recent received data by the SPIx/I2Sx peripheral.
void SPI_I2S_SendData (SPI_TypeDef *SPIx, uint16_t Data)
 Transmits a Data through the SPIx/I2Sx peripheral.
void SPI_Init (SPI_TypeDef *SPIx, SPI_InitTypeDef *SPI_InitStruct)
 Initializes the SPIx peripheral according to the specified parameters in the SPI_InitStruct.
void SPI_NSSInternalSoftwareConfig (SPI_TypeDef *SPIx, uint16_t SPI_NSSInternalSoft)
 Configures internally by software the NSS pin for the selected SPI.
void SPI_SSOutputCmd (SPI_TypeDef *SPIx, FunctionalState NewState)
 Enables or disables the SS output for the selected SPI.
void SPI_StructInit (SPI_InitTypeDef *SPI_InitStruct)
 Fills each SPI_InitStruct member with its default value.
void SPI_TransmitCRC (SPI_TypeDef *SPIx)
 Transmit the SPIx CRC value.

Function Documentation

void I2S_Cmd ( SPI_TypeDef SPIx,
FunctionalState  NewState 
)

Enables or disables the specified SPI peripheral (in I2S mode).

Parameters:
SPIx,: where x can be 2 or 3 to select the SPI peripheral.
NewState,: new state of the SPIx peripheral. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 450 of file stm32f10x_spi.c.

References assert_param, DISABLE, SPI_TypeDef::I2SCFGR, I2SCFGR_I2SE_Reset, I2SCFGR_I2SE_Set, IS_FUNCTIONAL_STATE, and IS_SPI_23_PERIPH.

Referenced by main().

void I2S_Init ( SPI_TypeDef SPIx,
I2S_InitTypeDef I2S_InitStruct 
)

Initializes the SPIx peripheral according to the specified parameters in the I2S_InitStruct.

Parameters:
SPIx,: where x can be 2 or 3 to select the SPI peripheral (configured in I2S mode).
I2S_InitStruct,: pointer to an I2S_InitTypeDef structure that contains the configuration information for the specified SPI peripheral configured in I2S mode.
Note:
The function calculates the optimal prescaler needed to obtain the most accurate audio frequency (depending on the I2S clock source, the PLL values and the product configuration). But in case the prescaler value is greater than 511, the default value (0x02) will be configured instead. *
Return values:
None 

Definition at line 218 of file stm32f10x_spi.c.

References assert_param, HSE_Value, I2S2_CLOCK_SRC, I2S3_CLOCK_SRC, I2S_InitTypeDef::I2S_AudioFreq, I2S_AudioFreq_Default, I2S_InitTypeDef::I2S_CPOL, I2S_InitTypeDef::I2S_DataFormat, I2S_DataFormat_16b, I2S_DIV_MASK, I2S_InitTypeDef::I2S_MCLKOutput, I2S_MCLKOutput_Enable, I2S_InitTypeDef::I2S_Mode, I2S_Mode_Select, I2S_MUL_MASK, I2S_InitTypeDef::I2S_Standard, SPI_TypeDef::I2SCFGR, I2SCFGR_CLEAR_Mask, SPI_TypeDef::I2SPR, IS_I2S_AUDIO_FREQ, IS_I2S_CPOL, IS_I2S_DATA_FORMAT, IS_I2S_MCLK_OUTPUT, IS_I2S_MODE, IS_I2S_STANDARD, IS_SPI_23_PERIPH, RCC, RCC_Clocks, RCC_GetClocksFreq(), SPI2_BASE, and RCC_ClocksTypeDef::SYSCLK_Frequency.

Referenced by main().

void I2S_StructInit ( I2S_InitTypeDef I2S_InitStruct  ) 

Fills each I2S_InitStruct member with its default value.

Parameters:
I2S_InitStruct : pointer to a I2S_InitTypeDef structure which will be initialized.
Return values:
None 

Definition at line 397 of file stm32f10x_spi.c.

References I2S_InitTypeDef::I2S_AudioFreq, I2S_AudioFreq_Default, I2S_InitTypeDef::I2S_CPOL, I2S_CPOL_Low, I2S_InitTypeDef::I2S_DataFormat, I2S_DataFormat_16b, I2S_InitTypeDef::I2S_MCLKOutput, I2S_MCLKOutput_Disable, I2S_InitTypeDef::I2S_Mode, I2S_Mode_SlaveTx, I2S_InitTypeDef::I2S_Standard, and I2S_Standard_Phillips.

void SPI_BiDirectionalLineConfig ( SPI_TypeDef SPIx,
uint16_t  SPI_Direction 
)

Selects the data transfer direction in bi-directional mode for the specified SPI.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
SPI_Direction,: specifies the data transfer direction in bi-directional mode. This parameter can be one of the following values:

  • SPI_Direction_Tx: Selects Tx transmission direction
  • SPI_Direction_Rx: Selects Rx receive direction
Return values:
None 

Definition at line 731 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR1, IS_SPI_ALL_PERIPH, IS_SPI_DIRECTION, SPI_Direction_Rx, and SPI_Direction_Tx.

void SPI_CalculateCRC ( SPI_TypeDef SPIx,
FunctionalState  NewState 
)

Enables or disables the CRC value calculation of the transfered bytes.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
NewState,: new state of the SPIx CRC value calculation. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 662 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR1, CR1_CRCEN_Reset, CR1_CRCEN_Set, DISABLE, IS_FUNCTIONAL_STATE, and IS_SPI_ALL_PERIPH.

Referenced by main().

void SPI_Cmd ( SPI_TypeDef SPIx,
FunctionalState  NewState 
)

Enables or disables the specified SPI peripheral.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
NewState,: new state of the SPIx peripheral. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 426 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR1, CR1_SPE_Reset, CR1_SPE_Set, DISABLE, IS_FUNCTIONAL_STATE, and IS_SPI_ALL_PERIPH.

Referenced by LCD_DeInit(), LCD_SPIConfig(), main(), SD_LowLevel_DeInit(), SD_LowLevel_Init(), sFLASH_Init(), sFLASH_LowLevel_DeInit(), and SPI_Configuration().

void SPI_DataSizeConfig ( SPI_TypeDef SPIx,
uint16_t  SPI_DataSize 
)

Configures the data size for the selected SPI.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
SPI_DataSize,: specifies the SPI data size. This parameter can be one of the following values:

  • SPI_DataSize_16b: Set data frame format to 16bit
  • SPI_DataSize_8b: Set data frame format to 8bit
Return values:
None 

Definition at line 630 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR1, IS_SPI_ALL_PERIPH, IS_SPI_DATASIZE, and SPI_DataSize_16b.

uint16_t SPI_GetCRC ( SPI_TypeDef SPIx,
uint8_t  SPI_CRC 
)

Returns the transmit or the receive CRC register value for the specified SPI.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
SPI_CRC,: specifies the CRC register to be read. This parameter can be one of the following values:

  • SPI_CRC_Tx: Selects Tx CRC register
  • SPI_CRC_Rx: Selects Rx CRC register
Return values:
The selected CRC register value..

Definition at line 688 of file stm32f10x_spi.c.

References assert_param, IS_SPI_ALL_PERIPH, IS_SPI_CRC, SPI_TypeDef::RXCRCR, SPI_CRC_Rx, and SPI_TypeDef::TXCRCR.

uint16_t SPI_GetCRCPolynomial ( SPI_TypeDef SPIx  ) 

Returns the CRC Polynomial register value for the specified SPI.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
Return values:
The CRC Polynomial register value.

Definition at line 713 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CRCPR, and IS_SPI_ALL_PERIPH.

void SPI_I2S_ClearFlag ( SPI_TypeDef SPIx,
uint16_t  SPI_I2S_FLAG 
)

Clears the SPIx CRC Error (CRCERR) flag.

Parameters:
SPIx,: where x can be

  • 1, 2 or 3 in SPI mode
SPI_I2S_FLAG,: specifies the SPI flag to clear. This function clears only CRCERR flag.
Note:
  • OVR (OverRun error) flag is cleared by software sequence: a read operation to SPI_DR register (SPI_I2S_ReceiveData()) followed by a read operation to SPI_SR register (SPI_I2S_GetFlagStatus()).
  • UDR (UnderRun error) flag is cleared by a read operation to SPI_SR register (SPI_I2S_GetFlagStatus()).
  • MODF (Mode Fault) flag is cleared by software sequence: a read/write operation to SPI_SR register (SPI_I2S_GetFlagStatus()) followed by a write operation to SPI_CR1 register (SPI_Cmd() to enable the SPI).
Return values:
None 

Definition at line 803 of file stm32f10x_spi.c.

References assert_param, IS_SPI_ALL_PERIPH, IS_SPI_I2S_CLEAR_FLAG, and SPI_TypeDef::SR.

void SPI_I2S_ClearITPendingBit ( SPI_TypeDef SPIx,
uint8_t  SPI_I2S_IT 
)

Clears the SPIx CRC Error (CRCERR) interrupt pending bit.

Parameters:
SPIx,: where x can be

  • 1, 2 or 3 in SPI mode
SPI_I2S_IT,: specifies the SPI interrupt pending bit to clear. This function clears only CRCERR intetrrupt pending bit.
Note:
  • OVR (OverRun Error) interrupt pending bit is cleared by software sequence: a read operation to SPI_DR register (SPI_I2S_ReceiveData()) followed by a read operation to SPI_SR register (SPI_I2S_GetITStatus()).
  • UDR (UnderRun Error) interrupt pending bit is cleared by a read operation to SPI_SR register (SPI_I2S_GetITStatus()).
  • MODF (Mode Fault) interrupt pending bit is cleared by software sequence: a read/write operation to SPI_SR register (SPI_I2S_GetITStatus()) followed by a write operation to SPI_CR1 register (SPI_Cmd() to enable the SPI).
Return values:
None 

Definition at line 882 of file stm32f10x_spi.c.

References assert_param, IS_SPI_ALL_PERIPH, IS_SPI_I2S_CLEAR_IT, and SPI_TypeDef::SR.

void SPI_I2S_DeInit ( SPI_TypeDef SPIx  ) 

Deinitializes the SPIx peripheral registers to their default reset values (Affects also the I2Ss).

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
Return values:
None 

Definition at line 118 of file stm32f10x_spi.c.

References assert_param, DISABLE, ENABLE, IS_SPI_ALL_PERIPH, RCC_APB1Periph_SPI2, RCC_APB1Periph_SPI3, RCC_APB1PeriphResetCmd(), RCC_APB2Periph_SPI1, RCC_APB2PeriphResetCmd(), SPI1, SPI2, and SPI3.

Referenced by LCD_DeInit(), LCD_SPIConfig(), main(), SD_LowLevel_DeInit(), sFLASH_LowLevel_DeInit(), and SPI_Configuration().

void SPI_I2S_DMACmd ( SPI_TypeDef SPIx,
uint16_t  SPI_I2S_DMAReq,
FunctionalState  NewState 
)

Enables or disables the SPIx/I2Sx DMA interface.

Parameters:
SPIx,: where x can be

  • 1, 2 or 3 in SPI mode
  • 2 or 3 in I2S mode
SPI_I2S_DMAReq,: specifies the SPI/I2S DMA transfer request to be enabled or disabled. This parameter can be any combination of the following values:

  • SPI_I2S_DMAReq_Tx: Tx buffer DMA transfer request
  • SPI_I2S_DMAReq_Rx: Rx buffer DMA transfer request
NewState,: new state of the selected SPI/I2S DMA transfer request. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 520 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR2, DISABLE, IS_FUNCTIONAL_STATE, IS_SPI_ALL_PERIPH, and IS_SPI_I2S_DMAREQ.

Referenced by main().

FlagStatus SPI_I2S_GetFlagStatus ( SPI_TypeDef SPIx,
uint16_t  SPI_I2S_FLAG 
)

Checks whether the specified SPI/I2S flag is set or not.

Parameters:
SPIx,: where x can be

  • 1, 2 or 3 in SPI mode
  • 2 or 3 in I2S mode
SPI_I2S_FLAG,: specifies the SPI/I2S flag to check. This parameter can be one of the following values:

  • SPI_I2S_FLAG_TXE: Transmit buffer empty flag.
  • SPI_I2S_FLAG_RXNE: Receive buffer not empty flag.
  • SPI_I2S_FLAG_BSY: Busy flag.
  • SPI_I2S_FLAG_OVR: Overrun flag.
  • SPI_FLAG_MODF: Mode Fault flag.
  • SPI_FLAG_CRCERR: CRC Error flag.
  • I2S_FLAG_UDR: Underrun Error flag.
  • I2S_FLAG_CHSIDE: Channel Side flag.
Return values:
The new state of SPI_I2S_FLAG (SET or RESET).

Definition at line 765 of file stm32f10x_spi.c.

References assert_param, IS_SPI_ALL_PERIPH, IS_SPI_I2S_GET_FLAG, RESET, SET, and SPI_TypeDef::SR.

Referenced by LCD_nCS_StartByte(), LCD_ReadReg(), LCD_WriteRAM(), LCD_WriteReg(), LCD_WriteRegHX8312(), LCD_WriteRegILI9320(), LCD_WriteRegIndex(), main(), SD_ReadByte(), SD_WriteByte(), sFLASH_SendByte(), and sFLASH_SendHalfWord().

ITStatus SPI_I2S_GetITStatus ( SPI_TypeDef SPIx,
uint8_t  SPI_I2S_IT 
)

Checks whether the specified SPI/I2S interrupt has occurred or not.

Parameters:
SPIx,: where x can be

  • 1, 2 or 3 in SPI mode
  • 2 or 3 in I2S mode
SPI_I2S_IT,: specifies the SPI/I2S interrupt source to check. This parameter can be one of the following values:

  • SPI_I2S_IT_TXE: Transmit buffer empty interrupt.
  • SPI_I2S_IT_RXNE: Receive buffer not empty interrupt.
  • SPI_I2S_IT_OVR: Overrun interrupt.
  • SPI_IT_MODF: Mode Fault interrupt.
  • SPI_IT_CRCERR: CRC Error interrupt.
  • I2S_IT_UDR: Underrun Error interrupt.
Return values:
The new state of SPI_I2S_IT (SET or RESET).

Definition at line 828 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR2, IS_SPI_ALL_PERIPH, IS_SPI_I2S_GET_IT, RESET, SET, and SPI_TypeDef::SR.

Referenced by SPI1_IRQHandler(), SPI2_IRQHandler(), and SPI3_IRQHandler().

void SPI_I2S_ITConfig ( SPI_TypeDef SPIx,
uint8_t  SPI_I2S_IT,
FunctionalState  NewState 
)

Enables or disables the specified SPI/I2S interrupts.

Parameters:
SPIx,: where x can be

  • 1, 2 or 3 in SPI mode
  • 2 or 3 in I2S mode
SPI_I2S_IT,: specifies the SPI/I2S interrupt source to be enabled or disabled. This parameter can be one of the following values:

  • SPI_I2S_IT_TXE: Tx buffer empty interrupt mask
  • SPI_I2S_IT_RXNE: Rx buffer not empty interrupt mask
  • SPI_I2S_IT_ERR: Error interrupt mask
NewState,: new state of the specified SPI/I2S interrupt. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 481 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR2, DISABLE, IS_FUNCTIONAL_STATE, IS_SPI_ALL_PERIPH, and IS_SPI_I2S_CONFIG_IT.

Referenced by main(), SPI1_IRQHandler(), and SPI3_IRQHandler().

uint16_t SPI_I2S_ReceiveData ( SPI_TypeDef SPIx  ) 

Returns the most recent received data by the SPIx/I2Sx peripheral.

Parameters:
SPIx,: where x can be

  • 1, 2 or 3 in SPI mode
  • 2 or 3 in I2S mode
Return values:
The value of the received data.

Definition at line 562 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::DR, and IS_SPI_ALL_PERIPH.

Referenced by LCD_ReadReg(), main(), SD_ReadByte(), SD_WriteByte(), sFLASH_SendByte(), sFLASH_SendHalfWord(), and SPI2_IRQHandler().

void SPI_I2S_SendData ( SPI_TypeDef SPIx,
uint16_t  Data 
)

Transmits a Data through the SPIx/I2Sx peripheral.

Parameters:
SPIx,: where x can be

  • 1, 2 or 3 in SPI mode
  • 2 or 3 in I2S mode
Data : Data to be transmitted.
Return values:
None 

Definition at line 546 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::DR, and IS_SPI_ALL_PERIPH.

Referenced by LCD_nCS_StartByte(), LCD_ReadReg(), LCD_WriteRAM(), LCD_WriteReg(), LCD_WriteRegHX8312(), LCD_WriteRegILI9320(), LCD_WriteRegIndex(), main(), SD_ReadByte(), SD_WriteByte(), sFLASH_SendByte(), sFLASH_SendHalfWord(), SPI1_IRQHandler(), and SPI3_IRQHandler().

void SPI_Init ( SPI_TypeDef SPIx,
SPI_InitTypeDef SPI_InitStruct 
)

Initializes the SPIx peripheral according to the specified parameters in the SPI_InitStruct.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
SPI_InitStruct,: pointer to a SPI_InitTypeDef structure that contains the configuration information for the specified SPI peripheral.
Return values:
None 

Definition at line 157 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR1, CR1_CLEAR_Mask, SPI_TypeDef::CRCPR, SPI_TypeDef::I2SCFGR, IS_SPI_ALL_PERIPH, IS_SPI_BAUDRATE_PRESCALER, IS_SPI_CPHA, IS_SPI_CPOL, IS_SPI_CRC_POLYNOMIAL, IS_SPI_DATASIZE, IS_SPI_DIRECTION_MODE, IS_SPI_FIRST_BIT, IS_SPI_MODE, IS_SPI_NSS, SPI_InitTypeDef::SPI_BaudRatePrescaler, SPI_InitTypeDef::SPI_CPHA, SPI_InitTypeDef::SPI_CPOL, SPI_InitTypeDef::SPI_CRCPolynomial, SPI_InitTypeDef::SPI_DataSize, SPI_InitTypeDef::SPI_Direction, SPI_InitTypeDef::SPI_FirstBit, SPI_InitTypeDef::SPI_Mode, SPI_Mode_Select, and SPI_InitTypeDef::SPI_NSS.

Referenced by LCD_SPIConfig(), main(), SD_LowLevel_Init(), sFLASH_Init(), and SPI_Configuration().

void SPI_NSSInternalSoftwareConfig ( SPI_TypeDef SPIx,
uint16_t  SPI_NSSInternalSoft 
)

Configures internally by software the NSS pin for the selected SPI.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
SPI_NSSInternalSoft,: specifies the SPI NSS internal state. This parameter can be one of the following values:

  • SPI_NSSInternalSoft_Set: Set NSS pin internally
  • SPI_NSSInternalSoft_Reset: Reset NSS pin internally
Return values:
None 

Definition at line 580 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR1, IS_SPI_ALL_PERIPH, IS_SPI_NSS_INTERNAL, SPI_NSSInternalSoft_Reset, and SPI_NSSInternalSoft_Set.

void SPI_SSOutputCmd ( SPI_TypeDef SPIx,
FunctionalState  NewState 
)

Enables or disables the SS output for the selected SPI.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
NewState,: new state of the SPIx SS output. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 604 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR2, CR2_SSOE_Reset, CR2_SSOE_Set, DISABLE, IS_FUNCTIONAL_STATE, and IS_SPI_ALL_PERIPH.

Referenced by main().

void SPI_StructInit ( SPI_InitTypeDef SPI_InitStruct  ) 
void SPI_TransmitCRC ( SPI_TypeDef SPIx  ) 

Transmit the SPIx CRC value.

Parameters:
SPIx,: where x can be 1, 2 or 3 to select the SPI peripheral.
Return values:
None 

Definition at line 646 of file stm32f10x_spi.c.

References assert_param, SPI_TypeDef::CR1, CR1_CRCNext_Set, and IS_SPI_ALL_PERIPH.

Referenced by main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32