parent
8cf59eec6e
commit
19e568fb93
@ -0,0 +1,20 @@
|
|||||||
|
cpp_src = $(wildcard *.cpp)
|
||||||
|
|
||||||
|
cpp_obj = $(cpp_src:.cpp=.o)
|
||||||
|
c_obj = $(c_src:.c=.o)
|
||||||
|
CC = g++
|
||||||
|
CFLAGS = -Wall -pedantic #-li2c -lpthread
|
||||||
|
LDFLAGS =
|
||||||
|
EXEC = runtest
|
||||||
|
|
||||||
|
|
||||||
|
all : $(EXEC)
|
||||||
|
|
||||||
|
$(EXEC): $(cpp_obj) $(c_obj)
|
||||||
|
$(CC) -pthread -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(c_obj) $(cpp_obj) $(EXEC)
|
||||||
|
|
||||||
|
cleanall:
|
||||||
|
rm -rf $(c_obj) $(cpp_obj) $(EXEC)
|
@ -0,0 +1,15 @@
|
|||||||
|
#ifndef _HEATER_HPP_
|
||||||
|
#define _HEATER_HPP_
|
||||||
|
|
||||||
|
class Heater
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Heater();
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _HEATER_HPP_
|
@ -0,0 +1 @@
|
|||||||
|
#include "heaterCtrl.hpp"
|
@ -0,0 +1,21 @@
|
|||||||
|
#ifndef _HEATERCTRL_HPP_
|
||||||
|
#define _HEATERCTRL_HPP_
|
||||||
|
|
||||||
|
class HeaterController
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
enum Event{
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
HeaterController();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _HEATERCTRL_HPP_
|
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <iostream>
|
||||||
|
#include <functional>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
#ifndef _OVEN_HPP_
|
||||||
|
#define _OVEN_HPP_
|
||||||
|
|
||||||
|
class Oven
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
// has a sensor and has a heater
|
||||||
|
|
||||||
|
Oven();
|
||||||
|
|
||||||
|
void setHeaterDutyCycle();
|
||||||
|
void turnOffHeater();
|
||||||
|
float getTemperature_C();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _OVEN_HPP_
|
@ -0,0 +1,14 @@
|
|||||||
|
#ifndef _OVENCTRL_HPP_
|
||||||
|
#define _OVENCTRL_HPP_
|
||||||
|
|
||||||
|
class OvenControll
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
OvenControll();
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _OVEMCTRL_HPP_
|
Loading…
Reference in new issue