Skip to content

Hostmot2_ol unset output pins upon exit #393

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

Merged
merged 1 commit into from
Feb 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -625,7 +625,12 @@ static int delete(const char *name, void *inst, const int inst_size)
{
hm2_soc_t *brd = (hm2_soc_t *)inst;
char buf[MAXNAMELEN];

u32 index;
// Unset outputs
for(u32 i=0;i<20;i=i+4) {
index=(u32)(0x1100 + i);
*((u32 *)(brd->base + index)) = 0;
}
// explicitly free locally allocated strings in case realtime
// continues to run after shutdown of this driver
if(brd->config != NULL)