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

Incorrect usage of 'Val instead of 'Enum_Val #431

Open
liampwll opened this issue Jun 13, 2024 · 4 comments
Open

Incorrect usage of 'Val instead of 'Enum_Val #431

liampwll opened this issue Jun 13, 2024 · 4 comments

Comments

@liampwll
Copy link

liampwll commented Jun 13, 2024

The below line will raise a Constraint_Error if Range_Check is enabled as the enumeration is not continuous, using 'Enum_Val instead would fix this. This error could exist in the other uses of 'Val which I have not checked and it could have potentially worse consequences than this one which will likely be harmless when Range_Check is disabled.

if Multi_ADC_Mode_Selections'Val (C_ADC_Periph.CCR.MULT) = Independent

@pat-rogers
Copy link
Contributor

pat-rogers commented Aug 12, 2024 via email

@liampwll
Copy link
Author

liampwll commented Aug 12, 2024 via email

@pat-rogers
Copy link
Contributor

pat-rogers commented Aug 12, 2024 via email

@pat-rogers
Copy link
Contributor

pat-rogers commented Aug 12, 2024 via email

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

No branches or pull requests

2 participants