mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/CAN-Demo.git
synced 2025-09-29 00:37:33 +00:00
Making of a simplified CAN system
This commit is contained in:
13
.vscode/settings.json
vendored
Normal file
13
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"*.tpp": "cpp",
|
||||||
|
"istream": "cpp",
|
||||||
|
"memory": "cpp",
|
||||||
|
"tuple": "cpp",
|
||||||
|
"type_traits": "cpp",
|
||||||
|
"utility": "cpp",
|
||||||
|
"xlocnum": "cpp",
|
||||||
|
"xutility": "cpp",
|
||||||
|
"xlocale": "cpp"
|
||||||
|
}
|
||||||
|
}
|
@@ -29,7 +29,10 @@
|
|||||||
#define STA_RTOS_SYSTEM_EVENTS_ENABLE
|
#define STA_RTOS_SYSTEM_EVENTS_ENABLE
|
||||||
// #define STA_RTOS_SYSTEM_WATCHDOG_ENABLE
|
// #define STA_RTOS_SYSTEM_WATCHDOG_ENABLE
|
||||||
// #define STA_RTOS_WATCHDOG_ENABLE
|
// #define STA_RTOS_WATCHDOG_ENABLE
|
||||||
// #define STA_CAN_BUS_ENABLE
|
|
||||||
|
// Settings for CAN
|
||||||
|
#define STA_CAN_BUS_ENABLE
|
||||||
|
#define STA_TACOS_CAN_BUS_SID 0x040
|
||||||
|
|
||||||
// Uses the default configuration for TACOS.
|
// Uses the default configuration for TACOS.
|
||||||
#include<sta/tacos/configs/default.hpp>
|
#include<sta/tacos/configs/default.hpp>
|
||||||
|
@@ -30,7 +30,7 @@ namespace sta
|
|||||||
// ###### Register different threads for different states here. ######
|
// ###### Register different threads for different states here. ######
|
||||||
|
|
||||||
// The dummy task runs for state 0.
|
// The dummy task runs for state 0.
|
||||||
Manager::instance()->registerThread(std::make_shared<demo::CanTask>("CAN SPAM", &hcan1), {0});
|
//Manager::instance()->registerThread(std::make_shared<demo::CanTask>("CAN SPAM", &hcan1), {0});
|
||||||
|
|
||||||
STA_DEBUG_PRINTF("The answer to everything is %d", 42);
|
STA_DEBUG_PRINTF("The answer to everything is %d", 42);
|
||||||
|
|
||||||
|
Submodule Libs/TACOS updated: 16b2ed5a20...abdddc87b9
Reference in New Issue
Block a user