-
Notifications
You must be signed in to change notification settings - Fork 1
/
stm32l562e_discovery_conf_template.h
63 lines (50 loc) · 2.21 KB
/
stm32l562e_discovery_conf_template.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
56
57
58
59
60
61
62
63
/**
******************************************************************************
* @file stm32l562e_discovery_conf.h
* @author MCD Application Team
* @brief STM32L562E-DK discovery board configuration file.
* This file should be copied to the application folder and renamed
* to stm32l562e_discovery_conf.h .
******************************************************************************
* @attention
*
* Copyright (c) 2019 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 STM32L562E_DISCOVERY_CONF_H
#define STM32L562E_DISCOVERY_CONF_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
#include "stm32l5xx_hal.h"
/* Usage of COM feature */
#define USE_BSP_COM_FEATURE 1U
#define USE_COM_LOG 0U
/* Button interrupt priority */
#define BSP_BUTTON_USER_IT_PRIORITY 0x07UL /* Default is lowest priority level */
/* IDD interrupt priority */
#define BSP_IDD_IT_PRIORITY 0x07UL /* Default is lowest priority level */
/* TS interrupt priority */
#define BSP_TS_IT_PRIORITY 0x07UL /* Default is lowest priority level */
/* Audio interrupt priorities */
#define BSP_AUDIO_OUT_IT_PRIORITY 0x07UL /* Default is lowest priority level */
#define BSP_AUDIO_IN_IT_PRIORITY 0x07UL /* Default is lowest priority level */
/* SD card interrupt priority */
#define BSP_SD_IT_PRIORITY 0x07UL /* Default is lowest priority level */
/* Bus frequencies */
#define BUS_I2C1_FREQUENCY 100000UL /* Frequency of I2C1 = 100 KHz */
#define BUS_SPI1_BAUDRATE 5000000UL /* Baud rate of SPI1 = 5 Mbps */
/* Default AUDIO IN internal buffer size in 32-bit words per micro */
#define BSP_AUDIO_IN_DEFAULT_BUFFER_SIZE 2048UL /* 2048*4 = 8Kbytes */
#ifdef __cplusplus
}
#endif
#endif /* STM32L562E_DISCOVERY_CONF_H */