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

add function IRAM address verifier, use it with SPISlave:: #5941

Closed
wants to merge 1 commit into from

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Apr 2, 2019

related with #5914 (comment)

@d-a-v d-a-v changed the title add function IRAM address verifier, use if with SPISlave:: add function IRAM address verifier, use it with SPISlave:: Apr 2, 2019
src++;
}
os_printf("\n");
}

#ifndef NDEBUG
void assert_iram (uintptr_t address) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Arg should be const

@@ -93,18 +93,22 @@ void SPISlaveClass::setStatus(uint32_t status)
}
void SPISlaveClass::onData(SpiSlaveDataHandler cb)
{
check_function_is_in_iram(cb);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't look right, the handler arg is received by value. Same for the other cases below.

@d-a-v
Copy link
Collaborator Author

d-a-v commented Apr 3, 2019

It seems function address cannot be extracted with function<>::target when RTTI is disabled.

@d-a-v d-a-v closed this Apr 3, 2019
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