aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/ports/raspberrypi/sdk/tools/pioasm/pio_disassembler.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2022-06-19 19:47:51 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2022-06-19 19:47:51 +0530
commit4fd287655a72b9aea14cdac715ad5b90ed082ed2 (patch)
tree65d393bc0e699dd12d05b29ba568e04cea666207 /circuitpython/ports/raspberrypi/sdk/tools/pioasm/pio_disassembler.h
parent0150f70ce9c39e9e6dd878766c0620c85e47bed0 (diff)
add circuitpython code
Diffstat (limited to 'circuitpython/ports/raspberrypi/sdk/tools/pioasm/pio_disassembler.h')
-rw-r--r--circuitpython/ports/raspberrypi/sdk/tools/pioasm/pio_disassembler.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/circuitpython/ports/raspberrypi/sdk/tools/pioasm/pio_disassembler.h b/circuitpython/ports/raspberrypi/sdk/tools/pioasm/pio_disassembler.h
new file mode 100644
index 0000000..669e08d
--- /dev/null
+++ b/circuitpython/ports/raspberrypi/sdk/tools/pioasm/pio_disassembler.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef _PIO_DISASSEMBLER_H
+#define _PIO_DISASSEMBLER_H
+
+#ifdef __cplusplus
+
+#include <string>
+
+typedef unsigned int uint;
+
+std::string disassemble(uint16_t inst, uint sideset_bits, bool sideset_opt);
+extern "C" void disassemble(char *buf, int buf_len, uint16_t inst, uint sideset_bits, bool sideset_opt);
+#else
+void disassemble(char *buf, int buf_len, uint inst, uint sideset_bits, bool sideset_opt);
+#endif
+
+#endif \ No newline at end of file