STM3210B_EVAL_LOW_LEVEL_Exported_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

< 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

< 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

< 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 543 of file stm32100b_eval.c.

void LM75_LowLevel_Init ( void   ) 

Initializes the LM75_I2C.

Parameters:
None 
Return values:
None 
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

< 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

< 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

< 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 574 of file stm32100b_eval.c.

void SD_LowLevel_DeInit ( void   ) 

DeInitializes the SD/SD communication.

Parameters:
None 
Return values:
None 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

< 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

< 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

< SD_SPI disable

< DeInitializes the SD_SPI

< SD_SPI Periph clock disable

< DeRemap SPI3 Pins

< 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

< Disable SDIO Clock

< Set Power State to OFF

< DeInitializes the SDIO peripheral

< Disable the SDIO AHB Clock

< Configure PC.08, PC.09, PC.10, PC.11, PC.12 pin: D0, D1, D2, D3, CLK pin

< Configure PD.02 CMD line

Definition at line 372 of file stm32100b_eval.c.

void SD_LowLevel_Init ( void   ) 

Initializes the SD_SPI and CS pins.

Parameters:
None 
Return values:
None 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

< 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

< 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

< 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

< AFIO Periph clock enable

< Remap SPI3 Pins

< 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

< GPIOC and GPIOD Periph clock enable

< Configure PC.08, PC.09, PC.10, PC.11, PC.12 pin: D0, D1, D2, D3, CLK pin

< Configure PD.02 CMD line

< Configure SD_SPI_DETECT_PIN pin: SD Card detect pin

< Enable the SDIO AHB Clock

< Enable the DMA2 Clock

Definition at line 409 of file stm32100b_eval.c.

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

< 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

< 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

< 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 469 of file stm32100b_eval.c.

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

< 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

< 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

< 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 505 of file stm32100b_eval.c.

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 329 of file stm32100b_eval.c.

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 175 of file stm32100b_eval.c.

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 215 of file stm32100b_eval.c.

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 200 of file stm32100b_eval.c.

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 230 of file stm32100b_eval.c.

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 313 of file stm32100b_eval.c.

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 254 of file stm32100b_eval.c.

STM32F10x Standard Peripherals Library: Footer

 

 

 

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