1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ... */
#ifndef __MAIN_H
#define __MAIN_H
#include "stm32f4xx_nucleo_144.h"
#include "stm32_adafruit_sd.h"
#include "stm32_adafruit_lcd.h"
#include <stdio.h>
#include <stdlib.h>
5 includes
Includes
typedef struct
{
void (*DemoFunc)(void);
uint8_t DemoName[30];
uint32_t DemoIndex;
...}BSP_DemoTypedef;
extern const unsigned char stlogo[];
Exported types
#define KEY_NOT_PRESSED 0x00
#define KEY_PRESSED 0x01
Exported constants
#define COUNT_OF_EXAMPLE(x) (sizeof(x)/sizeof(BSP_DemoTypedef))
#ifdef USE_FULL_ASSERT
#define ASSERT(__condition__) do { if(__condition__) \
{ assert_failed(__FILE__, __LINE__); \
while(1); \
...} \
...}while(0)...
/* ... */#else
#define ASSERT(__condition__) do { if(__condition__) \
{ ErrorCounter++; \
...} \
...}while(0)...
/* ... */#endif
Exported macro
void Error_Handler(void);
uint8_t CheckForUserInput(void);
void Joystick_demo (void);
void LCD_demo (void);
void SD_demo (void);
Exported functions
/* ... */#endif