-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
async work #7554
Conversation
} | ||
|
||
pio_clear_instruction_memory(pio); | ||
*irq_table = m_new_ll(rp2pio_pio_irq_t, NUM_PIO_INTERRUPT_SOURCES); |
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.
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.
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.
Are you sure?
#define m_new_ll(type, num) ((type *)(m_malloc(sizeof(type) * (num), true)))
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.
yes, you're right after all. I must have looked at a different macro definition.
No description provided.