diff options
| author | [email protected] <[email protected]> | 2011-06-23 13:37:42 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-23 13:37:42 +0000 |
| commit | 3a503dcc898b89cb20719094294117fc85fe3a67 (patch) | |
| tree | 72bf879270ed9859d06a48fa7e61a581436ac10d /bsp/lm3s9b9x/Libraries/driverlib/debug.h | |
| parent | 9607beb21062142239174377c81f0cc85b4adc9b (diff) | |
rename from lm3s_9b9x to lm3s9b9x
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1532 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'bsp/lm3s9b9x/Libraries/driverlib/debug.h')
| -rw-r--r-- | bsp/lm3s9b9x/Libraries/driverlib/debug.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/bsp/lm3s9b9x/Libraries/driverlib/debug.h b/bsp/lm3s9b9x/Libraries/driverlib/debug.h new file mode 100644 index 0000000000..1d98ee0c7d --- /dev/null +++ b/bsp/lm3s9b9x/Libraries/driverlib/debug.h @@ -0,0 +1,53 @@ +//*****************************************************************************
+//
+// debug.h - Macros for assisting debug of the driver library.
+//
+// Copyright (c) 2006-2010 Texas Instruments Incorporated. All rights reserved.
+// Software License Agreement
+//
+// Texas Instruments (TI) is supplying this software for use solely and
+// exclusively on TI's microcontroller products. The software is owned by
+// TI and/or its suppliers, and is protected under applicable copyright
+// laws. You may not combine this software with "viral" open-source
+// software in order to form a larger program.
+//
+// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
+// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
+// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
+// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
+// DAMAGES, FOR ANY REASON WHATSOEVER.
+//
+// This is part of revision 6459 of the Stellaris Peripheral Driver Library.
+//
+//*****************************************************************************
+
+#ifndef __DEBUG_H__
+#define __DEBUG_H__
+
+//*****************************************************************************
+//
+// Prototype for the function that is called when an invalid argument is passed
+// to an API. This is only used when doing a DEBUG build.
+//
+//*****************************************************************************
+extern void __error__(char *pcFilename, unsigned long ulLine);
+
+//*****************************************************************************
+//
+// The ASSERT macro, which does the actual assertion checking. Typically, this
+// will be for procedure arguments.
+//
+//*****************************************************************************
+#ifdef DEBUG
+#define ASSERT(expr) { \
+ if(!(expr)) \
+ { \
+ __error__(__FILE__, __LINE__); \
+ } \
+ }
+#else
+#define ASSERT(expr)
+#endif
+
+#endif // __DEBUG_H__
|
