TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Leds and buttons for discovery, nucleo and eval boards - http://stm32f4-discovery.com/2015/07/hal-library-2-leds-and-button-for-stm32-boards/. More...

Modules

 TM_DISCO_Functions
 Library Functions.
 

Macros

#define LED_GREEN   0
 
#define LED_RED   0
 
#define LED_ORANGE   0
 
#define LED_BLUE   0
 
#define LED_ALL   0
 
#define DISCO_LED_PORT   GPIOA
 
#define DISCO_LED_PINS   LED_ALL
 
#define DISCO_BUTTON_PORT   GPIOA
 
#define DISCO_BUTTON_PIN   0
 
#define DISCO_BUTTON_PRESSED   0
 
#define DISCO_BUTTON_PULL   TM_GPIO_PuPd_NOPULL
 

Detailed Description

Leds and buttons for discovery, nucleo and eval boards - http://stm32f4-discovery.com/2015/07/hal-library-2-leds-and-button-for-stm32-boards/.

Supported boards
Select your board

To select your board, you have several options:

Note
If you are using my other libs, for example SDRAM or LCD where pins and settings depend on board used, then I recommend you select your board using this library. If you use, for example STM32F429-Discovery board, then add global define "STM32F429_DISCOVERY" in defines.h file and all other libraries which will detect this define will know you are using this board and default settings (if exists) will be automatically detected. For example, SDRAM/LCD/USB are 3 of many libraries which needs special defines according to board used in your project. Using global define for your board, libs will detect settings needed for work.

Imagine, we want to work with STM324x9-Eval board. Then, you can open defines.h file and add define:

//Select STM32F439-Eval for DISCO library
#define STM32F439_EVAL

Or if you want STM32F429-Discovery, do this:

//Select STM32F429-Discovery for DISCO library
#define STM32F429_DISCOVERY
All boards and its defines
//Use proper define for your board
#define STM32F429_DISCOVERY
#define STM32F401_DISCOVERY
#define STM32F411_DISCOVERY
#define STM32F4_DISCOVERY
#define NUCLEO_F401
#define NUCLEO_F411
#define NUCLEO_F446
#define NUCLEO_F091
#define STM32F439_EVAL
#define STM32F469_DISCOVERY
#define STM32F7_DISCOVERY
Changelog
 Version 1.0
  - First release
  
 Version 1.1
  - October 10, 2015
  - Added support for STM32F469-Discovery
Dependencies
 - STM32Fxxx HAL
 - defines.h
 - TM GPIO