TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle

L3GD20 library for STM32F4xx devices - http://stm32f4-discovery.com/2014/08/library-28-l3gd20-3-axis-gyroscope. More...

Modules

 TM_L3GD20_Macros
 Library defines.
 
 TM_L3GD20_Typedefs
 Library Typedefs.
 
 TM_L3GD20_Functions
 Library Functions.
 

Detailed Description

L3GD20 library for STM32F4xx devices - http://stm32f4-discovery.com/2014/08/library-28-l3gd20-3-axis-gyroscope.

L3GD20 3-axis Gyroscope is connected on STM32F429 Discovery board. It works with SPI, has 3 selectable resolutions.

Default pinout
L3GD20          STM32F4         Description

MOSI            PF9             SPI5 is used by default
MISO            PF8             SPI5 is used by default
SCK             PF7             SPI5 is used by default
CS              PC1             Chip select for SPI

If you want to change SPI, use these two lines below in your defines.h file and edit them:

//Select custom SPI for sensor
#define L3GD20_SPI                  SPI5
#define L3GD20_SPI_PINSPACK         TM_SPI_PinsPack_1

If you want to change CS pin, add these lines below in defines.h file and edit them:

//Select CS pin
#define L3GD20_CS_PORT              GPIOC
#define L3GD20_CS_PIN               GPIO_Pin_1
Changelog
 Version 1.1
  - March 19, 2015
  - Added support for new GPIO library
  
 Version 1.0
  - First release
Dependencies
 - STM32F4xx
 - STM32F4xx RCC
 - STM32F4xx GPIO
 - defines.h
 - TM SPI
 - TM GPIO