Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pickup some loose ends from PR #7122#7218

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
d-a-v merged 3 commits intoesp8266:masterfromdok-net:fixup_7211
Apr 19, 2020
Merged

Conversation

@dok-net
Copy link
Contributor

@dok-netdok-net commentedApr 17, 2020
edited
Loading

Future-proofing#7122, newly introduced publicstartWaveformCycles() is more aptly namedstartWaveformClockCycles() (like in rest of core API for this type of use).
Fix/clarify comments.

Fix redundancies in Tone, end Tone waveform on exact period limit for proper sound.
Fix redundancies in wiring_pwm.
Extend Servo to map in-use pins, Tone already has this.

…ckCycles (like in rest of core API for this type of use).Fix/clarify comments.Fix redundancies in Tone, end Tone waveform on exact period limit for proper sound.Fix redundancies in wiring_pwmExtend Servo to map in-use pins, Tone already has this.
@dok-netdok-net changed the titlePickup lose some ends from PR #7211Pickup some lose ends from PR #7211Apr 17, 2020
@dok-netdok-net changed the titlePickup some lose ends from PR #7211Pickup some loose ends from PR #7211Apr 17, 2020
Copy link
Collaborator

@earlephilhowerearlephilhower left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup and fixing the comments to match the code.

For the Servo changes, I'm not seeing it used anywhere but keeping a mask like in the other 2 users of waveforms seems like a nice thing to do.

noTone(_pin);
}else {
uint32_t period =(1000000L *system_get_cpu_freq()) / frequency;
uint32_t period =microsecondsToClockCycles(1000000UL) / frequency;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure whether this change is ok. The microsecondsToClockCycles() define uses the F_CPU macro, while system_get_cpu_freq() is the SDK api call.
Ithink it is ok because these functions aren't supposed to be called from an ISR. Also, if built for 160MHz, execution will be done at that speed something like 95% of the time.

@d-a-vd-a-v merged commitea1fdb2 intoesp8266:masterApr 19, 2020
@dok-netdok-net deleted the fixup_7211 branchApril 19, 2020 14:17
@d-a-vd-a-v changed the titlePickup some loose ends from PR #7211Pickup some loose ends from PR #122Apr 26, 2020
@d-a-vd-a-v changed the titlePickup some loose ends from PR #122Pickup some loose ends from PR #7122Apr 26, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@earlephilhowerearlephilhowerearlephilhower approved these changes

@devytedevytedevyte approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@dok-net@earlephilhower@devyte@d-a-v

[8]ページ先頭

©2009-2025 Movatter.jp