paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5437] made the "debug traps" optional


From: antoine drouin
Subject: [paparazzi-commits] [5437] made the "debug traps" optional
Date: Tue, 17 Aug 2010 22:35:56 +0000

Revision: 5437
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5437
Author:   poine
Date:     2010-08-17 22:35:56 +0000 (Tue, 17 Aug 2010)
Log Message:
-----------
made the "debug traps" optional

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/stm32/i2c_hw.c

Modified: paparazzi3/trunk/sw/airborne/stm32/i2c_hw.c
===================================================================
--- paparazzi3/trunk/sw/airborne/stm32/i2c_hw.c 2010-08-17 22:09:59 UTC (rev 
5436)
+++ paparazzi3/trunk/sw/airborne/stm32/i2c_hw.c 2010-08-17 22:35:56 UTC (rev 
5437)
@@ -326,8 +326,13 @@
 static inline void on_status_reading_last_byte(uint32_t event);
 static inline void on_status_restart_requested(uint32_t event);
 
+#ifdef DEBUG_I2C
 #define SPURIOUS_INTERRUPT(_status, _event) { while(1); }
 #define OUT_OF_SYNC_STATE_MACHINE(_status, _event) { while(1); }
+#else
+#define SPURIOUS_INTERRUPT(_status, _event) {}
+#define OUT_OF_SYNC_STATE_MACHINE(_status, _event) {}
+#endif
 
 /*
  * Start Requested




reply via email to

[Prev in Thread] Current Thread [Next in Thread]