lknds
Dependencies: mbed TrapezoidControl Pulse QEI
Initialize.cpp
00001 #include "Initialize.h" 00002 #include "../Using.h" 00003 00004 #include "../../Input/Switch/Switch.h" 00005 #include "../../Communication/Controller/Mu/Mu.h" 00006 #include "../../Communication/Controller/Controller.h" 00007 #include "../../Communication/RS485/ActuatorHub/ActuatorHub.h" 00008 #include "../../Communication/RS485/RS485.h" 00009 #include "../../Input/ExternalInt/ExternalInt.h" 00010 #include "../../Input/Switch/Switch.h" 00011 #include "../../LED/LED.h" 00012 00013 void SystemInitialize() { 00014 #ifdef USE_SWITCH 00015 SWITCH::DipSw::Initialize(); 00016 SWITCH::LimitSw::Initialize(); 00017 #endif 00018 00019 #ifdef USE_MU 00020 MU::Mu::Initialize(SWITCH::DipSw::GetStatus()); 00021 CONTROLLER::Controller::Initialize(); 00022 #endif 00023 00024 #ifdef USE_INT 00025 EXTERNALINT::Int::Initialize(); 00026 #endif 00027 00028 #ifdef USE_LED 00029 LED::LED::Initialize(); 00030 #endif 00031 00032 #ifdef USE_RS485 00033 RS485::RS485::Initialize(); 00034 #endif 00035 00036 #ifdef USE_MOTOR 00037 ACTUATORHUB::MOTOR::Motor::Initialize(); 00038 #endif 00039 00040 #ifdef USE_SOLENOID 00041 ACTUATORHUB::SOLENOID::Solenoid::Initialize(); 00042 #endif 00043 00044 __enable_irq(); 00045 }
Generated on Sun Jul 17 2022 15:33:13 by 1.7.2