summaryrefslogtreecommitdiff
path: root/lcmodule/source/cnh1606344_ldr_communication_module/source
diff options
context:
space:
mode:
Diffstat (limited to 'lcmodule/source/cnh1606344_ldr_communication_module/source')
-rw-r--r--lcmodule/source/cnh1606344_ldr_communication_module/source/communication_service.c16
-rw-r--r--lcmodule/source/cnh1606344_ldr_communication_module/source/lcm_version.c16
2 files changed, 32 insertions, 0 deletions
diff --git a/lcmodule/source/cnh1606344_ldr_communication_module/source/communication_service.c b/lcmodule/source/cnh1606344_ldr_communication_module/source/communication_service.c
index e7ccd73..3db459b 100644
--- a/lcmodule/source/cnh1606344_ldr_communication_module/source/communication_service.c
+++ b/lcmodule/source/cnh1606344_ldr_communication_module/source/communication_service.c
@@ -34,6 +34,10 @@
#include "r_z_transport.h"
#endif
+
+extern char LCM_CurrentVersion[];
+
+
/*******************************************************************************
* File scope types, constants and variables
******************************************************************************/
@@ -463,6 +467,18 @@ ErrorExit:
return ReturnValue;
}
+/*
+ * Function used to get the LCM version.
+ *
+ * LCM version string for the current version is placed in lcm_version.c file
+ *
+ * @retval char LCM_CurrentVersion[] After successful execution.
+ */
+char *Do_Communication_GetVersion()
+{
+ return LCM_CurrentVersion;
+}
+
void Do_CommunicationInternalErrorHandler(const ErrorCode_e IntError)
{
#ifndef PRINT_A_
diff --git a/lcmodule/source/cnh1606344_ldr_communication_module/source/lcm_version.c b/lcmodule/source/cnh1606344_ldr_communication_module/source/lcm_version.c
new file mode 100644
index 0000000..3806e59
--- /dev/null
+++ b/lcmodule/source/cnh1606344_ldr_communication_module/source/lcm_version.c
@@ -0,0 +1,16 @@
+/*******************************************************************************
+ * Copyright (C) ST-Ericsson SA 2011
+ * License terms: 3-clause BSD license
+ ******************************************************************************/
+/**
+ * @addtogroup ldr_communication_serv
+ * @{
+ */
+/**
+ * var char LCM_CurrentVersion[]
+ * brief ASCII string variable holding the LCM version/build time/product number..
+ */
+
+char LCM_CurrentVersion[] = "R1V";
+
+/** @} */