Mercurial > louis > kiibohd-controller
comparison Macro/PartialMap/macro.c @ 307:ecd2ae35d25c
Initial commit for UARTConnect module
* Keyboard interconnect using two uarts
* Supports daisy chain addressing using a master/slave direction communication scheme
- Still needs more testing
- Functions have been tested alone to be generally working
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sun, 15 Mar 2015 16:58:01 -0700 |
parents | c86eb7d0a693 |
children | f04450004adf |
comparison
equal
deleted
inserted
replaced
306:f158dfa0fa85 | 307:ecd2ae35d25c |
---|---|
388 | 388 |
389 // Otherwise no defined Trigger Macro | 389 // Otherwise no defined Trigger Macro |
390 erro_msg("Scan Code has no defined Trigger Macro: "); | 390 erro_msg("Scan Code has no defined Trigger Macro: "); |
391 printHex( scanCode ); | 391 printHex( scanCode ); |
392 return 0; | 392 return 0; |
393 } | |
394 | |
395 | |
396 // Update the scancode using a list of TriggerGuides | |
397 // TODO Handle led state and analog | |
398 inline void Macro_triggerState( void *triggers, uint8_t num ) | |
399 { | |
400 // Copy each of the TriggerGuides to the TriggerListBuffer | |
401 for ( uint8_t c = 0; c < num; c++ ) | |
402 macroTriggerListBuffer[ macroTriggerListBufferSize++ ] = ((TriggerGuide*)triggers)[ c ]; | |
393 } | 403 } |
394 | 404 |
395 | 405 |
396 // Update the scancode key state | 406 // Update the scancode key state |
397 // States: | 407 // States: |