stm3210b_eval.h File Reference

This file contains definitions for STM3210B_EVAL's Leds, push-buttons COM ports, SD Card (on SPI), sFLASH (on SPI) and Temperature sensor LM75 (on I2C) hardware resources. More...

#include "stm32_eval.h"
#include "stm32f10x_spi.h"
#include "stm32f10x_i2c.h"

Go to the source code of this file.

Defines

#define BUTTONn   8
#define COMn   2
#define DOWN_BUTTON_EXTI_IRQn   EXTI15_10_IRQn
#define DOWN_BUTTON_EXTI_LINE   EXTI_Line14
#define DOWN_BUTTON_EXTI_PIN_SOURCE   GPIO_PinSource14
#define DOWN_BUTTON_EXTI_PORT_SOURCE   GPIO_PortSourceGPIOD
#define DOWN_BUTTON_GPIO_CLK   RCC_APB2Periph_GPIOD
#define DOWN_BUTTON_GPIO_PORT   GPIOD
#define DOWN_BUTTON_PIN   GPIO_Pin_14
 Joystick Down push-button.
#define EVAL_COM1   USART1
 Definition for COM port1, connected to USART1.
#define EVAL_COM1_CLK   RCC_APB2Periph_USART1
#define EVAL_COM1_IRQn   USART1_IRQn
#define EVAL_COM1_RX_GPIO_CLK   RCC_APB2Periph_GPIOA
#define EVAL_COM1_RX_GPIO_PORT   GPIOA
#define EVAL_COM1_RX_PIN   GPIO_Pin_10
#define EVAL_COM1_TX_GPIO_CLK   RCC_APB2Periph_GPIOA
#define EVAL_COM1_TX_GPIO_PORT   GPIOA
#define EVAL_COM1_TX_PIN   GPIO_Pin_9
#define EVAL_COM2   USART2
 Definition for COM port2, connected to USART2 (USART2 pins remapped on GPIOD).
#define EVAL_COM2_CLK   RCC_APB1Periph_USART2
#define EVAL_COM2_IRQn   USART2_IRQn
#define EVAL_COM2_RX_GPIO_CLK   RCC_APB2Periph_GPIOD
#define EVAL_COM2_RX_GPIO_PORT   GPIOD
#define EVAL_COM2_RX_PIN   GPIO_Pin_6
#define EVAL_COM2_TX_GPIO_CLK   RCC_APB2Periph_GPIOD
#define EVAL_COM2_TX_GPIO_PORT   GPIOD
#define EVAL_COM2_TX_PIN   GPIO_Pin_5
#define KEY_BUTTON_EXTI_IRQn   EXTI9_5_IRQn
#define KEY_BUTTON_EXTI_LINE   EXTI_Line9
#define KEY_BUTTON_EXTI_PIN_SOURCE   GPIO_PinSource9
#define KEY_BUTTON_EXTI_PORT_SOURCE   GPIO_PortSourceGPIOB
#define KEY_BUTTON_GPIO_CLK   RCC_APB2Periph_GPIOB
#define KEY_BUTTON_GPIO_PORT   GPIOB
#define KEY_BUTTON_PIN   GPIO_Pin_9
 Key push-button.
#define LED1_GPIO_CLK   RCC_APB2Periph_GPIOC
#define LED1_GPIO_PORT   GPIOC
#define LED1_PIN   GPIO_Pin_6
#define LED2_GPIO_CLK   RCC_APB2Periph_GPIOC
#define LED2_GPIO_PORT   GPIOC
#define LED2_PIN   GPIO_Pin_7
#define LED3_GPIO_CLK   RCC_APB2Periph_GPIOC
#define LED3_GPIO_PORT   GPIOC
#define LED3_PIN   GPIO_Pin_8
#define LED4_GPIO_CLK   RCC_APB2Periph_GPIOC
#define LED4_GPIO_PORT   GPIOC
#define LED4_PIN   GPIO_Pin_9
#define LEDn   4
#define LEFT_BUTTON_EXTI_IRQn   EXTI1_IRQn
#define LEFT_BUTTON_EXTI_LINE   EXTI_Line1
#define LEFT_BUTTON_EXTI_PIN_SOURCE   GPIO_PinSource1
#define LEFT_BUTTON_EXTI_PORT_SOURCE   GPIO_PortSourceGPIOE
#define LEFT_BUTTON_GPIO_CLK   RCC_APB2Periph_GPIOE
#define LEFT_BUTTON_GPIO_PORT   GPIOE
#define LEFT_BUTTON_PIN   GPIO_Pin_1
 Joystick Left push-button.
#define LM75_DMA_CLK   RCC_AHBPeriph_DMA1
#define LM75_DMA_RX_CHANNEL   DMA1_Channel7
#define LM75_DMA_RX_TCFLAG   DMA1_FLAG_TC7
#define LM75_DMA_TX_CHANNEL   DMA1_Channel6
#define LM75_DMA_TX_TCFLAG   DMA1_FLAG_TC6
#define LM75_I2C   I2C1
 LM75 Temperature Sensor I2C Interface pins.
#define LM75_I2C_CLK   RCC_APB1Periph_I2C1
#define LM75_I2C_DR   ((uint32_t)0x40005410)
#define LM75_I2C_SCL_GPIO_CLK   RCC_APB2Periph_GPIOB
#define LM75_I2C_SCL_GPIO_PORT   GPIOB
#define LM75_I2C_SCL_PIN   GPIO_Pin_6
#define LM75_I2C_SDA_GPIO_CLK   RCC_APB2Periph_GPIOB
#define LM75_I2C_SDA_GPIO_PORT   GPIOB
#define LM75_I2C_SDA_PIN   GPIO_Pin_7
#define LM75_I2C_SMBUSALERT_GPIO_CLK   RCC_APB2Periph_GPIOB
#define LM75_I2C_SMBUSALERT_GPIO_PORT   GPIOB
#define LM75_I2C_SMBUSALERT_PIN   GPIO_Pin_5
#define RIGHT_BUTTON_EXTI_IRQn   EXTI0_IRQn
#define RIGHT_BUTTON_EXTI_LINE   EXTI_Line0
#define RIGHT_BUTTON_EXTI_PIN_SOURCE   GPIO_PinSource0
#define RIGHT_BUTTON_EXTI_PORT_SOURCE   GPIO_PortSourceGPIOE
#define RIGHT_BUTTON_GPIO_CLK   RCC_APB2Periph_GPIOE
#define RIGHT_BUTTON_GPIO_PORT   GPIOE
#define RIGHT_BUTTON_PIN   GPIO_Pin_0
 Joystick Right push-button.
#define SD_CS_GPIO_CLK   RCC_APB2Periph_GPIOC
#define SD_CS_GPIO_PORT   GPIOC
#define SD_CS_PIN   GPIO_Pin_12
#define SD_DETECT_GPIO_CLK   RCC_APB2Periph_GPIOE
#define SD_DETECT_GPIO_PORT   GPIOE
#define SD_DETECT_PIN   GPIO_Pin_7
#define SD_SPI   SPI1
 SD SPI Interface pins.
#define SD_SPI_CLK   RCC_APB2Periph_SPI1
#define SD_SPI_MISO_GPIO_CLK   RCC_APB2Periph_GPIOA
#define SD_SPI_MISO_GPIO_PORT   GPIOA
#define SD_SPI_MISO_PIN   GPIO_Pin_6
#define SD_SPI_MOSI_GPIO_CLK   RCC_APB2Periph_GPIOA
#define SD_SPI_MOSI_GPIO_PORT   GPIOA
#define SD_SPI_MOSI_PIN   GPIO_Pin_7
#define SD_SPI_SCK_GPIO_CLK   RCC_APB2Periph_GPIOA
#define SD_SPI_SCK_GPIO_PORT   GPIOA
#define SD_SPI_SCK_PIN   GPIO_Pin_5
#define SEL_BUTTON_EXTI_IRQn   EXTI15_10_IRQn
#define SEL_BUTTON_EXTI_LINE   EXTI_Line12
#define SEL_BUTTON_EXTI_PIN_SOURCE   GPIO_PinSource12
#define SEL_BUTTON_EXTI_PORT_SOURCE   GPIO_PortSourceGPIOD
#define SEL_BUTTON_GPIO_CLK   RCC_APB2Periph_GPIOD
#define SEL_BUTTON_GPIO_PORT   GPIOD
#define SEL_BUTTON_PIN   GPIO_Pin_12
 Joystick Sel push-button.
#define sFLASH_CS_GPIO_CLK   RCC_APB2Periph_GPIOA
#define sFLASH_CS_GPIO_PORT   GPIOA
#define sFLASH_CS_PIN   GPIO_Pin_4
#define sFLASH_SPI   SPI1
 M25P FLASH SPI Interface pins.
#define sFLASH_SPI_CLK   RCC_APB2Periph_SPI1
#define sFLASH_SPI_MISO_GPIO_CLK   RCC_APB2Periph_GPIOA
#define sFLASH_SPI_MISO_GPIO_PORT   GPIOA
#define sFLASH_SPI_MISO_PIN   GPIO_Pin_6
#define sFLASH_SPI_MOSI_GPIO_CLK   RCC_APB2Periph_GPIOA
#define sFLASH_SPI_MOSI_GPIO_PORT   GPIOA
#define sFLASH_SPI_MOSI_PIN   GPIO_Pin_7
#define sFLASH_SPI_SCK_GPIO_CLK   RCC_APB2Periph_GPIOA
#define sFLASH_SPI_SCK_GPIO_PORT   GPIOA
#define sFLASH_SPI_SCK_PIN   GPIO_Pin_5
#define TAMPER_BUTTON_EXTI_IRQn   EXTI15_10_IRQn
#define TAMPER_BUTTON_EXTI_LINE   EXTI_Line13
#define TAMPER_BUTTON_EXTI_PIN_SOURCE   GPIO_PinSource13
#define TAMPER_BUTTON_EXTI_PORT_SOURCE   GPIO_PortSourceGPIOC
#define TAMPER_BUTTON_GPIO_CLK   RCC_APB2Periph_GPIOC
#define TAMPER_BUTTON_GPIO_PORT   GPIOC
#define TAMPER_BUTTON_PIN   GPIO_Pin_13
 Tamper push-button.
#define UP_BUTTON_EXTI_IRQn   EXTI9_5_IRQn
#define UP_BUTTON_EXTI_LINE   EXTI_Line8
#define UP_BUTTON_EXTI_PIN_SOURCE   GPIO_PinSource8
#define UP_BUTTON_EXTI_PORT_SOURCE   GPIO_PortSourceGPIOD
#define UP_BUTTON_GPIO_CLK   RCC_APB2Periph_GPIOD
#define UP_BUTTON_GPIO_PORT   GPIOD
#define UP_BUTTON_PIN   GPIO_Pin_8
 Joystick Up push-button.
#define WAKEUP_BUTTON_EXTI_IRQn   EXTI0_IRQn
#define WAKEUP_BUTTON_EXTI_LINE   EXTI_Line0
#define WAKEUP_BUTTON_EXTI_PIN_SOURCE   GPIO_PinSource0
#define WAKEUP_BUTTON_EXTI_PORT_SOURCE   GPIO_PortSourceGPIOA
#define WAKEUP_BUTTON_GPIO_CLK   RCC_APB2Periph_GPIOA
#define WAKEUP_BUTTON_GPIO_PORT   GPIOA
#define WAKEUP_BUTTON_PIN   GPIO_Pin_0
 Wakeup push-button.

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.

Detailed Description

This file contains definitions for STM3210B_EVAL's Leds, push-buttons COM ports, SD Card (on SPI), sFLASH (on SPI) and Temperature sensor LM75 (on I2C) hardware resources.

Author:
MCD Application Team
Version:
V4.3.0
Date:
10/15/2010

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

© COPYRIGHT 2010 STMicroelectronics

Definition in file stm3210b_eval.h.

STM32F10x Standard Peripherals Library: Footer

 

 

 

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