?? debugutils.h
字號:
/* debugutils.h - IXP425 Eval board configuration header *//* Copyright 2002 Wind River Systems, Inc. *//*modification history--------------------01e,12aug03,scm modify MACROs for diab compatibility...01d,08jul03,m_h enabling LED moved to config.h01c,02jul03,m_h LED debug01b,27feb03,jb3 add C++ protection01a,05jun02,jb initial version...*//* * This module contains Debug Macros for use in romInit.s * - Allow basic serial output - polled only. * Provide interface to 7 Seg display. */#ifdef __cplusplusextern "C" {#endif/***** UART ****/#define DEBUG_UART (0) /* Enable Debug uart output */#ifdef _ASMLANGUAGE#define IMMED1 #1#define DELAY(cycles, reg0) \ ldr reg0, = cycles ; \ subs reg0, reg0, IMMED1 ; \ subne pc, pc, IMMED12 ;#endif /* _ASMLANGUAGE */#define DEBUG_OUT_INIT *((UINT32*)IXP425_EXP_CS2_REG)=(0xBFFF0002)#ifdef INCLUDE_IXDP425_LED_DEBUG#define DEBUG_OUT_VAL(x) *((UINT16*)IXDP425_7SEG_BASE)=((UINT16)x)#else#define DEBUG_OUT_VAL(x)#endif/* Error Code Fatal *//* Error code will add 0xFF also */#define ERROR_UNDEF_INSTR 0x00F1#define ERROR_SW_INT 0x00F2#define ERROR_PREFETCH_ABORT 0x00F3#define ERROR_DATA_ABORT 0x00F4#define ERROR_UNKNOWN_VEC 0x00F5#define ERROR_VEC_IRQ 0x00F6#define ERROR_VEC_FIQ 0x00F7 /* Informational codes - progress indicators */#define INFO_CODE_1 (0x0001)#define INFO_CODE_2 (0x0002)#define INFO_CODE_3 (0x0003)#define INFO_CODE_4 (0x0004)#define INFO_CODE_5 (0x0005)#define INFO_CODE_6 (0x0006)#define INFO_CODE_7 (0x0007)#define INFO_CODE_8 (0x0008)#define INFO_CODE_9 (0x0009)#define INFO_CODE_A (0x000A)#define INFO_CODE_B (0x000B)#define INFO_CODE_C (0x000C)#define INFO_CODE_D (0x000D)#define INFO_CODE_E (0x000E)#define INFO_CODE_F (0x000F)#define INFO_CODE_10 (0x0010)#define INFO_CODE_11 (0x0011)#define INFO_CODE_12 (0x0012)#define INFO_CODE_13 (0x0013)#define INFO_CODE_14 (0x0014)#define INFO_CODE_15 (0x0015)#define INFO_CODE_16 (0x0016)#define INFO_CODE_17 (0x0017)#define INFO_CODE_18 (0x0018)#define INFO_CODE_19 (0x0019)#define INFO_CODE_1A (0x001A)#define INFO_CODE_1B (0x001B)#define INFO_CODE_1C (0x001C)#define INFO_CODE_1D (0x001D)#define INFO_CODE_1E (0x001E)#define INFO_CODE_1F (0x001F)#define INFO_CODE_20 (0x0020)#define INFO_CODE_21 (0x0021)#define INFO_CODE_22 (0x0022)#define INFO_CODE_23 (0x0023)#define INFO_CODE_24 (0x0024)#define INFO_CODE_25 (0x0025)#define INFO_CODE_26 (0x0026)#define INFO_CODE_27 (0x0027)#define INFO_CODE_28 (0x0028)#define INFO_CODE_29 (0x0029)#define INFO_CODE_2A (0x002A)#define INFO_CODE_2B (0x002B)#define INFO_CODE_2C (0x002C)#define INFO_CODE_2D (0x002D)#define INFO_CODE_2E (0x002E)#define INFO_CODE_2F (0x002F)#define INFO_CODE_30 (0x0030)#define INFO_CODE_31 (0x0031)#define INFO_CODE_32 (0x0032)#define INFO_CODE_33 (0x0033)#define INFO_CODE_34 (0x0034)#define INFO_CODE_35 (0x0035)#define INFO_CODE_36 (0x0036)#define INFO_CODE_37 (0x0037)#define INFO_CODE_38 (0x0038)#define INFO_CODE_39 (0x0039)#define INFO_CODE_3A (0x003A)#define INFO_CODE_3B (0x003B)#define INFO_CODE_3C (0x003C)#define INFO_CODE_3D (0x003D)#define INFO_CODE_3E (0x003E)#define INFO_CODE_3F (0x003F)#define INFO_CODE_40 (0x0040)#define INFO_CODE_41 (0x0041)#define INFO_CODE_42 (0x0042)#define INFO_CODE_43 (0x0043)#define INFO_CODE_44 (0x0044)#define INFO_CODE_45 (0x0045)#define INFO_CODE_46 (0x0046)#define INFO_CODE_47 (0x0047)#define INFO_CODE_48 (0x0048)#define INFO_CODE_49 (0x0049)#define INFO_CODE_4A (0x004A)#define INFO_CODE_4B (0x004B)#define INFO_CODE_4C (0x004C)#define INFO_CODE_4D (0x004D)#define INFO_CODE_4E (0x004E)#define INFO_CODE_4F (0x004F)#define INFO_CODE_50 (0x0050)#define INFO_CODE_51 (0x0051)#define INFO_CODE_52 (0x0052)#define INFO_CODE_53 (0x0053)#define INFO_CODE_54 (0x0054)#define INFO_CODE_55 (0x0055)#define INFO_CODE_56 (0x0056)#define INFO_CODE_57 (0x0057)#define INFO_CODE_58 (0x0058)#define INFO_CODE_59 (0x0059)#define INFO_CODE_5A (0x005A)#define INFO_CODE_5B (0x005B)#define INFO_CODE_5C (0x005C)#define INFO_CODE_5D (0x005D)#define INFO_CODE_5E (0x005E)#define INFO_CODE_5F (0x005F)#define INFO_CODE_60 (0x0060)#define INFO_CODE_61 (0x0061)#define INFO_CODE_62 (0x0062)#define INFO_CODE_63 (0x0063)#define INFO_CODE_64 (0x0064)#define INFO_CODE_65 (0x0065)#define INFO_CODE_66 (0x0066)#define INFO_CODE_67 (0x0067)#define INFO_CODE_68 (0x0068)#define INFO_CODE_69 (0x0069)#define INFO_CODE_6A (0x006A)#define INFO_CODE_6B (0x006B)#define INFO_CODE_6C (0x006C)#define INFO_CODE_6D (0x006D)#define INFO_CODE_6E (0x006E)#define INFO_CODE_6F (0x006F)#define INFO_CODE_70 (0x0070)#define INFO_CODE_71 (0x0071)#define INFO_CODE_72 (0x0072)#define INFO_CODE_73 (0x0073)#define INFO_CODE_74 (0x0074)#define INFO_CODE_75 (0x0075)#define INFO_CODE_76 (0x0076)#define INFO_CODE_77 (0x0077)#define INFO_CODE_78 (0x0078)#define INFO_CODE_79 (0x0079)#define INFO_CODE_7A (0x007A)#define INFO_CODE_7B (0x007B)#define INFO_CODE_7C (0x007C)#define INFO_CODE_7D (0x007D)#define INFO_CODE_7E (0x007E)#define INFO_CODE_7F (0x007F)#define INFO_CODE_80 (0x0080)#define INFO_CODE_81 (0x0081)#define INFO_CODE_82 (0x0082)#define INFO_CODE_83 (0x0083)#define INFO_CODE_84 (0x0084)#define INFO_CODE_85 (0x0085)#define INFO_CODE_86 (0x0086)#define INFO_CODE_87 (0x0087)#define INFO_CODE_88 (0x0088)#define INFO_CODE_89 (0x0089)#define INFO_CODE_8A (0x008A)#define INFO_CODE_8B (0x008B)#define INFO_CODE_8C (0x008C)#define INFO_CODE_8D (0x008D)#define INFO_CODE_8E (0x008E)#define INFO_CODE_8F (0x008F)#define INFO_CODE_90 (0x0090)#define INFO_CODE_91 (0x0091)#define INFO_CODE_92 (0x0092)#define INFO_CODE_93 (0x0093)#define INFO_CODE_94 (0x0094)#define INFO_CODE_95 (0x0095)#define INFO_CODE_96 (0x0096)#define INFO_CODE_97 (0x0097)#define INFO_CODE_98 (0x0098)#define INFO_CODE_99 (0x0099)#define INFO_CODE_9A (0x009A)#define INFO_CODE_9B (0x009B)#define INFO_CODE_9C (0x009C)#define INFO_CODE_9D (0x009D)#define INFO_CODE_9E (0x009E)#define INFO_CODE_9F (0x009F)#define INFO_CODE_A1 (0x00A1)#define INFO_CODE_A2 (0x00A2)#define INFO_CODE_A3 (0x00A3)#define INFO_CODE_A4 (0x00A4)#define INFO_CODE_A5 (0x00A5)#define INFO_CODE_A6 (0x00A6)#define INFO_CODE_A7 (0x00A7)#define INFO_CODE_A8 (0x00A8)#define INFO_CODE_A9 (0x00A9)#define INFO_CODE_AA (0x00AA)#define INFO_CODE_AB (0x00AB)#define INFO_CODE_AC (0x00AC)#define INFO_CODE_AD (0x00AD)#define INFO_CODE_AE (0x00AE)#define INFO_CODE_AF (0x00AF)#define INFO_CODE_B1 (0x00B1)#define INFO_CODE_B2 (0x00B2)#define INFO_CODE_B3 (0x00B3)#define INFO_CODE_B4 (0x00B4)#define INFO_CODE_B5 (0x00B5)#define INFO_CODE_B6 (0x00B6)#define INFO_CODE_B7 (0x00B7)#define INFO_CODE_B8 (0x00B8)#define INFO_CODE_B9 (0x00B9)#define INFO_CODE_BA (0x00BA)#define INFO_CODE_BB (0x00BB)#define INFO_CODE_BC (0x00BC)#define INFO_CODE_BD (0x00BD)#define INFO_CODE_BE (0x00BE)#define INFO_CODE_BF (0x00BF)#define INFO_CODE_C1 (0x00C1)#define INFO_CODE_C2 (0x00C2)#define INFO_CODE_C3 (0x00C3)#define INFO_CODE_C4 (0x00C4)#define INFO_CODE_C5 (0x00C5)#define INFO_CODE_C6 (0x00C6)#define INFO_CODE_C7 (0x00C7)#define INFO_CODE_C8 (0x00C8)#define INFO_CODE_C9 (0x00C9)#define INFO_CODE_CA (0x00CA)#define INFO_CODE_CB (0x00CB)#define INFO_CODE_CC (0x00CC)#define INFO_CODE_CD (0x00CD)#define INFO_CODE_CE (0x00CE)#define INFO_CODE_CF (0x00CF)#define INFO_CODE_D1 (0x00D1)#define INFO_CODE_D2 (0x00D2)#define INFO_CODE_D3 (0x00D3)#define INFO_CODE_D4 (0x00D4)#define INFO_CODE_D5 (0x00D5)#define INFO_CODE_D6 (0x00D6)#define INFO_CODE_D7 (0x00D7)#define INFO_CODE_D8 (0x00D8)#define INFO_CODE_D9 (0x00D9)#define INFO_CODE_DA (0x00DA)#define INFO_CODE_DB (0x00DB)#define INFO_CODE_DC (0x00DC)#define INFO_CODE_DD (0x00DD)#define INFO_CODE_DE (0x00DE)#define INFO_CODE_DF (0x00DF)#define INFO_CODE_E1 (0x00E1)#define INFO_CODE_E2 (0x00E2)#define INFO_CODE_E3 (0x00E3)#define INFO_CODE_E4 (0x00E4)#define INFO_CODE_E5 (0x00E5)#define INFO_CODE_E6 (0x00E6)#define INFO_CODE_E7 (0x00E7)#define INFO_CODE_E8 (0x00E8)#define INFO_CODE_E9 (0x00E9)#define INFO_CODE_EA (0x00EA)#define INFO_CODE_EB (0x00EB)#define INFO_CODE_EC (0x00EC)#define INFO_CODE_ED (0x00ED)#define INFO_CODE_EE (0x00EE)#define INFO_CODE_EF (0x00EF)#define INFO_CODE_F1 (0x00F1)#define INFO_CODE_F2 (0x00F2)#define INFO_CODE_F3 (0x00F3)#define INFO_CODE_F4 (0x00F4)#define INFO_CODE_F5 (0x00F5)#define INFO_CODE_F6 (0x00F6)#define INFO_CODE_F7 (0x00F7)#define INFO_CODE_F8 (0x00F8)#define INFO_CODE_F9 (0x00F9)#define INFO_CODE_FA (0x00FA)#define INFO_CODE_FB (0x00FB)#define INFO_CODE_FC (0x00FC)#define INFO_CODE_FD (0x00FD)#define INFO_CODE_FE (0x00FE)#define INFO_CODE_FF (0x00FF)#ifdef __cplusplus}#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -