USB Device - Joystick/Mouse  1.0
Functions
STM324xG_EVAL_LOW_LEVEL_Private_Functions

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...
 

Detailed Description

Function Documentation

void SD_LowLevel_DeInit ( void  )

DeInitializes the SDIO interface.

Parameters
None
Return values
None

< Disable SDIO Clock

< Set Power State to OFF

< DeInitializes the SDIO peripheral

void SD_LowLevel_DMA_RxConfig ( uint32_t *  BufferDST,
uint32_t  BufferSize 
)

Configures the DMA2 Channel4 for SDIO Rx request.

Parameters
BufferDSTpointer to the destination buffer
BufferSizebuffer size
Return values
None
void SD_LowLevel_DMA_TxConfig ( uint32_t *  BufferSRC,
uint32_t  BufferSize 
)

Configures the DMA2 Channel4 for SDIO Tx request.

Parameters
BufferSRCpointer to the source buffer
BufferSizebuffer size
Return values
None
void SD_LowLevel_Init ( void  )

Initializes the SD Card and put it into StandBy State (Ready for data transfer).

Parameters
None
Return values
None

< Configure SD_SPI_DETECT_PIN pin: SD Card detect pin

void sEE_LowLevel_DeInit ( void  )

DeInitializes peripherals used by the I2C EEPROM driver.

Parameters
None
Return values
None

< sEE_I2C Periph clock disable

< GPIO configuration

< Configure sEE_I2C pins: SCL

< Configure sEE_I2C pins: SDA

void sEE_LowLevel_DMAConfig ( uint32_t  pBuffer,
uint32_t  BufferSize,
uint32_t  Direction 
)

Initializes DMA channel used by the I2C EEPROM driver.

Parameters
None
Return values
None
void sEE_LowLevel_Init ( void  )

Initializes peripherals used by the I2C EEPROM driver.

Parameters
None
Return values
None

< sEE_I2C Periph clock enable

< sEE_I2C_SCL_GPIO_CLK and sEE_I2C_SDA_GPIO_CLK Periph clock enable

< GPIO configuration

< Configure sEE_I2C pins: SCL

< Configure sEE_I2C pins: SDA

< I2C DMA TX and RX channels configuration

void STM_EVAL_COMInit ( COM_TypeDef  COM,
USART_InitTypeDef *  USART_InitStruct 
)

Configures COM port.

Parameters
COMSpecifies the COM port to be configured. This parameter can be one of following parameters:
  • COM1
  • COM2
USART_InitStructpointer to a USART_InitTypeDef structure that contains the configuration information for the specified USART peripheral.
Return values
None
void STM_EVAL_LEDInit ( Led_TypeDef  Led)

Configures LED GPIO.

Parameters
LedSpecifies the Led to be configured. This parameter can be one of following parameters:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
None
void STM_EVAL_LEDOff ( Led_TypeDef  Led)

Turns selected LED Off.

Parameters
LedSpecifies the Led to be set off. This parameter can be one of following parameters:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
None
void STM_EVAL_LEDOn ( Led_TypeDef  Led)

Turns selected LED On.

Parameters
LedSpecifies the Led to be set on. This parameter can be one of following parameters:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
None
void STM_EVAL_LEDToggle ( Led_TypeDef  Led)

Toggles the selected LED.

Parameters
LedSpecifies the Led to be toggled. This parameter can be one of following parameters:
  • LED1
  • LED2
  • LED3
  • LED4
Return values
None
uint32_t STM_EVAL_PBGetState ( Button_TypeDef  Button)

Returns the selected Button state.

Parameters
ButtonSpecifies 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
TheButton GPIO pin value.
void STM_EVAL_PBInit ( Button_TypeDef  Button,
ButtonMode_TypeDef  Button_Mode 
)

Configures Button GPIO and EXTI Line.

Parameters
ButtonSpecifies 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_ModeSpecifies 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