Skip to content

async work #7554

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

Closed
wants to merge 11 commits into from
Closed

async work #7554

wants to merge 11 commits into from

Conversation

gneverov
Copy link

@gneverov gneverov commented Feb 7, 2023

No description provided.

}

pio_clear_instruction_memory(pio);
*irq_table = m_new_ll(rp2pio_pio_irq_t, NUM_PIO_INTERRUPT_SOURCES);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this probably didn't do what you intended. the 2nd argument states whether the object should be allocated in the long-lived portion of the heap. it's not giving you NUM_PIO_INTERRUPT_SOURCES objects of type rp2pio_pio_irq_t.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure?
#define m_new_ll(type, num) ((type *)(m_malloc(sizeof(type) * (num), true)))

Copy link

@jepler jepler Feb 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, you're right after all. I must have looked at a different macro definition.

@gneverov gneverov closed this Mar 22, 2023
@gneverov gneverov deleted the async branch November 8, 2023 03:24
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.

3 participants