mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/CAN-Demo.git
synced 2025-06-12 03:56:00 +00:00
Making of a simplified CAN system
This commit is contained in:
parent
8367127c62
commit
0d2646ace3
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);
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 16b2ed5a20df1c04b9bbcf5e12101d5e822e45d2
|
Subproject commit abdddc87b9b5edc95424d29dd0c36577b6a4e7c4
|
Loading…
x
Reference in New Issue
Block a user