added init for bsl

master
polymurph 4 years ago
parent 907cddeed0
commit afc06fb8b9

@ -1,6 +1,8 @@
#ifndef __HW_PLATTFORM_HPP__ #ifndef __HW_PLATTFORM_HPP__
#define __HW_PLATTFORM_HPP__ #define __HW_PLATTFORM_HPP__
#include <iostream>
// //
// csl ressources // csl ressources
// //
@ -15,15 +17,25 @@
struct HW_plattform struct HW_plattform
{ {
Dummy_Pin pin_0, pin_1;
LED<Dummy_Pin> led_0;
HW_plattform(): HW_plattform():
pin_0(), pin_0(),
pin_1(), pin_1(),
led_0(pin_0) 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<Dummy_Pin> led_0;
}; };

@ -6,9 +6,9 @@
int main() int main()
{ {
HW_plattform hw; HW_plattform hw;
hw.init();
//hw.pin_1.set(true);
hw.pin_1.set(true);
hw.led_0.turnOn(); hw.led_0.turnOn();

Binary file not shown.
Loading…
Cancel
Save