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_errno.h
0005 * @author  MCD Application Team
0006 * @brief   Error Code.
0007 *
0008 ******************************************************************************
0009 * @attention
0010 *
0011 * Copyright (c) 2019 STMicroelectronics.
0012 * All rights reserved.
0013 *
0014 * This software is licensed under terms that can be found in the LICENSE file
0015 * in the root directory of this software component.
0016 * If no LICENSE file comes with this software, it is provided AS-IS.
0017 *
0018 ******************************************************************************
0019 */
0020 /*
0021  * RTEMS committer clarification comment on license above:
0022  *
0023  * This file comes from STM32CubeH7 project and is located here:
0024  * https://github.com/STMicroelectronics/STM32CubeH7/blob/master/Drivers/BSP/STM32H747I-EVAL/stm32h747i_eval_errno.h
0025  *
0026  * The file root directory is:
0027  * https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Drivers/BSP/STM32H747I-EVAL
0028  *
0029  * This directory contains LICENSE.md file with a following license text:
0030  *
0031  * Copyright 2019 STMicroelectronics.
0032  * All rights reserved.
0033  *
0034  * Redistribution and use in source and binary forms, with or without modification,
0035  * are permitted provided that the following conditions are met:
0036  *
0037  * 1. Redistributions of source code must retain the above copyright notice, this
0038  * list of conditions and the following disclaimer.
0039  *
0040  * 2. Redistributions in binary form must reproduce the above copyright notice,
0041  * this list of conditions and the following disclaimer in the documentation and/or
0042  * other materials provided with the distribution.
0043  *
0044  * 3. Neither the name of the copyright holder nor the names of its contributors
0045  * may be used to endorse or promote products derived from this software without
0046  * specific prior written permission.
0047  *
0048  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
0049  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
0050  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0051  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
0052  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
0053  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
0054  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
0055  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0056  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
0057  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0058  */
0059 
0060 /* Define to prevent recursive inclusion -------------------------------------*/
0061 #ifndef STM32H747I_EVAL_ERRNO_H
0062 #define STM32H747I_EVAL_ERRNO_H
0063 
0064 #ifdef __cplusplus
0065 extern "C" {
0066 #endif
0067 
0068 /* Common Error codes */
0069 #define BSP_ERROR_NONE                    0
0070 #define BSP_ERROR_NO_INIT                -1
0071 #define BSP_ERROR_WRONG_PARAM            -2
0072 #define BSP_ERROR_BUSY                   -3
0073 #define BSP_ERROR_PERIPH_FAILURE         -4
0074 #define BSP_ERROR_COMPONENT_FAILURE      -5
0075 #define BSP_ERROR_UNKNOWN_FAILURE        -6
0076 #define BSP_ERROR_UNKNOWN_COMPONENT      -7
0077 #define BSP_ERROR_BUS_FAILURE            -8
0078 #define BSP_ERROR_CLOCK_FAILURE          -9
0079 #define BSP_ERROR_MSP_FAILURE            -10
0080 #define BSP_ERROR_FEATURE_NOT_SUPPORTED  -11
0081 
0082 /* BSP OSPI error codes */
0083 #define BSP_ERROR_QSPI_ASSIGN_FAILURE     -24
0084 #define BSP_ERROR_QSPI_SETUP_FAILURE      -25
0085 #define BSP_ERROR_QSPI_MMP_LOCK_FAILURE   -26
0086 #define BSP_ERROR_QSPI_MMP_UNLOCK_FAILURE -27
0087 
0088 /* BSP TS error code */
0089 #define BSP_ERROR_TS_TOUCH_NOT_DETECTED   -30
0090 
0091 /* BSP BUS error codes */
0092 #define BSP_ERROR_BUS_TRANSACTION_FAILURE    -100
0093 #define BSP_ERROR_BUS_ARBITRATION_LOSS       -101
0094 #define BSP_ERROR_BUS_ACKNOWLEDGE_FAILURE    -102
0095 #define BSP_ERROR_BUS_PROTOCOL_FAILURE       -103
0096 
0097 #define BSP_ERROR_BUS_MODE_FAULT             -104
0098 #define BSP_ERROR_BUS_FRAME_ERROR            -105
0099 #define BSP_ERROR_BUS_CRC_ERROR              -106
0100 #define BSP_ERROR_BUS_DMA_FAILURE            -107
0101 
0102 #ifdef __cplusplus
0103 }
0104 #endif
0105 #endif /* STM32H747I_EVAL_ERRNO_H */