aa
Dependencies: mbed TrapezoidControl QEI
Diff: System/Initialize/Initialize.cpp
- Revision:
- 0:669ef71cba68
- Child:
- 9:f93fc79a49ea
diff -r 000000000000 -r 669ef71cba68 System/Initialize/Initialize.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/System/Initialize/Initialize.cpp Sat Sep 08 06:05:22 2018 +0000 @@ -0,0 +1,45 @@ +#include "Initialize.h" +#include "../Using.h" + +#include "../../Input/Switch/Switch.h" +#include "../../Communication/Controller/Mu/Mu.h" +#include "../../Communication/Controller/Controller.h" +#include "../../Communication/RS485/ActuatorHub/ActuatorHub.h" +#include "../../Communication/RS485/RS485.h" +#include "../../Input/ExternalInt/ExternalInt.h" +#include "../../Input/Switch/Switch.h" +#include "../../LED/LED.h" + +void SystemInitialize() { + #ifdef USE_SWITCH + SWITCH::DipSw::Initialize(); + SWITCH::LimitSw::Initialize(); + #endif + + #ifdef USE_MU + MU::Mu::Initialize(SWITCH::DipSw::GetStatus()); + CONTROLLER::Controller::Initialize(); + #endif + + #ifdef USE_INT + EXTERNALINT::Int::Initialize(); + #endif + + #ifdef USE_LED + LED::LED::Initialize(); + #endif + + #ifdef USE_RS485 + RS485::RS485::Initialize(); + #endif + + #ifdef USE_MOTOR + ACTUATORHUB::MOTOR::Motor::Initialize(); + #endif + + #ifdef USE_SOLENOID + ACTUATORHUB::SOLENOID::Solenoid::Initialize(); + #endif + + __enable_irq(); +}