aa

Dependencies:   mbed

Committer:
M_souta
Date:
Fri Oct 18 22:33:25 2019 +0000
Revision:
29:44d5454ce8fa
Parent:
9:f93fc79a49ea
Child:
30:8f092276b2ba
tt

Who changed what in which revision?

UserRevisionLine numberNew 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 "../../LED/LED.h"
t_yamamoto 0:669ef71cba68 10
t_yamamoto 0:669ef71cba68 11 void SystemInitialize() {
t_yamamoto 0:669ef71cba68 12 #ifdef USE_SWITCH
t_yamamoto 0:669ef71cba68 13 SWITCH::DipSw::Initialize();
t_yamamoto 0:669ef71cba68 14 SWITCH::LimitSw::Initialize();
t_yamamoto 0:669ef71cba68 15 #endif
t_yamamoto 0:669ef71cba68 16
t_yamamoto 0:669ef71cba68 17 #ifdef USE_MU
t_yamamoto 0:669ef71cba68 18 MU::Mu::Initialize(SWITCH::DipSw::GetStatus());
t_yamamoto 0:669ef71cba68 19 CONTROLLER::Controller::Initialize();
t_yamamoto 0:669ef71cba68 20 #endif
t_yamamoto 0:669ef71cba68 21
t_yamamoto 0:669ef71cba68 22 #ifdef USE_LED
t_yamamoto 0:669ef71cba68 23 LED::LED::Initialize();
t_yamamoto 0:669ef71cba68 24 #endif
t_yamamoto 0:669ef71cba68 25
t_yamamoto 0:669ef71cba68 26 #ifdef USE_RS485
t_yamamoto 0:669ef71cba68 27 RS485::RS485::Initialize();
t_yamamoto 0:669ef71cba68 28 #endif
t_yamamoto 0:669ef71cba68 29
t_yamamoto 0:669ef71cba68 30 #ifdef USE_MOTOR
t_yamamoto 0:669ef71cba68 31 ACTUATORHUB::MOTOR::Motor::Initialize();
t_yamamoto 0:669ef71cba68 32 #endif
t_yamamoto 0:669ef71cba68 33
t_yamamoto 0:669ef71cba68 34 #ifdef USE_SOLENOID
t_yamamoto 0:669ef71cba68 35 ACTUATORHUB::SOLENOID::Solenoid::Initialize();
t_yamamoto 0:669ef71cba68 36 #endif
kishibekairohan 9:f93fc79a49ea 37
t_yamamoto 0:669ef71cba68 38 __enable_irq();
t_yamamoto 0:669ef71cba68 39 }