From 411c0c52c139b113113f0eb97db947037ce51781 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Wed, 15 Mar 2023 18:30:30 +0000 Subject: [PATCH] add control_loop_cmds header generators --- firmware/rtl/control_loop/control_loop_cmds.h.m4 | 7 +++++++ firmware/rtl/control_loop/control_loop_cmds.vh.m4 | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 firmware/rtl/control_loop/control_loop_cmds.h.m4 create mode 100644 firmware/rtl/control_loop/control_loop_cmds.vh.m4 diff --git a/firmware/rtl/control_loop/control_loop_cmds.h.m4 b/firmware/rtl/control_loop/control_loop_cmds.h.m4 new file mode 100644 index 0000000..cd436a9 --- /dev/null +++ b/firmware/rtl/control_loop/control_loop_cmds.h.m4 @@ -0,0 +1,7 @@ +m4_changequote(`⟨', `⟩')m4_dnl +m4_changecom(⟨/*⟩, ⟨*/⟩)m4_dnl +m4_define(generate_macro, ⟨m4_dnl +#define $1 $2 m4_dnl +m4_define(M4_$1, $2)m4_dnl +⟩)m4_dnl +m4_include(control_loop_cmds.m4) diff --git a/firmware/rtl/control_loop/control_loop_cmds.vh.m4 b/firmware/rtl/control_loop/control_loop_cmds.vh.m4 new file mode 100644 index 0000000..fae1a66 --- /dev/null +++ b/firmware/rtl/control_loop/control_loop_cmds.vh.m4 @@ -0,0 +1,7 @@ +m4_changequote(`⟨', `⟩')m4_dnl +m4_changecom(⟨/*⟩, ⟨*/⟩)m4_dnl +m4_define(generate_macro, ⟨m4_dnl +`define $1 $2 m4_dnl +m4_define(M4_$1, $2)m4_dnl +⟩)m4_dnl +m4_include(control_loop_cmds.m4)