Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:06

0001 /* SPDX-License-Identifier: BSD-3-Clause */
0002 /** 
0003   ******************************************************************************
0004   * @file    stm32h747i_eval_config.h
0005   * @author  MCD Application Team
0006   * @brief   STM32H747I_EVAL board configuration file.
0007   ******************************************************************************
0008   * @attention
0009   *
0010   * Copyright (c) 2019 STMicroelectronics.
0011   * All rights reserved.
0012   *
0013   * This software is licensed under terms that can be found in the LICENSE file
0014   * in the root directory of this software component.
0015   * If no LICENSE file comes with this software, it is provided AS-IS.
0016   *
0017   ******************************************************************************
0018   */
0019 /*
0020  * RTEMS committer clarification comment on license above:
0021  *
0022  * This file comes from STM32CubeH7 project and is located here:
0023  * https://github.com/STMicroelectronics/STM32CubeH7/blob/master/Drivers/BSP/STM32H747I-EVAL/stm32h747i_eval_conf_template.h
0024  *
0025  * The file root directory is:
0026  * https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Drivers/BSP/STM32H747I-EVAL
0027  *
0028  * This directory contains LICENSE.md file with a following license text:
0029  *
0030  * Copyright 2019 STMicroelectronics.
0031  * All rights reserved.
0032  *
0033  * Redistribution and use in source and binary forms, with or without modification,
0034  * are permitted provided that the following conditions are met:
0035  *
0036  * 1. Redistributions of source code must retain the above copyright notice, this
0037  * list of conditions and the following disclaimer.
0038  *
0039  * 2. Redistributions in binary form must reproduce the above copyright notice,
0040  * this list of conditions and the following disclaimer in the documentation and/or
0041  * other materials provided with the distribution.
0042  *
0043  * 3. Neither the name of the copyright holder nor the names of its contributors
0044  * may be used to endorse or promote products derived from this software without
0045  * specific prior written permission.
0046  *
0047  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
0048  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
0049  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0050  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
0051  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
0052  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
0053  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
0054  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0055  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
0056  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0057  */
0058   
0059 /* Define to prevent recursive inclusion -------------------------------------*/
0060 #ifndef STM32H747I_EVAL_CONFIG_H
0061 #define STM32H747I_EVAL_CONFIG_H
0062 
0063 #ifdef __cplusplus
0064  extern "C" {
0065 #endif
0066 
0067 /* Includes ------------------------------------------------------------------*/
0068 #include "stm32h7xx_hal.h"
0069 
0070    /* COM define */
0071 #define USE_COM_LOG                         0U
0072    
0073    /* IO class usage define */  
0074 #define USE_BSP_IO_CLASS                    1U
0075    
0076    /* JOY usage define */
0077 #define USE_BSP_JOY_FEATURE                 1U
0078    
0079    /* POT usage define */   
0080 #define USE_BSP_POT_FEATURE                 1U
0081    
0082    /* LCD controllers defines */
0083 #define USE_LCD_CTRL_OTM8009A               1U
0084 #define USE_LCD_CTRL_ADV7533                1U
0085 #define LCD_LAYER_0_ADDRESS                 0xD0000000U
0086 #define LCD_LAYER_1_ADDRESS                 0xD0200000U
0087    
0088    /* SD high performance usage define */
0089 #define USE_SD_HIGH_PERFORMANCE             0U
0090    
0091    /*DMA2D to fill RGB rectangle usage define*/
0092 #define USE_DMA2D_TO_FILL_RGB_RECT          0U
0093    
0094    /* Audio codecs defines */
0095 #define USE_AUDIO_CODEC_WM8994              1U
0096 #define USE_AUDIO_CODEC_ADV7533             1U
0097    
0098    /* Default Audio IN internal buffer size */   
0099 #define DEFAULT_AUDIO_IN_BUFFER_SIZE        256U
0100    
0101 /* TS supported features defines */
0102 #define USE_TS_GESTURE                      1U
0103 #define USE_TS_MULTI_TOUCH                  1U
0104 
0105 /* Default TS touch number */   
0106 #define TS_TOUCH_NBR                        2U
0107 
0108 /* Default EEPROM max trials */
0109 #define EEPROM_MAX_TRIALS                   3000U
0110 
0111 /* IRQ priorities */
0112 #define BSP_SRAM_IT_PRIORITY                15U
0113 #define BSP_SDRAM_IT_PRIORITY               15U
0114 #define BSP_IOEXPANDER_IT_PRIORITY          15U
0115 #define BSP_BUTTON_USER_IT_PRIORITY         15U
0116 #define BSP_BUTTON_WAKEUP_IT_PRIORITY       15U
0117 #define BSP_BUTTON_TAMPER_IT_PRIORITY       15U
0118 #define BSP_AUDIO_OUT_IT_PRIORITY           14U  
0119 #define BSP_AUDIO_IN_IT_PRIORITY            15U  
0120 #define BSP_SD_IT_PRIORITY                  14U 
0121 #define BSP_SD_RX_IT_PRIORITY               14U    
0122 #define BSP_SD_TX_IT_PRIORITY               15U 
0123 #define BSP_TS_IT_PRIORITY                  15U
0124    
0125 #ifdef __cplusplus
0126 }
0127 #endif
0128   
0129 #endif /* STM32H747I_EVAL_CONFIG_H */
0130