Major code cleanup and preparation for PartialMap Macro Module

- Code should be working, but much is untested
- All of the old modules will need to update and use the new DefaultMap keymap
- There might still be some naming conflicts with some Scan Modules
This commit is contained in:
Jacob Alexander 2014-04-06 11:49:27 -07:00
parent f3e22fb242
commit 9d423a64a8
81 changed files with 1373 additions and 904 deletions

17
main.c
View file

@ -141,22 +141,21 @@ int main(void)
pinSetup();
// Enable CLI
init_cli();
CLI_init();
// Setup Output Module
output_setup();
// Setup Modules
Output_setup();
Macro_setup();
//scan_setup();
// Setup ISR Timer for flagging a kepress send to USB
usbTimerSetup();
// Setup the scanning module
//scan_setup();
// Main Detection Loop
while ( 1 )
{
// Process CLI
process_cli();
CLI_process();
// Acquire Key Indices
// Loop continuously until scan_loop returns 0
@ -165,14 +164,14 @@ int main(void)
sei();
// Run Macros over Key Indices and convert to USB Keys
process_macros();
Macro_process();
// Send keypresses over USB if the ISR has signalled that it's time
if ( !sendKeypresses )
continue;
// Send USB Data
output_send();
Output_send();
// Clear sendKeypresses Flag
sendKeypresses = 0;