Skip to content

PWM fixes from #758 - #876

Merged
krwq merged 2 commits into
dotnet:masterfrom
krwq:lab-setup-pwm-fixes
Dec 4, 2019
Merged

krwq merged 2 commits into
dotnet:masterfrom
krwq:lab-setup-pwm-fixes

Conversation

@krwq

@krwq krwq commented Dec 2, 2019

Copy link
Copy Markdown
Member

Fixes #757
Also added waiting after PWM channel is exported in case driver didn't show directory in time (happened at least once during testing)

This is extracting PWM fixes from #758

cc: @pgrawehr @joperezr

@krwq
krwq requested a review from joperezr December 2, 2019 20:26
@krwq
krwq force-pushed the lab-setup-pwm-fixes branch from aa6fa02 to ac9a02d Compare December 4, 2019 01:57
@krwq

krwq commented Dec 4, 2019

Copy link
Copy Markdown
Member Author

@Frankenslag any chance you can review since this unifies the permission logic into the PWM as well?

@pgrawehr pgrawehr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me.

@Frankenslag Frankenslag left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have tested the GPIO side of this and it seems to work fine.

@krwq
krwq merged commit b60b71c into dotnet:master Dec 4, 2019
<ItemGroup Condition="'$(TargetsWindows)' == 'true'">
<!--Excluding Linux implementations-->
<Compile Remove="**\*.Linux.cs" />
<Compile Remove="**\*.Unix.cs" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do we need to add the Unix suffix? I would either use the existing Linux one, or move all the Linux stuff to have the Linux suffix but not add a new one. The suffix is meant to represent the target OS platform, and today we still only target Linux and Windows, we don't have a separate target for Unix so I would remove this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This file is Unix because it uses Unix specific interop file coming from Unix folder. Just followed convention from Interop. You can use any Unix stuff on any Linux so don't see a problem

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the suffix is not intended to relate to the code used in the file, but instead to show which build configuration will the file be included in, and we just have a Linux and a win build, not a Unix one, so I would change it back to be Linux in order to be consistent and simple.

@github-actions github-actions Bot locked and limited conversation to collaborators Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux PWM implementation throws during construction/setting frequency in some cases

4 participants