Skip to content

Commit ced6fdf

Browse files
committed
Add task_stack_depth.
1 parent 1b3b184 commit ced6fdf

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Modules/SharedTopic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 1b3b18406db8fef4ae7ec755633b61ec2e651445

Modules/SharedTopicClient

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit d796d2714b56dad6c4b431e8eae65dd145898daa

SharedTopic.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module_name: SharedTopic
66
module_description: No description provided
77
constructor_args:
88
- uart_name: "usart1"
9+
- task_stack_depth: 512
910
- buffer_size: 256
1011
- topic_name:
1112
- "topic1"
@@ -30,7 +31,7 @@ class SharedTopic : public LibXR::Application
3031
{
3132
public:
3233
SharedTopic(LibXR::HardwareContainer &hw, LibXR::ApplicationManager &app,
33-
const char *uart_name, uint32_t buffer_size,
34+
const char *uart_name, uint32_t task_stack_depth, uint32_t buffer_size,
3435
std::initializer_list<const char *> topic_names)
3536
: uart_(hw.template Find<LibXR::UART>(uart_name)),
3637
server_(buffer_size),
@@ -50,7 +51,7 @@ class SharedTopic : public LibXR::Application
5051

5152
hw.template FindOrExit<LibXR::RamFS>({"ramfs"})->Add(cmd_file_);
5253

53-
rx_thread_.Create(this, RxThreadFun, "SharedTopic::RxThread", 512,
54+
rx_thread_.Create(this, RxThreadFun, "SharedTopic::RxThread", task_stack_depth,
5455
LibXR::Thread::Priority::REALTIME);
5556

5657
app.Register(*this);

0 commit comments

Comments
 (0)