ttt
Dependencies: mbed TrapezoidControl QEI Pulse LM61CIZ
System/Initialize/Initialize.cpp@9:f93fc79a49ea, 2018-10-04 (annotated)
- Committer:
- kishibekairohan
- Date:
- Thu Oct 04 12:14:25 2018 +0000
- Revision:
- 9:f93fc79a49ea
- Parent:
- 0:669ef71cba68
eee;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
t_yamamoto | 0:669ef71cba68 | 1 | #include "Initialize.h" |
t_yamamoto | 0:669ef71cba68 | 2 | #include "../Using.h" |
t_yamamoto | 0:669ef71cba68 | 3 | |
t_yamamoto | 0:669ef71cba68 | 4 | #include "../../Input/Switch/Switch.h" |
t_yamamoto | 0:669ef71cba68 | 5 | #include "../../Communication/Controller/Mu/Mu.h" |
t_yamamoto | 0:669ef71cba68 | 6 | #include "../../Communication/Controller/Controller.h" |
t_yamamoto | 0:669ef71cba68 | 7 | #include "../../Communication/RS485/ActuatorHub/ActuatorHub.h" |
t_yamamoto | 0:669ef71cba68 | 8 | #include "../../Communication/RS485/RS485.h" |
t_yamamoto | 0:669ef71cba68 | 9 | #include "../../Input/ExternalInt/ExternalInt.h" |
t_yamamoto | 0:669ef71cba68 | 10 | #include "../../Input/Switch/Switch.h" |
t_yamamoto | 0:669ef71cba68 | 11 | #include "../../LED/LED.h" |
t_yamamoto | 0:669ef71cba68 | 12 | |
t_yamamoto | 0:669ef71cba68 | 13 | void SystemInitialize() { |
t_yamamoto | 0:669ef71cba68 | 14 | #ifdef USE_SWITCH |
t_yamamoto | 0:669ef71cba68 | 15 | SWITCH::DipSw::Initialize(); |
t_yamamoto | 0:669ef71cba68 | 16 | SWITCH::LimitSw::Initialize(); |
t_yamamoto | 0:669ef71cba68 | 17 | #endif |
t_yamamoto | 0:669ef71cba68 | 18 | |
t_yamamoto | 0:669ef71cba68 | 19 | #ifdef USE_MU |
t_yamamoto | 0:669ef71cba68 | 20 | MU::Mu::Initialize(SWITCH::DipSw::GetStatus()); |
t_yamamoto | 0:669ef71cba68 | 21 | CONTROLLER::Controller::Initialize(); |
t_yamamoto | 0:669ef71cba68 | 22 | #endif |
t_yamamoto | 0:669ef71cba68 | 23 | |
t_yamamoto | 0:669ef71cba68 | 24 | #ifdef USE_INT |
t_yamamoto | 0:669ef71cba68 | 25 | EXTERNALINT::Int::Initialize(); |
t_yamamoto | 0:669ef71cba68 | 26 | #endif |
t_yamamoto | 0:669ef71cba68 | 27 | |
t_yamamoto | 0:669ef71cba68 | 28 | #ifdef USE_LED |
t_yamamoto | 0:669ef71cba68 | 29 | LED::LED::Initialize(); |
t_yamamoto | 0:669ef71cba68 | 30 | #endif |
t_yamamoto | 0:669ef71cba68 | 31 | |
t_yamamoto | 0:669ef71cba68 | 32 | #ifdef USE_RS485 |
t_yamamoto | 0:669ef71cba68 | 33 | RS485::RS485::Initialize(); |
t_yamamoto | 0:669ef71cba68 | 34 | #endif |
t_yamamoto | 0:669ef71cba68 | 35 | |
t_yamamoto | 0:669ef71cba68 | 36 | #ifdef USE_MOTOR |
t_yamamoto | 0:669ef71cba68 | 37 | ACTUATORHUB::MOTOR::Motor::Initialize(); |
t_yamamoto | 0:669ef71cba68 | 38 | #endif |
t_yamamoto | 0:669ef71cba68 | 39 | |
t_yamamoto | 0:669ef71cba68 | 40 | #ifdef USE_SOLENOID |
t_yamamoto | 0:669ef71cba68 | 41 | ACTUATORHUB::SOLENOID::Solenoid::Initialize(); |
t_yamamoto | 0:669ef71cba68 | 42 | #endif |
kishibekairohan | 9:f93fc79a49ea | 43 | |
t_yamamoto | 0:669ef71cba68 | 44 | __enable_irq(); |
t_yamamoto | 0:669ef71cba68 | 45 | } |