summaryrefslogtreecommitdiff
path: root/cesar/lib/visual_state_api/src/SMPMach.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/lib/visual_state_api/src/SMPMach.c')
-rw-r--r--cesar/lib/visual_state_api/src/SMPMach.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/cesar/lib/visual_state_api/src/SMPMach.c b/cesar/lib/visual_state_api/src/SMPMach.c
new file mode 100644
index 0000000000..8a154790c9
--- /dev/null
+++ b/cesar/lib/visual_state_api/src/SMPMach.c
@@ -0,0 +1,32 @@
+/*
+ * Type: Source Code File
+ *
+ * Id: SMPMach.c
+ *
+ * Function: Contains the SMP_Machine SEM Library Expert version 4 function.
+ *
+ * Portability: ANSI-C Compiler.
+ *
+ * Copyright (c) 1999-2006 IAR Systems. All rights reserved.
+ */
+
+/*
+ * Version ! Date ! Status ! Changes
+ *----------------------------------------------------------------------------
+ * 4.0.0.1 ! 301198 ! Closed ! -
+ * 4.0.4 ! 010799 ! Closed ! Minor update, there might be no changes to this particular file.
+ */
+
+#include "SEMLibE.h"
+
+
+unsigned char SMP_Machine (SEM_CONTEXT VS_TQ_CONTEXT *Context, SEM_STATE_TYPE StateNo,
+ SEM_STATE_MACHINE_TYPE *StateMachineNo)
+{
+ if (!Context)
+ return (SES_NOT_LOADED);
+ if (Context->nNofStates <= StateNo)
+ return (SES_RANGE_ERR);
+ *StateMachineNo = Context->pSMI[StateNo];
+ return (SES_FOUND);
+}