RTEMS 6.1-rc5
Loading...
Searching...
No Matches
stm32h747i_eval_errno.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause */
20/*
21 * RTEMS committer clarification comment on license above:
22 *
23 * This file comes from STM32CubeH7 project and is located here:
24 * https://github.com/STMicroelectronics/STM32CubeH7/blob/master/Drivers/BSP/STM32H747I-EVAL/stm32h747i_eval_errno.h
25 *
26 * The file root directory is:
27 * https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Drivers/BSP/STM32H747I-EVAL
28 *
29 * This directory contains LICENSE.md file with a following license text:
30 *
31 * Copyright 2019 STMicroelectronics.
32 * All rights reserved.
33 *
34 * Redistribution and use in source and binary forms, with or without modification,
35 * are permitted provided that the following conditions are met:
36 *
37 * 1. Redistributions of source code must retain the above copyright notice, this
38 * list of conditions and the following disclaimer.
39 *
40 * 2. Redistributions in binary form must reproduce the above copyright notice,
41 * this list of conditions and the following disclaimer in the documentation and/or
42 * other materials provided with the distribution.
43 *
44 * 3. Neither the name of the copyright holder nor the names of its contributors
45 * may be used to endorse or promote products derived from this software without
46 * specific prior written permission.
47 *
48 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
49 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
50 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
51 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
52 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
53 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
54 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
55 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
56 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
57 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
58 */
59
60/* Define to prevent recursive inclusion -------------------------------------*/
61#ifndef STM32H747I_EVAL_ERRNO_H
62#define STM32H747I_EVAL_ERRNO_H
63
64#ifdef __cplusplus
65extern "C" {
66#endif
67
68/* Common Error codes */
69#define BSP_ERROR_NONE 0
70#define BSP_ERROR_NO_INIT -1
71#define BSP_ERROR_WRONG_PARAM -2
72#define BSP_ERROR_BUSY -3
73#define BSP_ERROR_PERIPH_FAILURE -4
74#define BSP_ERROR_COMPONENT_FAILURE -5
75#define BSP_ERROR_UNKNOWN_FAILURE -6
76#define BSP_ERROR_UNKNOWN_COMPONENT -7
77#define BSP_ERROR_BUS_FAILURE -8
78#define BSP_ERROR_CLOCK_FAILURE -9
79#define BSP_ERROR_MSP_FAILURE -10
80#define BSP_ERROR_FEATURE_NOT_SUPPORTED -11
81
82/* BSP OSPI error codes */
83#define BSP_ERROR_QSPI_ASSIGN_FAILURE -24
84#define BSP_ERROR_QSPI_SETUP_FAILURE -25
85#define BSP_ERROR_QSPI_MMP_LOCK_FAILURE -26
86#define BSP_ERROR_QSPI_MMP_UNLOCK_FAILURE -27
87
88/* BSP TS error code */
89#define BSP_ERROR_TS_TOUCH_NOT_DETECTED -30
90
91/* BSP BUS error codes */
92#define BSP_ERROR_BUS_TRANSACTION_FAILURE -100
93#define BSP_ERROR_BUS_ARBITRATION_LOSS -101
94#define BSP_ERROR_BUS_ACKNOWLEDGE_FAILURE -102
95#define BSP_ERROR_BUS_PROTOCOL_FAILURE -103
96
97#define BSP_ERROR_BUS_MODE_FAULT -104
98#define BSP_ERROR_BUS_FRAME_ERROR -105
99#define BSP_ERROR_BUS_CRC_ERROR -106
100#define BSP_ERROR_BUS_DMA_FAILURE -107
101
102#ifdef __cplusplus
103}
104#endif
105#endif /* STM32H747I_EVAL_ERRNO_H */