summaryrefslogtreecommitdiff
path: root/c/src/lib/libbsp/arm/xm-tms570/startup/bspreset.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/arm/xm-tms570/startup/bspreset.c')
-rw-r--r--c/src/lib/libbsp/arm/xm-tms570/startup/bspreset.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/xm-tms570/startup/bspreset.c b/c/src/lib/libbsp/arm/xm-tms570/startup/bspreset.c
new file mode 100644
index 0000000000..454ba8e225
--- /dev/null
+++ b/c/src/lib/libbsp/arm/xm-tms570/startup/bspreset.c
@@ -0,0 +1,25 @@
+/*
+ * @file bspreset.c
+ *
+ * @author Miguel Masmano <mmasmano@fentiss.com>
+ *
+ * @copyright
+ * Copyright 2016 Fent Innovative Software Solutions (FENTISS).
+ * All rights reserved.
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#include <bsp.h>
+#include <bsp/bootcard.h>
+#include <bsp/start.h>
+
+#include <xm.h>
+
+void bsp_reset(void)
+{
+ /* A reset cannot be directly done since the
+ partition's code is not restored by the bootloader */
+ XM_halt_partition(XM_PARTITION_SELF);
+}