]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf230/RF230LayerP.nc
more LPL debugging
[tinyos-2.x.git] / tos / chips / rf230 / RF230LayerP.nc
index c9329698fd4f3cae32edb5967f9eda2024718349..9788d59aff36d081801f0de554aeeed4fb8afff5 100644 (file)
@@ -658,7 +658,22 @@ implementation
                                        ASSERT( state == STATE_BUSY_TX_2_RX_ON );
                                }
                                else
-                                       ASSERT(FALSE);
+                               {
+#ifdef RF230_DEBUG
+//                                     ASSERT(FALSE);
+                                       if( call DiagMsg.record() )
+                                       {
+                                               call DiagMsg.str("assert pll");
+                                               call DiagMsg.uint16(call RadioAlarm.getNow());
+                                               call DiagMsg.hex8(readRegister(RF230_TRX_STATUS));
+                                               call DiagMsg.hex8(readRegister(RF230_TRX_STATE));
+                                               call DiagMsg.hex8(irq);
+                                               call DiagMsg.uint8(state);
+                                               call DiagMsg.uint8(cmd);
+                                               call DiagMsg.send();
+                                       }
+#endif
+                               }
                        }
 
                        if( irq & RF230_IRQ_RX_START )
@@ -742,7 +757,22 @@ implementation
                                        cmd = CMD_DOWNLOAD;
                                }
                                else
-                                       ASSERT(FALSE);
+                               {
+#ifdef RF230_DEBUG
+//                                     ASSERT(FALSE);
+                                       if( call DiagMsg.record() )
+                                       {
+                                               call DiagMsg.str("assert trx");
+                                               call DiagMsg.uint16(call RadioAlarm.getNow());
+                                               call DiagMsg.hex8(readRegister(RF230_TRX_STATUS));
+                                               call DiagMsg.hex8(readRegister(RF230_TRX_STATE));
+                                               call DiagMsg.hex8(irq);
+                                               call DiagMsg.uint8(state);
+                                               call DiagMsg.uint8(cmd);
+                                               call DiagMsg.send();
+                                       }
+#endif
+                               }
                        }
                }
        }