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 example for ch32v307 #2485

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Add example for ch32v307 #2485

merged 1 commit into from
Nov 22, 2023

Conversation

cpq
Copy link
Member

@cpq cpq commented Nov 22, 2023

No description provided.

@cpq cpq force-pushed the ch32v307 branch 2 times, most recently from 8dc9748 to f7f968a Compare November 22, 2023 10:18
@cpq cpq merged commit f86c14a into master Nov 22, 2023
65 of 128 checks passed
@cpq cpq deleted the ch32v307 branch November 22, 2023 10:23
Comment on lines +198 to +200
#ifdef __riscv
__attribute__((interrupt())) // For RISCV CH32V307, which share the same MAC
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

This compiler dependent, not only chip dependent

@@ -209,8 +215,8 @@ void ETH_IRQHandler(void) {
if (++s_rxno >= ETH_DESC_CNT) s_rxno = 0;
}
}
ETH->DMASR = MG_BIT(7); // Clear possible RBUS while processing
ETH->DMARPDR = 0; // and resume RX
ETH->DMASR = ~0; // Clear flags
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please hide this q&d hack under some #ifdef

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