summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 35adc95)
raw | patch | inline | side by side (parent: 35adc95)
author | Sebastien Tomas <a0918790@ti.com> | |
Tue, 12 May 2015 13:34:24 +0000 (15:34 +0200) | ||
committer | Sebastien Tomas <a0918790@ti.com> | |
Tue, 12 May 2015 13:34:24 +0000 (15:34 +0200) |
include/IQN2_runtime.h | patch | blob | history | |
src/iqn2lld/IQN2_debug.c | patch | blob | history | |
src/iqn2lld/IQN2_runtime.c | patch | blob | history |
diff --git a/include/IQN2_runtime.h b/include/IQN2_runtime.h
index c8b72e9c20460861352edb614796ad875551125b..c0708a813ee7311abcd2eff031ee4e27d47a6cf6 100644 (file)
--- a/include/IQN2_runtime.h
+++ b/include/IQN2_runtime.h
IQN2_ConfigHandle hIqn2
);
+/**
+ * @n@b IQN2_resyncProcedureReset
+ *
+ * @b Description
+ * @n This function resets static variables used by the resync procedure. It is required to call this function if the EE
+ * counters are reset.
+ *
+ * @b Arguments
+ * @verbatim
+ @endverbatim
+ *
+ * <b> Return Value </b> none
+ *
+ * <b> Pre Condition </b>
+ * @n
+ *
+ * <b> Post Condition </b>
+ * @n
+ *
+ * @b Modifies
+ * @n
+ *
+ * @b Example
+ * @verbatim
+ IQN2_resyncProcedureReset();
+ @endverbatim
+ *
+ */
+#ifndef __IQN2_RUNTIME_C
+extern
+#endif
+void
+IQN2_resyncProcedureReset(
+);
+
/**
* @n@b IQN2_resyncProcedure
*
index 89d72f97a144eebe66231a7e83979126ff45f992..4fbcb4bf79a87f7f3b8c8f3b45d479dbc74740b5 100644 (file)
--- a/src/iqn2lld/IQN2_debug.c
+++ b/src/iqn2lld/IQN2_debug.c
#include <ti/drv/iqn2/iqn2_osal.h>
#include <ti/drv/iqn2/include/IQN2_defs.h>
+#include <ti/drv/iqn2/include/IQN2_runtime.h>
#define __IQN2_DEBUG_C
#include <ti/drv/iqn2/include/IQN2_debug.h>
)
{
reset_ExceptionStats(hIqn2);
+ IQN2_resyncProcedureReset();
}
void IQN2_captureException (
index 652919ea84943180ba7e693d8018435507766907..5fbed3a6be80505a604198ba39882fb66d46b1c4 100644 (file)
static uint32_t physync_info = 0;
static uint32_t pa_tscomp_info = 0;
+void
+IQN2_resyncProcedureReset()
+{
+ rp1_sync_info = 0;
+ radsync_info = 0;
+ physync_info = 0;
+ pa_tscomp_info = 0;
+}
+
uint32_t
IQN2_resyncProcedure(
IQN2_ConfigHandle hIqn2,