summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/RISC-V-spike-htif_GCC/htif.h
diff options
context:
space:
mode:
Diffstat (limited to 'FreeRTOS/Demo/RISC-V-spike-htif_GCC/htif.h')
-rw-r--r--FreeRTOS/Demo/RISC-V-spike-htif_GCC/htif.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/FreeRTOS/Demo/RISC-V-spike-htif_GCC/htif.h b/FreeRTOS/Demo/RISC-V-spike-htif_GCC/htif.h
new file mode 100644
index 000000000..1b08d365b
--- /dev/null
+++ b/FreeRTOS/Demo/RISC-V-spike-htif_GCC/htif.h
@@ -0,0 +1,21 @@
+/*
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Copyright (c) 2010-2020, The Regents of the University of California
+ * (Regents). All Rights Reserved.
+ */
+
+#ifndef __HTIF_H__
+#define __HTIF_H__
+
+#include <stdint.h>
+
+void htif_putc(char ch);
+
+int htif_getc(void);
+
+int htif_system_reset_check(uint32_t type, uint32_t reason);
+
+void htif_system_reset(uint32_t type, uint32_t reason);
+
+#endif