STM3210B_EVAL_LOW_LEVEL_Private_Functions
[STM3210B_EVAL_LOW_LEVEL]

Functions

void LM75_LowLevel_DeInit (void)
 DeInitializes the LM75_I2C.
void LM75_LowLevel_Init (void)
 Initializes the LM75_I2C.
void SD_LowLevel_DeInit (void)
 DeInitializes the SD/SD communication.
void SD_LowLevel_Init (void)
 Initializes the SD_SPI and CS pins.
void sFLASH_LowLevel_DeInit (void)
 DeInitializes the peripherals used by the SPI FLASH driver.
void sFLASH_LowLevel_Init (void)
 Initializes the peripherals used by the SPI FLASH driver.
void STM_EVAL_COMInit (COM_TypeDef COM, USART_InitTypeDef *USART_InitStruct)
 Configures COM port.
void STM_EVAL_LEDInit (Led_TypeDef Led)
 Configures LED GPIO.
void STM_EVAL_LEDOff (Led_TypeDef Led)
 Turns selected LED Off.
void STM_EVAL_LEDOn (Led_TypeDef Led)
 Turns selected LED On.
void STM_EVAL_LEDToggle (Led_TypeDef Led)
 Toggles the selected LED.
uint32_t STM_EVAL_PBGetState (Button_TypeDef Button)
 Returns the selected Button state.
void STM_EVAL_PBInit (Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
 Configures Button GPIO and EXTI Line.

Function Documentation

void LM75_LowLevel_DeInit ( void   ) 

DeInitializes the LM75_I2C.

Parameters:
None 
Return values:
None 

< Disable LM75_I2C

< DeInitializes the LM75_I2C

< LM75_I2C Periph clock disable

< Configure LM75_I2C pins: SCL

< Configure LM75_I2C pins: SDA

< Configure LM75_I2C pin: SMBUS ALERT

Definition at line 539 of file stm3210b_eval.c.

References DISABLE, GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_IN_FLOATING, GPIO_InitTypeDef::GPIO_Pin, I2C_Cmd(), I2C_DeInit(), LM75_I2C, LM75_I2C_CLK, LM75_I2C_SCL_GPIO_PORT, LM75_I2C_SCL_PIN, LM75_I2C_SDA_GPIO_PORT, LM75_I2C_SDA_PIN, LM75_I2C_SMBUSALERT_GPIO_PORT, LM75_I2C_SMBUSALERT_PIN, and RCC_APB1PeriphClockCmd().

void LM75_LowLevel_Init ( void   ) 

Initializes the LM75_I2C.

Parameters:
None 
Return values:
None 

< LM75_I2C Periph clock enable

< LM75_I2C_SCL_GPIO_CLK, LM75_I2C_SDA_GPIO_CLK and LM75_I2C_SMBUSALERT_GPIO_CLK Periph clock enable

< Configure LM75_I2C pins: SCL

< Configure LM75_I2C pins: SDA

< Configure LM75_I2C pin: SMBUS ALERT

Definition at line 570 of file stm3210b_eval.c.

References ENABLE, GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_AF_OD, GPIO_Mode_IPU, GPIO_InitTypeDef::GPIO_Pin, GPIO_InitTypeDef::GPIO_Speed, GPIO_Speed_50MHz, LM75_I2C_CLK, LM75_I2C_SCL_GPIO_CLK, LM75_I2C_SCL_GPIO_PORT, LM75_I2C_SCL_PIN, LM75_I2C_SDA_GPIO_CLK, LM75_I2C_SDA_GPIO_PORT, LM75_I2C_SDA_PIN, LM75_I2C_SMBUSALERT_GPIO_CLK, LM75_I2C_SMBUSALERT_GPIO_PORT, LM75_I2C_SMBUSALERT_PIN, RCC_APB1PeriphClockCmd(), and RCC_APB2PeriphClockCmd().

void SD_LowLevel_DeInit ( void   ) 

DeInitializes the SD/SD communication.

Parameters:
None 
Return values:
None 

< SD_SPI disable

< DeInitializes the SD_SPI

< SD_SPI Periph clock disable

< Configure SD_SPI pins: SCK

< Configure SD_SPI pins: MISO

< Configure SD_SPI pins: MOSI

< Configure SD_SPI_CS_PIN pin: SD Card CS pin

< Configure SD_SPI_DETECT_PIN pin: SD Card detect pin

Definition at line 369 of file stm3210b_eval.c.

References DISABLE, GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_IN_FLOATING, GPIO_InitTypeDef::GPIO_Pin, RCC_APB2PeriphClockCmd(), SD_CS_GPIO_PORT, SD_CS_PIN, SD_DETECT_GPIO_PORT, SD_DETECT_PIN, SD_SPI, SD_SPI_CLK, SD_SPI_MISO_GPIO_PORT, SD_SPI_MISO_PIN, SD_SPI_MOSI_GPIO_PORT, SD_SPI_MOSI_PIN, SD_SPI_SCK_GPIO_PORT, SD_SPI_SCK_PIN, SPI_Cmd(), and SPI_I2S_DeInit().

void SD_LowLevel_Init ( void   ) 

Initializes the SD_SPI and CS pins.

Parameters:
None 
Return values:
None 

< SD_SPI_CS_GPIO, SD_SPI_MOSI_GPIO, SD_SPI_MISO_GPIO, SD_SPI_DETECT_GPIO and SD_SPI_SCK_GPIO Periph clock enable

< SD_SPI Periph clock enable

< Configure SD_SPI pins: SCK

< Configure SD_SPI pins: MOSI

< Configure SD_SPI pins: MISO

< Configure SD_SPI_CS_PIN pin: SD Card CS pin

< Configure SD_SPI_DETECT_PIN pin: SD Card detect pin

< SD_SPI Config

< SD_SPI enable

Definition at line 406 of file stm3210b_eval.c.

References ENABLE, GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_AF_PP, GPIO_Mode_IN_FLOATING, GPIO_Mode_IPU, GPIO_Mode_Out_PP, GPIO_InitTypeDef::GPIO_Pin, GPIO_InitTypeDef::GPIO_Speed, GPIO_Speed_50MHz, RCC_APB2PeriphClockCmd(), SD_CS_GPIO_CLK, SD_CS_GPIO_PORT, SD_CS_PIN, SD_DETECT_GPIO_CLK, SD_DETECT_GPIO_PORT, SD_DETECT_PIN, SD_SPI, SD_SPI_CLK, SD_SPI_MISO_GPIO_CLK, SD_SPI_MISO_GPIO_PORT, SD_SPI_MISO_PIN, SD_SPI_MOSI_GPIO_CLK, SD_SPI_MOSI_GPIO_PORT, SD_SPI_MOSI_PIN, SD_SPI_SCK_GPIO_CLK, SD_SPI_SCK_GPIO_PORT, SD_SPI_SCK_PIN, SPI_InitTypeDef::SPI_BaudRatePrescaler, SPI_BaudRatePrescaler_4, SPI_Cmd(), SPI_InitTypeDef::SPI_CPHA, SPI_CPHA_2Edge, SPI_InitTypeDef::SPI_CPOL, SPI_CPOL_High, SPI_InitTypeDef::SPI_CRCPolynomial, SPI_InitTypeDef::SPI_DataSize, SPI_DataSize_8b, SPI_InitTypeDef::SPI_Direction, SPI_Direction_2Lines_FullDuplex, SPI_InitTypeDef::SPI_FirstBit, SPI_FirstBit_MSB, SPI_Init(), SPI_InitStructure, SPI_InitTypeDef::SPI_Mode, SPI_Mode_Master, SPI_InitTypeDef::SPI_NSS, and SPI_NSS_Soft.

void sFLASH_LowLevel_DeInit ( void   ) 

DeInitializes the peripherals used by the SPI FLASH driver.

Parameters:
None 
Return values:
None 

< Disable the sFLASH_SPI

< DeInitializes the sFLASH_SPI

< sFLASH_SPI Periph clock disable

< Configure sFLASH_SPI pins: SCK

< Configure sFLASH_SPI pins: MISO

< Configure sFLASH_SPI pins: MOSI

< Configure sFLASH_CS_PIN pin: sFLASH Card CS pin

Definition at line 465 of file stm3210b_eval.c.

References DISABLE, GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_IN_FLOATING, GPIO_InitTypeDef::GPIO_Pin, RCC_APB2PeriphClockCmd(), sFLASH_CS_GPIO_PORT, sFLASH_CS_PIN, sFLASH_SPI, sFLASH_SPI_CLK, sFLASH_SPI_MISO_GPIO_PORT, sFLASH_SPI_MISO_PIN, sFLASH_SPI_MOSI_GPIO_PORT, sFLASH_SPI_MOSI_PIN, sFLASH_SPI_SCK_GPIO_PORT, sFLASH_SPI_SCK_PIN, SPI_Cmd(), and SPI_I2S_DeInit().

void sFLASH_LowLevel_Init ( void   ) 

Initializes the peripherals used by the SPI FLASH driver.

Parameters:
None 
Return values:
None 

< sFLASH_SPI_CS_GPIO, sFLASH_SPI_MOSI_GPIO, sFLASH_SPI_MISO_GPIO and sFLASH_SPI_SCK_GPIO Periph clock enable

< sFLASH_SPI Periph clock enable

< Configure sFLASH_SPI pins: SCK

< Configure sFLASH_SPI pins: MOSI

< Configure sFLASH_SPI pins: MISO

< Configure sFLASH_CS_PIN pin: sFLASH Card CS pin

Definition at line 501 of file stm3210b_eval.c.

References ENABLE, GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_AF_PP, GPIO_Mode_IN_FLOATING, GPIO_Mode_Out_PP, GPIO_InitTypeDef::GPIO_Pin, GPIO_InitTypeDef::GPIO_Speed, GPIO_Speed_50MHz, RCC_APB2PeriphClockCmd(), sFLASH_CS_GPIO_CLK, sFLASH_CS_GPIO_PORT, sFLASH_CS_PIN, sFLASH_SPI_CLK, sFLASH_SPI_MISO_GPIO_CLK, sFLASH_SPI_MISO_GPIO_PORT, sFLASH_SPI_MISO_PIN, sFLASH_SPI_MOSI_GPIO_CLK, sFLASH_SPI_MOSI_GPIO_PORT, sFLASH_SPI_MOSI_PIN, sFLASH_SPI_SCK_GPIO_CLK, sFLASH_SPI_SCK_GPIO_PORT, and sFLASH_SPI_SCK_PIN.

void STM_EVAL_COMInit ( COM_TypeDef  COM,
USART_InitTypeDef USART_InitStruct 
)

Configures COM port.

Parameters:
COM,: Specifies the COM port to be configured. This parameter can be one of following parameters:

  • COM1
  • COM2
USART_InitStruct,: pointer to a USART_InitTypeDef structure that contains the configuration information for the specified USART peripheral.
Return values:
None 

Definition at line 327 of file stm3210b_eval.c.

References COM1, COM_RX_PIN, COM_RX_PORT_CLK, COM_TX_PIN, COM_TX_PORT_CLK, COM_USART_CLK, ENABLE, GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_AF_PP, GPIO_Mode_IN_FLOATING, GPIO_InitTypeDef::GPIO_Pin, GPIO_PinRemapConfig(), GPIO_Remap_USART2, GPIO_InitTypeDef::GPIO_Speed, GPIO_Speed_50MHz, RCC_APB1PeriphClockCmd(), RCC_APB2Periph_AFIO, RCC_APB2PeriphClockCmd(), USART_Cmd(), and USART_Init().

void STM_EVAL_LEDInit ( Led_TypeDef  Led  ) 

Configures LED GPIO.

Parameters:
Led,: Specifies the Led to be configured. This parameter can be one of following parameters:

  • LED1
  • LED2
  • LED3
  • LED4
Return values:
None 

Definition at line 174 of file stm3210b_eval.c.

References ENABLE, GPIO_CLK, GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_Out_PP, GPIO_PIN, GPIO_InitTypeDef::GPIO_Pin, GPIO_InitTypeDef::GPIO_Speed, GPIO_Speed_50MHz, and RCC_APB2PeriphClockCmd().

void STM_EVAL_LEDOff ( Led_TypeDef  Led  ) 

Turns selected LED Off.

Parameters:
Led,: Specifies the Led to be set off. This parameter can be one of following parameters:

  • LED1
  • LED2
  • LED3
  • LED4
Return values:
None 

Definition at line 214 of file stm3210b_eval.c.

References GPIO_TypeDef::BRR, and GPIO_PIN.

void STM_EVAL_LEDOn ( Led_TypeDef  Led  ) 

Turns selected LED On.

Parameters:
Led,: Specifies the Led to be set on. This parameter can be one of following parameters:

  • LED1
  • LED2
  • LED3
  • LED4
Return values:
None 

Definition at line 199 of file stm3210b_eval.c.

References GPIO_TypeDef::BSRR, and GPIO_PIN.

void STM_EVAL_LEDToggle ( Led_TypeDef  Led  ) 

Toggles the selected LED.

Parameters:
Led,: Specifies the Led to be toggled. This parameter can be one of following parameters:

  • LED1
  • LED2
  • LED3
  • LED4
Return values:
None 

Definition at line 229 of file stm3210b_eval.c.

References GPIO_PIN, and GPIO_TypeDef::ODR.

uint32_t STM_EVAL_PBGetState ( Button_TypeDef  Button  ) 

Returns the selected Button state.

Parameters:
Button,: Specifies the Button to be checked. This parameter can be one of following parameters:

  • BUTTON_WAKEUP: Wakeup Push Button
  • BUTTON_TAMPER: Tamper Push Button
  • BUTTON_KEY: Key Push Button
  • BUTTON_RIGHT: Joystick Right Push Button
  • BUTTON_LEFT: Joystick Left Push Button
  • BUTTON_UP: Joystick Up Push Button
  • BUTTON_DOWN: Joystick Down Push Button
  • BUTTON_SEL: Joystick Sel Push Button
Return values:
The Button GPIO pin value.

Definition at line 312 of file stm3210b_eval.c.

References BUTTON_PIN, and GPIO_ReadInputDataBit().

void STM_EVAL_PBInit ( Button_TypeDef  Button,
ButtonMode_TypeDef  Button_Mode 
)

Configures Button GPIO and EXTI Line.

Parameters:
Button,: Specifies the Button to be configured. This parameter can be one of following parameters:

  • BUTTON_WAKEUP: Wakeup Push Button
  • BUTTON_TAMPER: Tamper Push Button
  • BUTTON_KEY: Key Push Button
  • BUTTON_RIGHT: Joystick Right Push Button
  • BUTTON_LEFT: Joystick Left Push Button
  • BUTTON_UP: Joystick Up Push Button
  • BUTTON_DOWN: Joystick Down Push Button
  • BUTTON_SEL: Joystick Sel Push Button
Button_Mode,: Specifies Button mode. This parameter can be one of following parameters:

  • BUTTON_MODE_GPIO: Button will be used as simple IO
  • BUTTON_MODE_EXTI: Button will be connected to EXTI line with interrupt generation capability
Return values:
None 

Definition at line 253 of file stm3210b_eval.c.

References BUTTON_CLK, BUTTON_EXTI_LINE, BUTTON_IRQn, BUTTON_MODE_EXTI, BUTTON_PIN, BUTTON_PIN_SOURCE, BUTTON_PORT_SOURCE, BUTTON_WAKEUP, ENABLE, EXTI_Init(), EXTI_InitTypeDef::EXTI_Line, EXTI_InitTypeDef::EXTI_LineCmd, EXTI_InitTypeDef::EXTI_Mode, EXTI_Mode_Interrupt, EXTI_InitTypeDef::EXTI_Trigger, EXTI_Trigger_Falling, EXTI_Trigger_Rising, GPIO_EXTILineConfig(), GPIO_Init(), GPIO_InitStructure, GPIO_InitTypeDef::GPIO_Mode, GPIO_Mode_IN_FLOATING, GPIO_InitTypeDef::GPIO_Pin, NVIC_Init(), NVIC_InitStructure, NVIC_InitTypeDef::NVIC_IRQChannel, NVIC_InitTypeDef::NVIC_IRQChannelCmd, NVIC_InitTypeDef::NVIC_IRQChannelPreemptionPriority, NVIC_InitTypeDef::NVIC_IRQChannelSubPriority, RCC_APB2Periph_AFIO, and RCC_APB2PeriphClockCmd().

STM32F10x Standard Peripherals Library: Footer

 

 

 

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