aboutsummaryrefslogtreecommitdiff
path: root/keyboards/infinity60/led_controller.c
diff options
context:
space:
mode:
authorjpetermans <tibcmhhm@gmail.com>2017-05-08 16:15:20 -0700
committerjpetermans <tibcmhhm@gmail.com>2017-05-08 16:15:20 -0700
commit821f72eae94ce4f1b93bab1376b2187698206b65 (patch)
tree22f3cd2eaa13978c8aad7b8423573fa5e052bdb1 /keyboards/infinity60/led_controller.c
parentb5675e20255a9306097ad58dabc8727a2c190946 (diff)
downloadqmk_firmware-821f72eae94ce4f1b93bab1376b2187698206b65.tar.gz
qmk_firmware-821f72eae94ce4f1b93bab1376b2187698206b65.zip
documentation cleanup
Diffstat (limited to 'keyboards/infinity60/led_controller.c')
-rw-r--r--keyboards/infinity60/led_controller.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/keyboards/infinity60/led_controller.c b/keyboards/infinity60/led_controller.c
index d4ad0559b..d776b4fcf 100644
--- a/keyboards/infinity60/led_controller.c
+++ b/keyboards/infinity60/led_controller.c
@@ -186,7 +186,7 @@ page_status = 0; //start frame 0 (all off/on)
186 while(true) { 186 while(true) {
187 // wait for a message (asynchronous) 187 // wait for a message (asynchronous)
188 // (messages are queued (up to LED_MAILBOX_NUM_MSGS) if they can't 188 // (messages are queued (up to LED_MAILBOX_NUM_MSGS) if they can't
189 // be processed right away) 189 // be processed right away
190 chMBFetch(&led_mailbox, &msg, TIME_INFINITE); 190 chMBFetch(&led_mailbox, &msg, TIME_INFINITE);
191 msg_col = (msg >> 24) & 0xFF;//if needed 191 msg_col = (msg >> 24) & 0xFF;//if needed
192 msg_pin = (msg >> 16) & 0XFF;//if needed (e.g. SET_FULL_ROW) 192 msg_pin = (msg >> 16) & 0XFF;//if needed (e.g. SET_FULL_ROW)
@@ -229,7 +229,7 @@ page_status = 0; //start frame 0 (all off/on)
229 break; 229 break;
230 230
231 case TOGGLE_ALL: 231 case TOGGLE_ALL:
232 //msg_led = unused 232 //msg_led = unused
233 is31_read_register(0, 0x00, &temp); 233 is31_read_register(0, 0x00, &temp);
234 led_control_reg[0] = 0; 234 led_control_reg[0] = 0;
235 235
@@ -315,7 +315,7 @@ page_status = 0; //start frame 0 (all off/on)
315 break; 315 break;
316 } 316 }
317 317
318 //populate 8 byte rows to write on each pin 318 //populate 8 byte arrays to write on each pin
319 //first byte is register address, every 0x10 9 bytes are A-register pwm pins 319 //first byte is register address, every 0x10 9 bytes are A-register pwm pins
320 __builtin_memset(pwm_register_array+1, pwm_levels[pwm_step_status], 8); 320 __builtin_memset(pwm_register_array+1, pwm_levels[pwm_step_status], 8);
321 321