This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
mios_c_simulator_-_debugger [2007/10/06 01:57] stryd_one |
mios_c_simulator_-_debugger [2007/10/06 12:14] stryd_one |
||
---|---|---|---|
Line 21: | Line 21: | ||
\\ | \\ | ||
+ | |||
====== Overview ====== | ====== Overview ====== | ||
Line 37: | Line 38: | ||
| [[acmididefines|ACMidiDefines.h]] | Midi Defintion listing | //No changes required// | | | [[acmididefines|ACMidiDefines.h]] | Midi Defintion listing | //No changes required// | | ||
+ | You can download the files in a {{acsim.zip|.zip file here}}. If you make any updates, please send them to sstryd_one and he will update the zip for you. | ||
To implement the ACSim files into your applicaton, you just have to follow the [[mios_c_simulator_-_debugger#setup_guide|setup guide]] to: | To implement the ACSim files into your applicaton, you just have to follow the [[mios_c_simulator_-_debugger#setup_guide|setup guide]] to: | ||
Line 93: | Line 95: | ||
\\ | \\ | ||
+ | |||
Line 108: | Line 111: | ||
\\ | \\ | ||
\\ | \\ | ||
- | Then proceed by configuring your main.h and main.c files: | + | Then proceed by configuring your main.c, and .h files: |
- | \\ | ||
- | == main.h == | ||
- | * you need to add some lines at the bottom of your main.h (or, if you don't have one, you will need to create one, because ACSIM #includes it) - this is because debug_mios.c calls "DISPLAY_Init()" as MIOS would. Because of the #ifdef statement this does not change your syx-project code! | ||
- | |||
- | <code c> | ||
- | #ifdef _DEBUG_C | ||
- | // export functions that are called from within debug_mios.c | ||
- | // (e.g. to trigger DISPLAY_Init after sending...) | ||
- | extern void DISPLAY_Init(void); | ||
- | #endif | ||
- | </code> | ||
- | |||
- | \\ | ||
== main.c == | == main.c == | ||
- | Minor modifications are required to your MIOS Application's main.c and main.h files. | + | Minor modifications are required to your MIOS Application's main.c file. |
- | * You need to add some lines at the top of your main.c - this is to avoid including headers for the PIC/MIOS Core module, when compiling a console app for debugging. Because of the #ifndef statement this does not change your syx-project code, so your app will compile as normal for the PIC! | + | * You need to edit some lines at the top of your main.c - this is to avoid including headers for the PIC/MIOS Core module, when compiling a console app for debugging. Because of the #ifndef statement this does not change your syx-project code, so your app will compile as normal for the PIC! |
Before: | Before: | ||
Line 142: | Line 132: | ||
#endif | #endif | ||
</code> | </code> | ||
+ | |||
+ | == main.h == | ||
+ | |||
+ | * you need to add some lines at the bottom of your main.h, or, if you don't have one, main.c - this is because debug_mios.c calls "DISPLAY_Init()" as MIOS would. Because of the #ifdef statement this does not change your syx-project code! | ||
+ | |||
+ | <code c> | ||
+ | #ifdef _DEBUG_C | ||
+ | // export functions that are called from within debug_mios.c | ||
+ | // (e.g. to trigger DISPLAY_Init after sending...) | ||
+ | extern void DISPLAY_Init(void); | ||
+ | #endif | ||
+ | </code> | ||
+ | |||
+ | \\ | ||
+ | |||
\\ | \\ |