mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-05 21:52:10 +01:00
Use the new PIOS assert
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@315 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
057def91e2
commit
8e873ec0e8
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Options */
|
/* Options */
|
||||||
#define USE_DEBUG_PINS
|
//#define USE_DEBUG_PINS
|
||||||
|
|
||||||
#ifdef PIOS_INCLUDE_FREERTOS
|
#ifdef PIOS_INCLUDE_FREERTOS
|
||||||
#define USE_FREERTOS
|
#define USE_FREERTOS
|
||||||
@ -107,8 +107,7 @@ static void TransferEnd(I2CRecTypeDef *i2cx);
|
|||||||
#define DebugPinLow(x)
|
#define DebugPinLow(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// FIXME: temp assert
|
#define assert(exp) PIOS_DEBUG_Assert(exp)
|
||||||
#define assert(exp) {if (!(exp)) while(1){DebugPinHigh(DEBUG_PIN_ASSERT);DebugPinLow(DEBUG_PIN_ASSERT);};};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user