cleanup, protected some more module variables as static

This commit is contained in:
Simen Svale Skogsrud
2011-02-12 00:03:58 +01:00
parent f423852657
commit ff73645a14
6 changed files with 14 additions and 25 deletions

14
main.c
View File

@ -33,13 +33,13 @@
int main(void)
{
sp_init(); // initialize the serial protocol
settings_init();
plan_init(); // initialize the stepper plan subsystem
st_init(); // initialize the stepper subsystem
spindle_init(); // initialize spindle controller
gc_init(); // initialize gcode-parser
sp_init();
settings_init();
plan_init();
st_init();
spindle_init();
gc_init();
for(;;){
sleep_mode(); // Wait for it ...
sp_process(); // ... process the serial protocol