You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
611 B
43 lines
611 B
#ifndef __HW_PLATTFORM_HPP__
|
|
#define __HW_PLATTFORM_HPP__
|
|
|
|
#include <iostream>
|
|
|
|
//
|
|
// csl ressources
|
|
//
|
|
|
|
#include "./../csl/implementations/dummy/dummy_pin.hpp"
|
|
|
|
//
|
|
// drivers
|
|
//
|
|
|
|
#include "./../drivers/LED.hpp"
|
|
|
|
struct HW_plattform
|
|
{
|
|
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<Dummy_Pin> led_0;
|
|
};
|
|
|
|
|
|
#endif // __HW_PLATTFORM_HPP__
|