#include "libs/Adc.h"
#include "libs/Digipot.h"
#include "libs/Pauser.h"
+#include "libs/StreamOutputPool.h"
#include "modules/communication/SerialConsole.h"
#include "modules/communication/GcodeDispatch.h"
// Config first, because we need the baud_rate setting before we start serial
this->config = new Config();
- // Cache the config during init to save reads to the sdcard
- this->config->config_cache_load();
// Serial second, because the other modules might want to say something
- this->serial = new SerialConsole(USBTX, USBRX, this->config->value(uart0_checksum,baud_rate_setting_checksum)->by_default(9600)->as_number());
+ this->streams = new StreamOutputPool();
+ //this->serial = new SerialConsole(USBTX, USBRX, this->config->value(uart0_checksum,baud_rate_setting_checksum)->by_default(9600)->as_number());
+
this->add_module( this->config );
- this->add_module( this->serial );
-
+ //this->add_module( this->serial );
+
// HAL stuff
this->slow_ticker = new SlowTicker();
this->step_ticker = new StepTicker();
this->add_module( this->planner = new Planner() );
this->add_module( this->player = new Player() );
this->add_module( this->pauser = new Pauser() );
-
- // Clear the config cache when init is complete
- this->config->config_cache_clear();
}
void Kernel::add_module(Module* module){