1 /**
2   ******************************************************************************
3   * @file    stm32l562e_discovery_errno.h
4   * @author  MCD Application Team
5   * @brief   Error Code.
6   ******************************************************************************
7   * @attention
8   *
9   * <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
10   * All rights reserved.</center></h2>
11   *
12   * This software component is licensed by ST under BSD 3-Clause license,
13   * the "License"; You may not use this file except in compliance with the
14   * License. You may obtain a copy of the License at:
15   *                        opensource.org/licenses/BSD-3-Clause
16   *
17   ******************************************************************************
18   */
19 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef STM32L562E_DISCOVERY_ERRNO_H
22 #define STM32L562E_DISCOVERY_ERRNO_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /* Common Error codes */
29 #define BSP_ERROR_NONE                    0
30 #define BSP_ERROR_NO_INIT                -1
31 #define BSP_ERROR_WRONG_PARAM            -2
32 #define BSP_ERROR_BUSY                   -3
33 #define BSP_ERROR_PERIPH_FAILURE         -4
34 #define BSP_ERROR_COMPONENT_FAILURE      -5
35 #define BSP_ERROR_UNKNOWN_FAILURE        -6
36 #define BSP_ERROR_UNKNOWN_COMPONENT      -7
37 #define BSP_ERROR_BUS_FAILURE            -8
38 #define BSP_ERROR_CLOCK_FAILURE          -9
39 #define BSP_ERROR_MSP_FAILURE            -10
40 #define BSP_ERROR_FEATURE_NOT_SUPPORTED  -11
41 
42 /* BSP OSPI error codes */
43 #define BSP_ERROR_OSPI_SUSPENDED          -20
44 #define BSP_ERROR_OSPI_MMP_UNLOCK_FAILURE -21
45 #define BSP_ERROR_OSPI_MMP_LOCK_FAILURE   -22
46 
47 /* BSP BUS error codes */
48 #define BSP_ERROR_BUS_TRANSACTION_FAILURE -100
49 #define BSP_ERROR_BUS_ARBITRATION_LOSS    -101
50 #define BSP_ERROR_BUS_ACKNOWLEDGE_FAILURE -102
51 #define BSP_ERROR_BUS_PROTOCOL_FAILURE    -103
52 #define BSP_ERROR_BUS_MODE_FAULT          -104
53 #define BSP_ERROR_BUS_FRAME_ERROR         -105
54 #define BSP_ERROR_BUS_CRC_ERROR           -106
55 #define BSP_ERROR_BUS_DMA_FAILURE         -107
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif /* STM32L562E_DISCOVERY_ERRNO_H */
62 
63 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
64