mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-09-29 02:57:33 +00:00
Added first successful test for statemachine rework
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
#define STA_TACOS_STATEMACHINE_PRIORITY osPriorityNormal
|
||||
|
||||
// Statemachine settings. Here, we only have a single state which is also the initial state.
|
||||
#define STA_TACOS_NUM_STATES 1
|
||||
#define STA_TACOS_NUM_STATES 2
|
||||
#define STA_TACOS_INITIAL_STATE 0
|
||||
|
||||
#endif /* INC_STA_CONFIG_HPP_ */
|
||||
|
26
App/Inc/tasks/toggle.hpp
Normal file
26
App/Inc/tasks/toggle.hpp
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* toggle.hpp
|
||||
*
|
||||
* Created on: Nov 10, 2023
|
||||
* Author: Dario
|
||||
*/
|
||||
|
||||
#ifndef INC_STA_TOGGLE_HPP_
|
||||
#define INC_STA_TOGGLE_HPP_
|
||||
|
||||
#include <sta/tacos/thread.hpp>
|
||||
|
||||
namespace demo
|
||||
{
|
||||
class Toggle : public sta::tacos::TacosThread
|
||||
{
|
||||
public:
|
||||
Toggle();
|
||||
|
||||
void init() override;
|
||||
|
||||
void func() override;
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* INC_STA_TOGGLE_HPP_ */
|
Reference in New Issue
Block a user