chore: Cleanup for Demo

This commit is contained in:
CarlWachter
2024-07-05 14:06:49 +02:00
parent fd7c123a5e
commit 1f6c939630
44 changed files with 432 additions and 7326 deletions

BIN
App/Inc/.DS_Store vendored

Binary file not shown.

View File

@@ -8,7 +8,7 @@
#ifndef INC_STA_CONFIG_HPP_
#define INC_STA_CONFIG_HPP_
#define STA_STM32_ASEAG
#define STA_STM32_ASEAG // This is a define that we are using our own PCB layout called ASEAG
#include <sta/devices/stm32/mcu/STM32F407xx.hpp>
// Doesn't really do too much right now. Has to be added for successful compilation.
@@ -21,14 +21,12 @@
#define STA_ASSERT_FORCE
#define STA_DEBUGGING_ENABLED
// Activate the timer for microsecond delays.
// #define STA_STM32_DELAY_ENABLE
// #define STA_STM32_DELAY_US_TIM htim1
// Settings for the rtos-utils
#define STA_RTOS_SYSTEM_EVENTS_ENABLE
// #define STA_RTOS_SYSTEM_WATCHDOG_ENABLE
// #define STA_RTOS_WATCHDOG_ENABLE
#define STA_TACOS_CAN_BUS_ENABLED
// Enable CAN for sta core
#define STA_CAN_BUS_ENABLE
// Uses the default configuration for TACOS.

BIN
App/Inc/tasks/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,26 @@
/*
* can_spam.hpp
*
* Created on: 10 Dec 2023
* Author: Carl
*/
#ifndef INC_TASKS_CAN_RECEIVER_TASK_HPP_
#define INC_TASKS_CAN_RECEIVER_TASK_HPP_
#include <sta/tacos.hpp>
namespace demo
{
class CanReceiver : public sta::tacos::TacosThread {
public:
CanReceiver(uint32_t canID);
void init() override;
void func() override;
private:
};
} // namespace demo
#endif /* INC_TASKS_CAN_RECEIVER_TASK_HPP_ */

View File

@@ -0,0 +1,26 @@
/*
* can_spam.hpp
*
* Created on: 10 Dec 2023
* Author: Carl
*/
#ifndef INC_TASKS_CAN_SPAM_TASK_HPP_
#define INC_TASKS_CAN_SPAM_TASK_HPP_
#include <sta/tacos.hpp>
namespace demo
{
class CanSpam : public sta::tacos::TacosThread {
public:
CanSpam(uint32_t canID);
void init() override;
void func() override;
private:
};
} // namespace demo
#endif /* INC_TASKS_CAN_SPAM_TASK_HPP_ */

View File

@@ -1,27 +0,0 @@
/*
* can_task.hpp
*
* Created on: 10 Dec 2023
* Author: Carl
*/
#ifndef INC_TASKS_CANTASK_HPP_
#define INC_TASKS_CANTASK_HPP_
#include <sta/tacos/thread.hpp>
#include <sta/devices/stm32/can.hpp>
namespace demo
{
class CanTask : public sta::tacos::TacosThread {
public:
CanTask(const char* name, uint32_t canID);
void init() override;
void func() override;
private:
};
} // namespace demo
#endif /* INC_TASKS_CANTASK_HPP_ */

View File

@@ -1,41 +0,0 @@
/*
* can_task.hpp
*
* Created on: 10 Dec 2023
* Author: Carl
*/
#ifndef INC_TASKS_THERMO_HPP_
#define INC_TASKS_THERMO_HPP_
#include <sta/tacos/thread.hpp>
#include <sta/devices/stm32/can.hpp>
#include <sta/rtos/mutex.hpp>
#include <sta/MAX31855.hpp>
#include <sta/devices/stm32/bus/spi.hpp>
#include <gpio.h>
#include <spi.h>
namespace demo
{
class ThermoTask : public sta::tacos::TacosThread {
public:
ThermoTask();
void init() override;
void func() override;
private:
sta::STM32GpioPin cs_pin = sta::STM32GpioPin(GPIOE, GPIO_PIN_13);
sta::RtosMutex* mutex;
sta::STM32SPI* spi2;
sta::STM32SPIDevice* device_;
sta::MAX31855* tc;
};
} // namespace demo
#endif /* INC_TASKS_THERMO_HPP_ */

View File

@@ -1,13 +0,0 @@
/*
* test.hpp
*
* Created on: Oct 24, 2023
* Author: carlw
*/
#ifndef INC_TEST_HPP_
#define INC_TEST_HPP_
//void testCan(CAN_HandleTypeDef * handle);
#endif /* INC_TEST_HPP_ */