blob: 4d10c9c6d7e7b60ac163204359adf994f5737806 (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/**
******************************************************************************
* @file BSP/Inc/main.h
* @author MCD Application Team
* @brief Header for main.c module
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2017 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef MAIN_H
#define MAIN_H
/* Defines -------------------------------------------------------------------*/
/* #define USE_LPS22HB_TEMP */
/* Includes ------------------------------------------------------------------*/
#include "stm32wbxx_hal.h"
#include "stm32wb5mm_dk.h"
#include "stm32wb5mm_dk_env_sensors.h"
#include "stm32wb5mm_dk_motion_sensors.h"
#include "stm32wb5mm_dk_errno.h"
#include "stm32wb5mm_dk_conf.h"
#include "stm32wb5mm_dk_bus.h"
#include "stm32wb5mm_dk_lcd.h"
#include "stm32wb5mm_dk_qspi.h"
#include "stm32_lcd.h"
#include "stm32wb5mm_dk_audio.h"
#include "stm32wbxx.h"
#include "stm32wbxx_it.h"
#include "usbd_core.h"
#include "usbd_desc.h"
#include "usbd_audio_in.h"
#include "usbd_audio_if.h"
#include <stdio.h>
/* Exported types ------------------------------------------------------------*/
typedef struct
{
void (*DemoFunc)(void);
uint8_t DemoName[50];
uint32_t DemoIndex;
}BSP_DemoTypedef;
/* Exported variables --------------------------------------------------------*/
extern __IO uint32_t ButtonState;
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
#define COUNT_OF_EXAMPLE(x) (sizeof(x)/sizeof(BSP_DemoTypedef))
/*Comment this define if you want to configure and start acquisition
depending on USB functionalities implemented by user*/
#define DISABLE_USB_DRIVEN_ACQUISITION
#define USB_IRQHandler OTG_FS_IRQHandler
/* Exported functions ------------------------------------------------------- */
void Temperature_Test(void);
void Gyro_Test(void);
void Accelero_Test(void);
void Proximity_Test(void);
void led_demo(void);
uint8_t CheckForUserInput(void);
void Display_Demo(void);
void LCD_demo(void);
void Led_demo(void);
void QSPI_demo (void);
void Audio_Record_Demo(void);
void Error_Handler(void);
uint32_t Serial_Scanf(uint32_t value);
#endif /* MAIN_H */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|