Making of a simplified CAN system

This commit is contained in:
@CarlWachter 2024-02-22 17:24:09 +01:00
parent 8367127c62
commit 0d2646ace3
4 changed files with 19 additions and 3 deletions

13
.vscode/settings.json vendored Normal file
View 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"
}
}

View File

@ -29,7 +29,10 @@
#define STA_RTOS_SYSTEM_EVENTS_ENABLE
// #define STA_RTOS_SYSTEM_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.
#include<sta/tacos/configs/default.hpp>

View File

@ -30,7 +30,7 @@ namespace sta
// ###### Register different threads for different states here. ######
// 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);

@ -1 +1 @@
Subproject commit 16b2ed5a20df1c04b9bbcf5e12101d5e822e45d2
Subproject commit abdddc87b9b5edc95424d29dd0c36577b6a4e7c4