-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer print #589
Buffer print #589
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work 👽. Boilerplate stuff is very well done and styling is pretty good: with a couple minor tweaks for style and cleanup those will be good to go.
Bigger thing is lack of mutual exclusion on the print FIFO -- this needs to get addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yall's tests look pretty decent and I don't see any glaring issues with the actual code. some minor fixes/suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style guide mostly. looks alright for the most part
Tasks/Src/Task_Init.c
Outdated
@@ -86,6 +87,14 @@ void Task_Init(void *p_arg) { | |||
TASK_CLI_STACK_SIZE, // Stack size | |||
); | |||
*/ | |||
RTOS_BPS_TaskCreate(&Print_TCB, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a suggestion but theoretically we should only be doing buffer print when actively debugging, so maybe we can only define this task when some debug flag is set. This is optional though and doesn't matter too much if it adds complexity as the task is just above idle task in priority so its prob aight
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, and I think it works, I made the block diagram and combed through the bugs.
Tasks/Src/Task_Print.c
Outdated
Print_Queue_Pend(message, &len); | ||
|
||
//Port 2 for now | ||
BSP_UART_Write(message, len, UART_USB); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check the speed of this in the future. If it is too slow, we should make it interrupt-based
Print queue completed in theory builds now hehe Test Saturday Changes :) fix sim issue build fix some changes updated mutex buffer inshallah it wokrs work in progress work in progress Changed printFifo. Needs >256 char string testing the message lenght was wrong... pushin few logic fixes comments making tests fixed retarget tests build reverted append fixed retarget again changed copyright for 2023 applied changes from suggestions /r one bug fix fixed smile? now it compiles!! *surprised pikachu face got rid of fifo changes - want a separate PR comment fix build here you go nathan nathan big brain fix RENAMED STUFF
Quality Assurance Checklist
To make reviews more efficient, please make sure the software feature meets the following standards and check everything off that meets the quality check. Once everything has been checked, the assigned reviewers will begin the review process. Edit this description to check off the list.
There are exceptions with all guidelines. As long as your decisions are justified, then you are good! Contact the reviewers or the leads about any exceptions.
Requirements
Things to Consider