BSP
Select one of the symbols to view example projects that use it.
 
Outline
#define __MAIN_H
Includes
#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>
Exported types
BSP_DemoTypedef
Exported constants
#define COUNT_OF_EXAMPLE
#define WR_BUFFER_SIZE
#define PAUSE_STATUS
#define RESUME_STATUS
#define IDLE_STATUS
Exported functions
Toggle_Leds();
Error_Handler();
Files
loading...
CodeScopeSTM32 Libraries and SamplesBSPInc/main.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file BSP/Inc/main.h * @author MCD Application Team * @brief Header for main.c module ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __MAIN_H #define __MAIN_H /* Includes ------------------------------------------------------------------*/ #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/* Exported types ------------------------------------------------------------*/ typedef struct { void (*DemoFunc)(void); uint8_t DemoName[50]; uint32_t DemoIndex; ...}BSP_DemoTypedef; Exported types /* Exported constants --------------------------------------------------------*/ #define COUNT_OF_EXAMPLE(x) (sizeof(x)/sizeof(BSP_DemoTypedef)) /* Size of the recorder buffer (Multiple of 4096, RAM_BUFFER_SIZE used in BSP) */ #define WR_BUFFER_SIZE 0x7000 /* Defines for the Audio playing process */ #define PAUSE_STATUS ((uint32_t)0x00) /* Audio Player in Pause Status */ #define RESUME_STATUS ((uint32_t)0x01) /* Audio Player in Resume Status */ #define IDLE_STATUS ((uint32_t)0x02) /* Audio Player in Idle Status */ 5 defines Exported constants/* Exported functions ------------------------------------------------------- */ void Toggle_Leds(void); void Error_Handler(void); Exported functions /* ... */#endif /* __MAIN_H */