Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
SPI example has non-sensical inclusion of math expression that's actually longer than the number it represents #80
Comments
|
Representing large numbers like 4,000,000 as I'd keep the clockspeed as it is, but I agree more readable property names for polarity and phase would be an improvement. |
|
If we were using Java/Python/Rust, representing it as 4_000_000 would be ideal. ;) Since this is for docs, it probably if we show the audience clock speed can just be represented as +1 to polarity and phase. Where did terms CPHA and CPOL even come from? We probably sourced them from Arduino examples way back in the day, but I haven't really seen them used outside of that domain. (Also see "mode" etc.) I feel like "clockSpeed" is more applicable than "frequency" but YMMV. |
|
Hi guys, I'm new here, and am a pretty green programmer. Would it make sense to create a constant titled MHz (or some other descriptive name) instead, and set it equal to 1000x1000? That way the expression could become "4*MHz" which could be even more readable. |
|
Hi @Frijol ! Can the issue be closed now that the pull request has been merged? Or is there something else that needs to be done? |
|
Yes, thanks for noticing! |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Is there a reason for assigning
clockSpeedthe value of an expression to be evaluated, versus just the number?Also, we should deprecate (with aliasing)
clockSpeed,cpolandcphasein favor of parameters that are named something less hostile.Recommending: