CLeaned out debug code
This commit is contained in:
@ -29,26 +29,22 @@ void led_set(uint8_t usb_led) {
|
|||||||
msg_t msg;
|
msg_t msg;
|
||||||
|
|
||||||
if (usb_led & (1<<USB_LED_NUM_LOCK)) {
|
if (usb_led & (1<<USB_LED_NUM_LOCK)) {
|
||||||
// signal the LED control thread
|
|
||||||
chSysUnconditionalLock();
|
chSysUnconditionalLock();
|
||||||
msg=(TOGGLE_NUM_LOCK << 8) | 1;
|
msg=(TOGGLE_NUM_LOCK << 8) | 1;
|
||||||
chMBPostI(&led_mailbox, msg);
|
chMBPostI(&led_mailbox, msg);
|
||||||
chSysUnconditionalUnlock();
|
chSysUnconditionalUnlock();
|
||||||
} else {
|
} else {
|
||||||
// signal the LED control thread
|
|
||||||
chSysUnconditionalLock();
|
chSysUnconditionalLock();
|
||||||
msg=(TOGGLE_NUM_LOCK << 8) | 0;
|
msg=(TOGGLE_NUM_LOCK << 8) | 0;
|
||||||
chMBPostI(&led_mailbox, msg);
|
chMBPostI(&led_mailbox, msg);
|
||||||
chSysUnconditionalUnlock();
|
chSysUnconditionalUnlock();
|
||||||
}
|
}
|
||||||
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
||||||
// signal the LED control thread
|
|
||||||
chSysUnconditionalLock();
|
chSysUnconditionalLock();
|
||||||
msg=(TOGGLE_CAPS_LOCK << 8) | 1;
|
msg=(TOGGLE_CAPS_LOCK << 8) | 1;
|
||||||
chMBPostI(&led_mailbox, msg);
|
chMBPostI(&led_mailbox, msg);
|
||||||
chSysUnconditionalUnlock();
|
chSysUnconditionalUnlock();
|
||||||
} else {
|
} else {
|
||||||
// signal the LED control thread
|
|
||||||
chSysUnconditionalLock();
|
chSysUnconditionalLock();
|
||||||
msg=(TOGGLE_CAPS_LOCK << 8) | 0;
|
msg=(TOGGLE_CAPS_LOCK << 8) | 0;
|
||||||
chMBPostI(&led_mailbox, msg);
|
chMBPostI(&led_mailbox, msg);
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -31,7 +31,6 @@ msg_t is31_read_register(uint8_t page, uint8_t reg, uint8_t *result);
|
|||||||
* ============================*/
|
* ============================*/
|
||||||
|
|
||||||
void led_controller_init(void);
|
void led_controller_init(void);
|
||||||
void print_debug (uint8_t page);
|
|
||||||
|
|
||||||
#define CAPS_LOCK_LED_ADDRESS 46 //pin matrix location
|
#define CAPS_LOCK_LED_ADDRESS 46 //pin matrix location
|
||||||
#define NUM_LOCK_LED_ADDRESS 85
|
#define NUM_LOCK_LED_ADDRESS 85
|
||||||
|
Reference in New Issue
Block a user