Skip to content

Need API to get clock rate (don't use #define) #158

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
terrillmoore opened this issue Apr 15, 2019 · 0 comments
Closed

Need API to get clock rate (don't use #define) #158

terrillmoore opened this issue Apr 15, 2019 · 0 comments
Assignees

Comments

@terrillmoore
Copy link
Member

We can't use #if or #defined symbols in portable code.

The clockrate display on STM32 is an example. It needs to become a gCatena method (gCatena.getSystemClockRate() for example). Don't forget to change the sample applications to use this.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant