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 value for POWER_UP_STATUS(X) #1

Open
michaelengel opened this issue Apr 10, 2023 · 0 comments
Open

Incorrect value for POWER_UP_STATUS(X) #1

michaelengel opened this issue Apr 10, 2023 · 0 comments

Comments

@michaelengel
Copy link

POWER_UP_STATUS is defined as follows:
#define POWER_UP_STATUS(X) X & 0x40

According to table 5-1 at [http://www.rjhcoding.com/avrc-sd-interface-2.php], the card power on status bit is bit 31, so the correct line should read

#define POWER_UP_STATUS(X) X & 0x80

(the web page has the same incorrect define)

[https://github.com/ryanj1234/SD_TUTORIAL_PART2/blob/5f5739ecfc300d0984c30bc55e199324a186efd0/main.c#L36]

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