diff --git a/KED_structure_idea/bsl/hw_plattform.hpp b/KED_structure_idea/bsl/hw_plattform.hpp index 5684419..31d711d 100644 --- a/KED_structure_idea/bsl/hw_plattform.hpp +++ b/KED_structure_idea/bsl/hw_plattform.hpp @@ -1,6 +1,8 @@ #ifndef __HW_PLATTFORM_HPP__ #define __HW_PLATTFORM_HPP__ +#include + // // csl ressources // @@ -15,15 +17,25 @@ struct HW_plattform { - Dummy_Pin pin_0, pin_1; - LED led_0; HW_plattform(): pin_0(), pin_1(), led_0(pin_0) {} + void init() + { + std::cout << "bsl init..." << std::endl; + pin_0.set(false); + pin_1.set(false); + std::cout << "...done!" << std::endl; + }; + private: + Dummy_Pin pin_0, pin_1; + public: + + LED led_0; }; diff --git a/KED_structure_idea/main.cpp b/KED_structure_idea/main.cpp index 20df43c..522a52f 100644 --- a/KED_structure_idea/main.cpp +++ b/KED_structure_idea/main.cpp @@ -6,9 +6,9 @@ int main() { HW_plattform hw; + hw.init(); - - hw.pin_1.set(true); + //hw.pin_1.set(true); hw.led_0.turnOn(); diff --git a/KED_structure_idea/runtest b/KED_structure_idea/runtest index c0a191e..13f81ba 100755 Binary files a/KED_structure_idea/runtest and b/KED_structure_idea/runtest differ