2 Copyright 2018 Massdrop Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #include "samd51j18a.h"
22 uint8_t keyboard_protocol = 1;
24 void main_suspend_action(void)
29 void main_resume_action(void)
34 void main_sof_action(void)
36 ui_process(udd_get_frame_number());
39 void main_remotewakeup_enable(void)
44 void main_remotewakeup_disable(void)
50 volatile bool main_b_kbd_enable = false;
51 bool main_kbd_enable(void)
53 main_b_kbd_enable = true;
57 void main_kbd_disable(void)
59 main_b_kbd_enable = false;
64 volatile bool main_b_nkro_enable = false;
65 bool main_nkro_enable(void)
67 main_b_nkro_enable = true;
71 void main_nkro_disable(void)
73 main_b_nkro_enable = false;
78 volatile bool main_b_exk_enable = false;
79 bool main_exk_enable(void)
81 main_b_exk_enable = true;
85 void main_exk_disable(void)
87 main_b_exk_enable = false;
92 volatile bool main_b_mou_enable = false;
93 bool main_mou_enable(void)
95 main_b_mou_enable = true;
99 void main_mou_disable(void)
101 main_b_mou_enable = false;
106 volatile bool main_b_raw_enable = false;
107 bool main_raw_enable(void)
109 main_b_raw_enable = true;
113 void main_raw_disable(void)
115 main_b_raw_enable = false;