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

Power to the fuses #909

Open
stefanrueger opened this issue Mar 22, 2023 · 0 comments
Open

Power to the fuses #909

stefanrueger opened this issue Mar 22, 2023 · 0 comments

Comments

@stefanrueger
Copy link

For the parts ata5790 and ata5795 some fuse bit masks are defined wrongly as 2 to (2 to the power of the bit number), eg,

#define FUSE_CKDIV8 (unsigned char)~_BV(128)
#define FUSE_DWEN (unsigned char)~_BV(64)
#define FUSE_SPIEN (unsigned char)~_BV(32)
#define FUSE_WDTON (unsigned char)~_BV(16)
#define FUSE_EESAVE (unsigned char)~_BV(8)
#define FUSE_Reserved (unsigned char)~_BV(4)
#define FUSE__32OEN (unsigned char)~_BV(2)
#define FUSE_EXTCLKEN (unsigned char)~_BV(1)

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

1 participant