summaryrefslogtreecommitdiff
path: root/quantum/programmable_button.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/programmable_button.c')
-rw-r--r--quantum/programmable_button.c28
1 files changed, 21 insertions, 7 deletions
diff --git a/quantum/programmable_button.c b/quantum/programmable_button.c
index be828fd17c..a3ef42d82b 100644
--- a/quantum/programmable_button.c
+++ b/quantum/programmable_button.c
@@ -22,16 +22,30 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
static uint32_t programmable_button_report = 0;
-void programmable_button_clear(void) { programmable_button_report = 0; }
+void programmable_button_clear(void) {
+ programmable_button_report = 0;
+}
-void programmable_button_send(void) { host_programmable_button_send(programmable_button_report); }
+void programmable_button_send(void) {
+ host_programmable_button_send(programmable_button_report);
+}
-void programmable_button_on(uint8_t index) { programmable_button_report |= REPORT_BIT(index); }
+void programmable_button_on(uint8_t index) {
+ programmable_button_report |= REPORT_BIT(index);
+}
-void programmable_button_off(uint8_t index) { programmable_button_report &= ~REPORT_BIT(index); }
+void programmable_button_off(uint8_t index) {
+ programmable_button_report &= ~REPORT_BIT(index);
+}
-bool programmable_button_is_on(uint8_t index) { return !!(programmable_button_report & REPORT_BIT(index)); };
+bool programmable_button_is_on(uint8_t index) {
+ return !!(programmable_button_report & REPORT_BIT(index));
+};
-uint32_t programmable_button_get_report(void) { return programmable_button_report; };
+uint32_t programmable_button_get_report(void) {
+ return programmable_button_report;
+};
-void programmable_button_set_report(uint32_t report) { programmable_button_report = report; }
+void programmable_button_set_report(uint32_t report) {
+ programmable_button_report = report;
+}