error.h
Go to the documentation of this file.
1 /*
2  * @brief Error code returned by Boot ROM drivers/library functions
3  * @ingroup Common
4  *
5  * This file contains unified error codes to be used across driver,
6  * middleware, applications, hal and demo software.
7  *
8  *
9  * @note
10  * Copyright(C) NXP Semiconductors, 2012
11  * All rights reserved.
12  *
13  * @par
14  * Software that is described herein is for illustrative purposes only
15  * which provides customers with programming information regarding the
16  * LPC products. This software is supplied "AS IS" without any warranties of
17  * any kind, and NXP Semiconductors and its licensor disclaim any and
18  * all warranties, express or implied, including all implied warranties of
19  * merchantability, fitness for a particular purpose and non-infringement of
20  * intellectual property rights. NXP Semiconductors assumes no responsibility
21  * or liability for the use of the software, conveys no license or rights under any
22  * patent, copyright, mask work right, or any other intellectual property rights in
23  * or to any products. NXP Semiconductors reserves the right to make changes
24  * in the software without notification. NXP Semiconductors also makes no
25  * representation or warranty that such application will be suitable for the
26  * specified use without further testing or modification.
27  *
28  * @par
29  * Permission to use, copy, modify, and distribute this software and its
30  * documentation is hereby granted, under NXP Semiconductors' and its
31  * licensor's relevant copyrights in the software, without fee, provided that it
32  * is used in conjunction with NXP Semiconductors microcontrollers. This
33  * copyright, permission, and disclaimer notice must appear in all copies of
34  * this code.
35  */
36 
37 #ifndef __LPC_ERROR_H__
38 #define __LPC_ERROR_H__
39 
47 typedef enum
48 { LPC_OK=0, ERR_FAILED = -1, ERR_TIME_OUT = -2, ERR_BUSY = -3,
54  /* ISP related errors */
55  ERR_ISP_BASE = 0x00000000,
56  /*0x00000001*/ ERR_ISP_INVALID_COMMAND = ERR_ISP_BASE + 1,
57  /*0x00000002*/ ERR_ISP_SRC_ADDR_ERROR, /* Source address not on word boundary */
58  /*0x00000003*/ ERR_ISP_DST_ADDR_ERROR, /* Destination address not on word or 256 byte boundary */
61  /*0x00000006*/ ERR_ISP_COUNT_ERROR, /* Byte count is not multiple of 4 or is not a permitted value */
62  /*0x00000007*/ ERR_ISP_INVALID_SECTOR,
63  /*0x00000008*/ ERR_ISP_SECTOR_NOT_BLANK,
65  /*0x0000000A*/ ERR_ISP_COMPARE_ERROR,
66  /*0x0000000B*/ ERR_ISP_BUSY, /* Flash programming hardware interface is busy */
67  /*0x0000000C*/ ERR_ISP_PARAM_ERROR, /* Insufficient number of parameters */
68  /*0x0000000D*/ ERR_ISP_ADDR_ERROR, /* Address not on word boundary */
69  /*0x0000000E*/ ERR_ISP_ADDR_NOT_MAPPED,
70  /*0x0000000F*/ ERR_ISP_CMD_LOCKED, /* Command is locked */
71  /*0x00000010*/ ERR_ISP_INVALID_CODE, /* Unlock code is invalid */
72  /*0x00000011*/ ERR_ISP_INVALID_BAUD_RATE,
73  /*0x00000012*/ ERR_ISP_INVALID_STOP_BIT,
75 
76  /* ROM API related errors */
84  /* SPIFI API related errors */
85  ERR_SPIFI_BASE = 0x00020000,
87  /*0x00020002*/ ERR_SPIFI_INTERNAL_ERROR,
88  /*0x00020003*/ ERR_SPIFI_TIMEOUT,
89  /*0x00020004*/ ERR_SPIFI_OPERAND_ERROR,
90  /*0x00020005*/ ERR_SPIFI_STATUS_PROBLEM,
91  /*0x00020006*/ ERR_SPIFI_UNKNOWN_EXT,
92  /*0x00020007*/ ERR_SPIFI_UNKNOWN_ID,
93  /*0x00020008*/ ERR_SPIFI_UNKNOWN_TYPE,
94  /*0x00020009*/ ERR_SPIFI_UNKNOWN_MFG,
95 
96  /* Security API related errors */
97  ERR_SEC_BASE = 0x00030000,
99  /*0x00030002*/ ERR_SEC_AES_NOT_SUPPORTED,
101 
102 
103  /* USB device stack related errors */
117  /* CGU related errors */
118  ERR_CGU_BASE = 0x00050000,
119  /*0x00050001*/ ERR_CGU_NOT_IMPL=ERR_CGU_BASE+1,
120  /*0x00050002*/ ERR_CGU_INVALID_PARAM,
121  /*0x00050003*/ ERR_CGU_INVALID_SLICE,
122  /*0x00050004*/ ERR_CGU_OUTPUT_GEN,
123  /*0x00050005*/ ERR_CGU_DIV_SRC,
124  /*0x00050006*/ ERR_CGU_DIV_VAL,
125  /*0x00050007*/ ERR_CGU_SRC
126 
127 } ErrorCode_t;
128 
129 
130 
131 //#define offsetof(s,m) (int)&(((s *)0)->m)
132 #define COMPILE_TIME_ASSERT(pred) switch(0){case 0:case pred:;}
133 
134 #endif /* __LPC_ERROR_H__ */
ERR_USBD_BAD_DESC
@ ERR_USBD_BAD_DESC
Definition: error.h:110
ERR_API_INVALID_PARAM2
@ ERR_API_INVALID_PARAM2
Definition: error.h:80
ERR_CGU_DIV_VAL
@ ERR_CGU_DIV_VAL
Definition: error.h:124
ERR_CGU_INVALID_PARAM
@ ERR_CGU_INVALID_PARAM
Definition: error.h:120
ERR_SPIFI_OPERAND_ERROR
@ ERR_SPIFI_OPERAND_ERROR
Definition: error.h:89
ERR_ISP_BUSY
@ ERR_ISP_BUSY
Definition: error.h:66
ERR_ISP_INVALID_CODE
@ ERR_ISP_INVALID_CODE
Definition: error.h:71
ERR_USBD_BAD_EP_DESC
@ ERR_USBD_BAD_EP_DESC
Definition: error.h:113
ERR_ISP_INVALID_SECTOR
@ ERR_ISP_INVALID_SECTOR
Definition: error.h:62
ERR_ISP_INVALID_COMMAND
@ ERR_ISP_INVALID_COMMAND
Definition: error.h:56
ERR_ISP_COUNT_ERROR
@ ERR_ISP_COUNT_ERROR
Definition: error.h:61
ERR_SEC_AES_WRONG_CMD
@ ERR_SEC_AES_WRONG_CMD
Definition: error.h:98
ERR_CGU_BASE
@ ERR_CGU_BASE
Definition: error.h:118
LPC_OK
@ LPC_OK
Definition: error.h:49
ERR_USBD_BAD_CFG_DESC
@ ERR_USBD_BAD_CFG_DESC
Definition: error.h:111
ERR_BUSY
@ ERR_BUSY
Definition: error.h:52
ERR_USBD_BASE
@ ERR_USBD_BASE
Definition: error.h:104
ERR_API_INVALID_PARAMS
@ ERR_API_INVALID_PARAMS
Definition: error.h:78
ERR_SPIFI_TIMEOUT
@ ERR_SPIFI_TIMEOUT
Definition: error.h:88
ERR_ISP_SRC_ADDR_NOT_MAPPED
@ ERR_ISP_SRC_ADDR_NOT_MAPPED
Definition: error.h:59
ERR_ISP_SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION
@ ERR_ISP_SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION
Definition: error.h:64
ERR_ISP_CMD_LOCKED
@ ERR_ISP_CMD_LOCKED
Definition: error.h:70
ERR_SPIFI_STATUS_PROBLEM
@ ERR_SPIFI_STATUS_PROBLEM
Definition: error.h:90
ERR_USBD_STALL
@ ERR_USBD_STALL
Definition: error.h:107
ERR_ISP_INVALID_STOP_BIT
@ ERR_ISP_INVALID_STOP_BIT
Definition: error.h:73
ERR_SPIFI_INTERNAL_ERROR
@ ERR_SPIFI_INTERNAL_ERROR
Definition: error.h:87
ERR_API_INVALID_PARAM1
@ ERR_API_INVALID_PARAM1
Definition: error.h:79
ERR_SPIFI_UNKNOWN_EXT
@ ERR_SPIFI_UNKNOWN_EXT
Definition: error.h:91
ERR_ISP_SECTOR_NOT_BLANK
@ ERR_ISP_SECTOR_NOT_BLANK
Definition: error.h:63
ERR_SPIFI_UNKNOWN_ID
@ ERR_SPIFI_UNKNOWN_ID
Definition: error.h:92
ERR_USBD_SEND_ZLP
@ ERR_USBD_SEND_ZLP
Definition: error.h:108
ERR_ISP_ADDR_ERROR
@ ERR_ISP_ADDR_ERROR
Definition: error.h:68
ERR_ISP_PARAM_ERROR
@ ERR_ISP_PARAM_ERROR
Definition: error.h:67
ERR_ISP_DST_ADDR_ERROR
@ ERR_ISP_DST_ADDR_ERROR
Definition: error.h:58
ERR_USBD_BAD_INTF_DESC
@ ERR_USBD_BAD_INTF_DESC
Definition: error.h:112
ERR_ISP_SRC_ADDR_ERROR
@ ERR_ISP_SRC_ADDR_ERROR
Definition: error.h:57
ERR_SEC_BASE
@ ERR_SEC_BASE
Definition: error.h:97
ERR_API_MOD_INIT
@ ERR_API_MOD_INIT
Definition: error.h:82
ERR_SPIFI_BASE
@ ERR_SPIFI_BASE
Definition: error.h:85
ERR_ISP_DST_ADDR_NOT_MAPPED
@ ERR_ISP_DST_ADDR_NOT_MAPPED
Definition: error.h:60
ERR_CGU_INVALID_SLICE
@ ERR_CGU_INVALID_SLICE
Definition: error.h:121
ERR_SPIFI_UNKNOWN_TYPE
@ ERR_SPIFI_UNKNOWN_TYPE
Definition: error.h:93
ERR_SEC_AES_NOT_SUPPORTED
@ ERR_SEC_AES_NOT_SUPPORTED
Definition: error.h:99
ERR_ISP_INVALID_BAUD_RATE
@ ERR_ISP_INVALID_BAUD_RATE
Definition: error.h:72
ErrorCode_t
ErrorCode_t
Definition: error.h:47
ERR_FAILED
@ ERR_FAILED
Definition: error.h:50
ERR_CGU_DIV_SRC
@ ERR_CGU_DIV_SRC
Definition: error.h:123
ERR_ISP_CODE_READ_PROTECTION_ENABLED
@ ERR_ISP_CODE_READ_PROTECTION_ENABLED
Definition: error.h:74
ERR_USBD_TOO_MANY_CLASS_HDLR
@ ERR_USBD_TOO_MANY_CLASS_HDLR
Definition: error.h:115
ERR_CGU_NOT_IMPL
@ ERR_CGU_NOT_IMPL
Definition: error.h:119
ERR_API_INVALID_PARAM3
@ ERR_API_INVALID_PARAM3
Definition: error.h:81
ERR_ISP_ADDR_NOT_MAPPED
@ ERR_ISP_ADDR_NOT_MAPPED
Definition: error.h:69
ERR_USBD_INVALID_REQ
@ ERR_USBD_INVALID_REQ
Definition: error.h:105
ERR_SPIFI_UNKNOWN_MFG
@ ERR_SPIFI_UNKNOWN_MFG
Definition: error.h:94
ERR_SEC_AES_KEY_ALREADY_PROGRAMMED
@ ERR_SEC_AES_KEY_ALREADY_PROGRAMMED
Definition: error.h:100
ERR_SPIFI_DEVICE_ERROR
@ ERR_SPIFI_DEVICE_ERROR
Definition: error.h:86
ERR_API_BASE
@ ERR_API_BASE
Definition: error.h:77
ERR_TIME_OUT
@ ERR_TIME_OUT
Definition: error.h:51
ERR_USBD_SEND_DATA
@ ERR_USBD_SEND_DATA
Definition: error.h:109
ERR_USBD_UNHANDLED
@ ERR_USBD_UNHANDLED
Definition: error.h:106
ERR_ISP_COMPARE_ERROR
@ ERR_ISP_COMPARE_ERROR
Definition: error.h:65
ERR_USBD_BAD_MEM_BUF
@ ERR_USBD_BAD_MEM_BUF
Definition: error.h:114
ERR_ISP_BASE
@ ERR_ISP_BASE
Definition: error.h:55
ERR_CGU_OUTPUT_GEN
@ ERR_CGU_OUTPUT_GEN
Definition: error.h:122
ERR_CGU_SRC
@ ERR_CGU_SRC
Definition: error.h:125


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:02