1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
40
41
42
43
44
45
46
47
48
49
50
51
55
/* ... */
#ifndef __MAIN_H
#define __MAIN_H
#include "stm32f4_discovery.h"
#include "stm32f4_discovery_accelerometer.h"
#include "stm32f4_discovery_audio.h"
#include "mems.h"
#include "audio_play.h"
#include "audio_record.h"
#include <stdio.h>
7 includes
Includes
typedef struct
{
void (*DemoFunc)(void);
uint8_t DemoName[50];
uint32_t DemoIndex;
...}BSP_DemoTypedef;
Exported types
#define COUNT_OF_EXAMPLE(x) (sizeof(x)/sizeof(BSP_DemoTypedef))
#define WR_BUFFER_SIZE 0x7000
#define PAUSE_STATUS ((uint32_t)0x00)
#define RESUME_STATUS ((uint32_t)0x01)
#define IDLE_STATUS ((uint32_t)0x02)
5 defines
Exported constants
void Toggle_Leds(void);
void Error_Handler(void);
Exported functions
/* ... */#endif