Skip to content

Commit

Permalink
Add: display dac stream control
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonyang-ee committed Jun 5, 2023
1 parent 092c48a commit fb8fb16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Application/Src/CLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ int32_t CLI::cmd_motor(int32_t argc, char** argv) {
motor_dac.off();
} else if (!strcmp(argv[1], "breath")) {
motor_dac.breath();
} else if (!strcmp(argv[1], "stream_on")) {
xTaskResumeFromISR(thread.utilities_handle);
} else if (!strcmp(argv[1], "stream_off")) {
vTaskSuspend(thread.utilities_handle);
} else {
serialCOM.sendString("Unknown Command\n");
}
Expand Down
1 change: 1 addition & 0 deletions Application/Src/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void Thread::init() {
cli.init();
motor_dac.init();
flash.Load();
vTaskSuspend(utilities_handle);
vTaskSuspend(NULL);
}
}
Expand Down

0 comments on commit fb8fb16

Please sign in to comment.