parent
68a208dc10
commit
8c7a26eb04
@ -1,3 +1,15 @@
|
||||
# KED
|
||||
|
||||
Kerems and Edwins Develeppoment platform.
|
||||
|
||||
08.08.21 Kerem & Edwin
|
||||
- Preparing the main implementation (dummy) of our structure which consists of :
|
||||
- CSL : Chip Support Layer
|
||||
- CSL for Raspberry
|
||||
- CSL for STM Nucleo
|
||||
- BSL : Board Support Layer
|
||||
- BSL for Raspberry
|
||||
- BSL for Oven Control
|
||||
- Project Level
|
||||
- Integrate BSL dummy fct. to our main.cpp
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
#ifndef __PINRASPBERRY_HPP__
|
||||
#define __PINRASPBERRY_HPP__
|
||||
|
||||
#include <iostream>
|
||||
|
||||
struct Pin_Raspberry : Pin<Pin_Raspberry>
|
||||
{
|
||||
void writeImpl(bool logic)
|
||||
{
|
||||
std::cout << "Raspberry pin set to " << logic << std::endl;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif // __PINRASPBERRY_HPP__
|
@ -0,0 +1,13 @@
|
||||
#ifndef __PIN_HPP__
|
||||
#define __PIN_HPP__
|
||||
|
||||
template <typename Derived>
|
||||
struct Pin
|
||||
{
|
||||
void write(bool logic)
|
||||
{
|
||||
static_cast<Derived*>(this)->writeImpl(logic);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // __PIN_HPP__
|
Loading…
Reference in new issue