aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.h
diff options
context:
space:
mode:
authorisiora <none@example.com>2018-01-19 14:15:25 +0000
committerisiora <none@example.com>2018-01-19 14:15:25 +0000
commit9b492024bd2a29f1be65eece6506eb2939b1681c (patch)
treeb36b3b51e340cbbe45ba3fe789eb76e706e5f777 /demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.h
parentd1fbd41782f30da68c7b67ca75a0cbee69fff133 (diff)
downloadChibiOS-9b492024bd2a29f1be65eece6506eb2939b1681c.tar.gz
ChibiOS-9b492024bd2a29f1be65eece6506eb2939b1681c.tar.bz2
ChibiOS-9b492024bd2a29f1be65eece6506eb2939b1681c.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11351 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.h')
-rw-r--r--demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.h b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.h
new file mode 100644
index 000000000..c537bb0c9
--- /dev/null
+++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/smcclient.h
@@ -0,0 +1,82 @@
+/*
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio.
+
+ This file is part of ChibiOS.
+
+ ChibiOS is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ ChibiOS is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/**
+ * @file smcclient.h
+ * @brief smc Module macros and structures.
+ *
+ * @addtogroup SMC
+ * @{
+ */
+
+#ifndef SMCCLIENT_H
+#define SMCCLIENT_H
+
+/*===========================================================================*/
+/* Module constants. */
+/*===========================================================================*/
+/*
+ * Service registry errors
+ */
+#define SMC_SVC_OK MSG_OK /* No error */
+
+/*
+ * Special service handles
+ */
+#define SMC_HND_TRAMP ((smc_service_t)0)
+#define SMC_HND_GET ((smc_service_t)1)
+
+/*===========================================================================*/
+/* Module pre-compile time settings. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Derived constants and error checks. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module data structures and types. */
+/*===========================================================================*/
+typedef uint8_t * smc_params_area_t;
+typedef void * smc_service_t;
+
+/*===========================================================================*/
+/* Module macros. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* External declarations. */
+/*===========================================================================*/
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+msg_t smcInvokeService(smc_service_t handle, smc_params_area_t data,
+ size_t size);
+#ifdef __cplusplus
+}
+#endif
+
+/*===========================================================================*/
+/* Module inline functions. */
+/*===========================================================================*/
+
+#endif /* SMCCLIENT_H */
+
+/** @} */