Nagano kosen robocon

Dependencies:   mbed QEI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Initialize.cpp Source File

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/Master/Master.h"
00009 #include "../../Communication/RS485/RS485.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     SWITCH::PushSw::Initialize();
00018     #endif
00019 
00020     #ifdef USE_MU
00021     MU::Mu::Initialize(SWITCH::DipSw::GetStatus());
00022     CONTROLLER::Controller::Initialize();
00023     #endif
00024 
00025     #ifdef USE_LED
00026     LED::LED::Initialize();
00027     #endif
00028 
00029     #ifdef USE_RS485
00030     MASTER::Master::Initialize();    
00031     RS485::RS485::Initialize();
00032     #endif
00033 
00034     #ifdef USE_MOTOR
00035     ACTUATORHUB::MOTOR::Motor::Initialize();
00036     #endif
00037 
00038     #ifdef USE_SOLENOID
00039     ACTUATORHUB::SOLENOID::Solenoid::Initialize();
00040     #endif
00041 
00042     __enable_irq();
00043 }
00044