mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS-demo.git
synced 2025-09-28 23:57:33 +00:00
something 'It worked on my machine' something
This commit is contained in:
23
App/include/sta/config.hpp
Normal file
23
App/include/sta/config.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* config.hpp
|
||||
*
|
||||
* Created on: Dec 31, 2023
|
||||
* Author: Dario
|
||||
*/
|
||||
|
||||
#ifndef STA_CONFIG_HPP
|
||||
#define STA_CONFIG_HPP
|
||||
|
||||
#define STA_STM32_ASEAG
|
||||
#include <sta/devices/stm32/mcu/STM32F407xx.hpp>
|
||||
|
||||
// Enable debug serial output and assertions.
|
||||
#define STA_ASSERT_ENABLED
|
||||
#define STA_DEBUGGING_ENABLED
|
||||
|
||||
// Use the default configs for TACOS
|
||||
#include <sta/tacos/configs/default.hpp>
|
||||
|
||||
#define STA_TACOS_NUM_STATES 3
|
||||
|
||||
#endif // STA_CONFIG_HPP
|
20
App/include/tasks/spam_task.hpp
Normal file
20
App/include/tasks/spam_task.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef INC_TASKS_SPAM_TASK_HPP_
|
||||
#define INC_TASKS_SPAM_TASK_HPP_
|
||||
|
||||
#include <sta/tacos.hpp>
|
||||
|
||||
namespace tasks
|
||||
{
|
||||
class SpamTask : public sta::tacos::TacosThread {
|
||||
public:
|
||||
SpamTask();
|
||||
|
||||
// One time function that is called when the thread is created.
|
||||
void init() override;
|
||||
|
||||
// Repeatable function that is called every time the thread is executed.
|
||||
void func() override;
|
||||
};
|
||||
} // namespace tasks
|
||||
|
||||
#endif /* INC_TASKS_SPAM_TASK_HPP_ */
|
Reference in New Issue
Block a user