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

Move interrupts and noInterrupts out of namespace #122

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

Ayush1325
Copy link
Member

@@ -480,3 +463,20 @@ void disableInterrupt(pin_size_t pinNumber) {
pcb->handlers[BIT(arduino_pins[pinNumber].pin)].enabled = false;
}
}

static unsigned int irq_key;
Copy link
Member

Choose a reason for hiding this comment

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

In C++, you should use anonymous namespace instead of static.

Copy link
Member Author

Choose a reason for hiding this comment

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

For functions as well? Because I get undefined reference errors if I move functions into the anonymous namespace

- These functions are exported from Arduino.h

Signed-off-by: Ayush Singh <[email protected]>
@soburi soburi requested a review from DhruvaG2000 September 6, 2024 15:49
@DhruvaG2000 DhruvaG2000 merged commit f6e9483 into zephyrproject-rtos:next Sep 9, 2024
3 checks passed
@Ayush1325 Ayush1325 deleted the interrupts-fix branch September 9, 2024 10:37
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