USB Device - Joystick/Mouse  1.0
Functions | Variables
stm324xg_eval.c File Reference

This file provides. More...

#include "stm324xg_eval.h"
#include "stm32f4xx_sdio.h"
#include "stm32f4xx_dma.h"
#include "stm32f4xx_i2c.h"

Functions

void STM_EVAL_LEDInit (Led_TypeDef Led)
 Configures LED GPIO. More...
 
void STM_EVAL_LEDOn (Led_TypeDef Led)
 Turns selected LED On. More...
 
void STM_EVAL_LEDOff (Led_TypeDef Led)
 Turns selected LED Off. More...
 
void STM_EVAL_LEDToggle (Led_TypeDef Led)
 Toggles the selected LED. More...
 
void STM_EVAL_PBInit (Button_TypeDef Button, ButtonMode_TypeDef Button_Mode)
 Configures Button GPIO and EXTI Line. More...
 
uint32_t STM_EVAL_PBGetState (Button_TypeDef Button)
 Returns the selected Button state. More...
 
void STM_EVAL_COMInit (COM_TypeDef COM, USART_InitTypeDef *USART_InitStruct)
 Configures COM port. More...
 
void SD_LowLevel_DeInit (void)
 DeInitializes the SDIO interface. More...
 
void SD_LowLevel_Init (void)
 Initializes the SD Card and put it into StandBy State (Ready for data transfer). More...
 
void SD_LowLevel_DMA_TxConfig (uint32_t *BufferSRC, uint32_t BufferSize)
 Configures the DMA2 Channel4 for SDIO Tx request. More...
 
void SD_LowLevel_DMA_RxConfig (uint32_t *BufferDST, uint32_t BufferSize)
 Configures the DMA2 Channel4 for SDIO Rx request. More...
 
void sEE_LowLevel_DeInit (void)
 DeInitializes peripherals used by the I2C EEPROM driver. More...
 
void sEE_LowLevel_Init (void)
 Initializes peripherals used by the I2C EEPROM driver. More...
 
void sEE_LowLevel_DMAConfig (uint32_t pBuffer, uint32_t BufferSize, uint32_t Direction)
 Initializes DMA channel used by the I2C EEPROM driver. More...
 

Variables

GPIO_TypeDef * GPIO_PORT [LEDn]
 
const uint16_t GPIO_PIN [LEDn]
 
const uint32_t GPIO_CLK [LEDn]
 
GPIO_TypeDef * BUTTON_PORT [BUTTONn]
 
const uint16_t BUTTON_PIN [BUTTONn]
 
const uint32_t BUTTON_CLK [BUTTONn]
 
const uint16_t BUTTON_EXTI_LINE [BUTTONn]
 
const uint16_t BUTTON_PORT_SOURCE [BUTTONn]
 
const uint16_t BUTTON_PIN_SOURCE [BUTTONn]
 
const uint16_t BUTTON_IRQn [BUTTONn]
 
USART_TypeDef * COM_USART [COMn] = {EVAL_COM1}
 
GPIO_TypeDef * COM_TX_PORT [COMn] = {EVAL_COM1_TX_GPIO_PORT}
 
GPIO_TypeDef * COM_RX_PORT [COMn] = {EVAL_COM1_RX_GPIO_PORT}
 
const uint32_t COM_USART_CLK [COMn] = {EVAL_COM1_CLK}
 
const uint32_t COM_TX_PORT_CLK [COMn] = {EVAL_COM1_TX_GPIO_CLK}
 
const uint32_t COM_RX_PORT_CLK [COMn] = {EVAL_COM1_RX_GPIO_CLK}
 
const uint16_t COM_TX_PIN [COMn] = {EVAL_COM1_TX_PIN}
 
const uint16_t COM_RX_PIN [COMn] = {EVAL_COM1_RX_PIN}
 
const uint16_t COM_TX_PIN_SOURCE [COMn] = {EVAL_COM1_TX_SOURCE}
 
const uint16_t COM_RX_PIN_SOURCE [COMn] = {EVAL_COM1_RX_SOURCE}
 
const uint16_t COM_TX_AF [COMn] = {EVAL_COM1_TX_AF}
 
const uint16_t COM_RX_AF [COMn] = {EVAL_COM1_RX_AF}
 
DMA_InitTypeDef sEEDMA_InitStructure
 
NVIC_InitTypeDef NVIC_InitStructure
 

Detailed Description

This file provides.

Author
MCD Application Team
Version
V1.0.2
Date
05-March-2012
  • set of firmware functions to manage Leds, push-button and COM ports
  • low level initialization functions for SD card (on SDIO) and serial EEPROM (sEE) available on STM324xG-EVAL evaluation board(MB786) RevB from STMicroelectronics.
Attention

© COPYRIGHT 2012 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.