We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
(discussed during the 06/07 IRC meeting - log).
Examples of constants:
Constants could be associated both to individual CSRs (e.g. counter time limit) or to an entire peripheral (e.g clock frequency).
Different languages represent constants in different ways:
u
l
#define
u8
i16
Name bikeshedding: ConstantDict or ConstantMap
ConstantDict
ConstantMap
Nesting:
Approach for the next iteration (first attempt was in #19):
The text was updated successfully, but these errors were encountered:
periph: add a ConstantMap container for configuration constants.
0c6405f
Resolves amaranth-lang#24.
b0d983a
b405880
Resolves #24.
Successfully merging a pull request may close this issue.
(discussed during the 06/07 IRC meeting - log).
Examples of constants:
Constants could be associated both to individual CSRs (e.g. counter time limit) or to an entire peripheral (e.g clock frequency).
Different languages represent constants in different ways:
u
andl
suffixes. You can often get away with#define
'ing a constant.u8
, or ani16
, etc.Name bikeshedding:
ConstantDict
orConstantMap
Nesting:
Approach for the next iteration (first attempt was in #19):
The text was updated successfully, but these errors were encountered: