summaryrefslogtreecommitdiff
path: root/keyboards/rgbkb/mun/mun.c
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2021-06-26 00:00:21 -0500
committerGitHub <noreply@github.com>2021-06-25 22:00:21 -0700
commit8b059088ba9c310d3790d2839027e966f1082393 (patch)
tree535432b0969c2b4d27201c2b99cd3c63978817d3 /keyboards/rgbkb/mun/mun.c
parentf8c01a8e5ad3cf85157d53d4718d80f194bb61cd (diff)
Keyboards/RGBKB/Mün (#13239)
Diffstat (limited to 'keyboards/rgbkb/mun/mun.c')
-rw-r--r--keyboards/rgbkb/mun/mun.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/keyboards/rgbkb/mun/mun.c b/keyboards/rgbkb/mun/mun.c
new file mode 100644
index 0000000000..5dabecc134
--- /dev/null
+++ b/keyboards/rgbkb/mun/mun.c
@@ -0,0 +1,35 @@
+/*
+ * ----------------------------------------------------------------------------
+ * "THE BEER-WARE LICENSE" (Revision 42):
+ * <https://github.com/Legonut> wrote this file. As long as you retain this
+ * notice you can do whatever you want with this stuff. If we meet some day, and
+ * you think this stuff is worth it, you can buy me a beer in return. David Rauseo
+ * ----------------------------------------------------------------------------
+ */
+
+#include "mun.h"
+#include "touch_encoder.h"
+#include "common_oled.h"
+#include <transactions.h>
+
+void keyboard_post_init_kb(void)
+{
+ touch_encoder_init();
+ transaction_register_rpc(TOUCH_ENCODER_SYNC, touch_encoder_slave_sync);
+ transaction_register_rpc(RGB_MENU_SYNC, rgb_menu_slave_sync);
+ keyboard_post_init_user();
+}
+
+void housekeeping_task_kb(void)
+{
+ touch_encoder_update(TOUCH_ENCODER_SYNC);
+ rgb_menu_update(RGB_MENU_SYNC);
+}
+
+#if defined(BUSY_WAIT)
+void matrix_output_unselect_delay(void) {
+ for (int32_t i = 0; i < BUSY_WAIT_INSTRUCTIONS; i++) {
+ __asm__ volatile("nop" ::: "memory");
+ }
+}
+#endif \ No newline at end of file