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

applet.program.stusb4500_nvm: Import new applet to program STUSB4500 NVM #314

Merged
merged 1 commit into from Apr 15, 2023

Conversation

smunaut
Copy link
Contributor

@smunaut smunaut commented Apr 14, 2023

No description provided.

whitequark
whitequark previously approved these changes Apr 14, 2023
Copy link
Member

@whitequark whitequark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -0,0 +1,199 @@
# Reference: STSW-STUSB004 Documentation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you upload this to the archive please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do. Didn't even see the archive before.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!


async def disable(self):
result = await self._write_regs(self.FTP_CTRL_0, [0x40, 0x00])
result = result and await self._write_regs(self.FTP_KEY, self.FTP_KEY_VALUE)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arf, actually just noticed this should have been 0x00 value ... (to remove the "magic value" from the register).
Doesn't impact functionality (which is why I didn't notice) but I'll push a new version with that fixed tomorrow.

@smunaut
Copy link
Contributor Author

smunaut commented Apr 15, 2023

Fixed the "disable" method and added the archive accession number

@whitequark whitequark merged commit 406e06f into GlasgowEmbedded:main Apr 15, 2023
4 checks passed
@whitequark
Copy link
Member

Thanks for the nice applet!

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

Successfully merging this pull request may close these issues.

None yet

2 participants