-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fwxv 999 ejramas 103 hw #269
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.
I just took a quick look and overall it looks good! I think all the logic looks alright, just a few code style comments
|
||
void run_fast_cycle() {} | ||
|
||
int increment(int i) { |
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.
You don't necessarily need this function to increment your variable, you can just have that in your task
|
||
TASK(task1, TASK_STACK_512) { | ||
StatusCode ret; | ||
u_int32_t to_send = 0; |
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.
did you mean to increment this variable?
|
||
TASK(task1, TASK_STACK_512) { | ||
LOG_DEBUG("Task 1 starting\n\n"); | ||
GpioAddress addr1 = { |
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.
Nitpick: initializing this in an array would be better
.pin = 15, | ||
}; | ||
|
||
gpio_init_pin(&addr1, GPIO_OUTPUT_PUSH_PULL, GPIO_STATE_HIGH); |
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.
The initializations and the toggles could be done in a for loop
No description provided.