Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Fwxv 999 ejramas 103 hw #269

wants to merge 2 commits into from

Conversation

ejramas
Copy link

@ejramas ejramas commented Mar 27, 2024

No description provided.

Copy link
Collaborator

@Bafran Bafran left a 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) {
Copy link
Collaborator

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;
Copy link
Collaborator

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 = {
Copy link
Collaborator

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);
Copy link
Collaborator

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

@Bafran Bafran closed this Mar 27, 2024
@Akashem06 Akashem06 deleted the fwxv_999_ejramas_103_hw branch September 5, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants