Keyboards/RGBKB/Mün (#13239)
This commit is contained in:
parent
f8c01a8e5a
commit
8b059088ba
27 changed files with 2049 additions and 0 deletions
35
keyboards/rgbkb/mun/mun.c
Normal file
35
keyboards/rgbkb/mun/mun.c
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue