From 3a503dcc898b89cb20719094294117fc85fe3a67 Mon Sep 17 00:00:00 2001 From: "qiuyiuestc@gmail.com" Date: Thu, 23 Jun 2011 13:37:42 +0000 Subject: rename from lm3s_9b9x to lm3s9b9x git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1532 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/lm3s9b9x/Libraries/driverlib/debug.h | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 bsp/lm3s9b9x/Libraries/driverlib/debug.h (limited to 'bsp/lm3s9b9x/Libraries/driverlib/debug.h') 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__ -- cgit v1.3.1