acsim_console_c
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
acsim_console_c [2006/08/16 00:48] – fixed DIN bug audiocommander | acsim_console_c [2007/11/17 16:46] (current) – Corrected zip file text smashtv | ||
---|---|---|---|
Line 3: | Line 3: | ||
[[acsim_console_h|ACSim_console.h]]\\ | [[acsim_console_h|ACSim_console.h]]\\ | ||
**[[acsim_console_c|ACSim_console.c]]**\\ | **[[acsim_console_c|ACSim_console.c]]**\\ | ||
- | |||
- | [[acsim_toolbox_h|ACSim_toolbox.h]]\\ | ||
- | [[acsim_toolbox_c|ACSim_toolbox.c]]\\ | ||
[[acsim_mios_h|ACSim_mios.h]]\\ | [[acsim_mios_h|ACSim_mios.h]]\\ | ||
[[acsim_mios_c|ACSim_mios.c]]\\ | [[acsim_mios_c|ACSim_mios.c]]\\ | ||
+ | [[acsim_toolbox_h|ACSim_toolbox.h]]\\ | ||
+ | [[acsim_toolbox_c|ACSim_toolbox.c]]\\ | ||
+ | [[acmididefines|ACMidiDefines.h]]\\ | ||
+ | \\ | ||
+ | This code is for viewing only and may not be up to date. You can download the files in a zip file {{acsim: | ||
+ | \\ | ||
\\ | \\ | ||
<code c> | <code c> | ||
/* | /* | ||
| | ||
- | | + | |
* | * | ||
| | ||
Line 60: | Line 63: | ||
unsigned int value = 0; | unsigned int value = 0; | ||
unsigned int value2 = 0; | unsigned int value2 = 0; | ||
+ | // poll Timer() | ||
+ | if(debug_user_timer.TIMER_ENABLED) { | ||
+ | Timer(); | ||
+ | } | ||
+ | // poll Tick() | ||
+ | Tick(); | ||
// poll LCD_Display | // poll LCD_Display | ||
DISPLAY_Tick(); | DISPLAY_Tick(); | ||
// debug info | // debug info | ||
printf(" | printf(" | ||
- | // poll timer | ||
- | Timer(); | ||
// read input | // read input | ||
fgets(str, 32, stdin); // MAX chars = 32; this is NOT protected against buffer overflows!!! | fgets(str, 32, stdin); // MAX chars = 32; this is NOT protected against buffer overflows!!! | ||
Line 101: | Line 108: | ||
AIN_NotifyChange(pin, | AIN_NotifyChange(pin, | ||
} | } | ||
+ | break; | ||
+ | |||
+ | case ' | ||
+ | debug_MIDI_byteNum = 0; // sending single byte, maybe without MIDI_START/ | ||
+ | sscanf(str, | ||
+ | MPROC_NotifyReceivedByte(pin); | ||
+ | debug_MIDI_byteNum = 0; | ||
break; | break; | ||
Line 151: | Line 165: | ||
sscanf(str, | sscanf(str, | ||
MPROC_NotifyReceivedEvnt(pin, | MPROC_NotifyReceivedEvnt(pin, | ||
+ | break; | ||
+ | |||
+ | case ' | ||
+ | sscanf(str, | ||
+ | if((value2 < 1) || (value2 > 16)) { value2 = 1; } | ||
+ | MPROC_NotifyReceivedEvnt((143+value2), | ||
break; | break; | ||
Line 191: | Line 211: | ||
printf(" | printf(" | ||
printf(" | printf(" | ||
+ | printf(" | ||
printf(" | printf(" | ||
Line 197: | Line 218: | ||
// init MIOS | // init MIOS | ||
+ | MIOS_BOX_STAT.BS_AVAILABLE = 1; | ||
Init(); | Init(); | ||
DISPLAY_Init(); | DISPLAY_Init(); | ||
- | Timer(); | + | |
- | + | ||
printf(" | printf(" | ||
acsim_console_c.1155689283.txt.gz · Last modified: 2006/10/15 09:35 (external edit)