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

Measure distance with HC-SR04 Ultrasonic distance sensor on STM32F4xx devices - http://stm32f4-discovery.com/2014/08/library-30-measure-distance-with-hc-sr04-and-stm32f4xx. More...

Modules

 TM_HCSR04_Macros
 Library macros.
 
 TM_HCSR04_Typedefs
 Library Typedefs.
 
 TM_HCSR04_Functions
 Library Functions.
 

Detailed Description

Measure distance with HC-SR04 Ultrasonic distance sensor on STM32F4xx devices - http://stm32f4-discovery.com/2014/08/library-30-measure-distance-with-hc-sr04-and-stm32f4xx.

Default pinout

There is not default pinout anymore. As of version 2.0, you can use unlimited HC-SR sensors connected to STM32F4xx device.

You just make sure that you use different pins for different sensors.

Pins are passed on TM_HCSR04_Init function.

I didn't tested that, but you might use the same ECHO pin for all sensors if you read sensor by sensor at a time. Do that by own risk!
Changelog
 Version 2.0
  - March 29, 2015
  - Library has been rewritten. Now supports unlimited number of HCSR04 devices
  - Only limit is number of GPIO pins available in your MCU package

 Version 1.2
  - March 11, 2015
  - Added support for my new GPIO library

 Version 1.1
  - November 29, 2014
  - Update to fit new delay system 

 Version 1.0
  - First release
Dependencies
 - STM32F4xx
 - STM32F4xx RCC
 - defines.h
 - TM DELAY
 - TM GPIO