Added dummy task. Still a lot of compiler errors to be fixed

This commit is contained in:
dario
2023-09-22 15:50:26 +02:00
parent 326083e48a
commit 10bcad8203
13 changed files with 88 additions and 387 deletions

25
App/Inc/tasks/dummy.hpp Normal file
View File

@@ -0,0 +1,25 @@
/*
* dummy.hpp
*
* Created on: 22 Sep 2023
* Author: Dario
*/
#ifndef INC_TASKS_DUMMY_HPP_
#define INC_TASKS_DUMMY_HPP_
#include <sta/tacos/thread.hpp>
namespace demo
{
class DummyTask : public sta::tacos::TacosThread {
public:
DummyTask(const char* name);
void init() override;
void func() override;
};
} // namespace demo
#endif /* INC_TASKS_DUMMY_HPP_ */

View File

@@ -1,45 +0,0 @@
/*
* statemachine.hpp
*
* Created on: Sep 6, 2023
* Author: Dario
*/
#ifndef INC_TASKS_STATEMACHINE_HPP_
#define INC_TASKS_STATEMACHINE_HPP_
// Two flags for the state change event. TODO: HOW TO SET THE VALUES?
#define TACOS_STATE_CHG_FORCED 0x01
#define TACOS_STATE_CHG_TIMEOUT 0x02
#define TACOS_STATE_CHG_NATURAL 0x03
#define TACOS_STATE_CHG_ALL TACOS_STATE_CHG_FORCED | TACOS_STATE_CHG_TIMEOUT | TACOS_STATE_CHG_NATURAL
// The event for signaling state changes to other tasks
osEventFlagsId_t stateChangeEvent_id;
// The states used for this demo
enum tacos_states_t
{
init,
started,
flying,
landed
};
namespace tacos
{
class StateMachine
{
public:
private:
};
}
#endif /* INC_TASKS_STATEMACHINE_HPP_ */