Library

Features

Set LED state

Read LED state

Read button state

Dependencies

HAL

TM

STM32Fxxx HAL

defines.h

Library required settings

In order to tell which board you use, you have to set some defines for it. These defines are also used in other libraries to automatically identify used board. For example, my SDRAM library checks for board define to know how to init SDRAM settings for different boards. So, in your defines.h configuration file, set one define according to these available:

Disco library defines

C

1

2

3

4

5

6

7

8

9

10

11

/* 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 STM32F7_DISCOVERY

When using my examples for Keil uVision, you won’t see these defines in defines.h file. They are set in “Options for Target” in IDE!