mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-26 03:06:32 +11:00
Merge pull request #182 from jannic/issue-181
Correct limit for PIOBuilder::out_pins count argument
This commit is contained in:
commit
3b019fb91d
1 changed files with 1 additions and 1 deletions
|
@ -1174,7 +1174,7 @@ impl<P: PIOExt> PIOBuilder<P> {
|
||||||
/// The least-significant bit of `OUT` instruction asserts the state of the pin indicated by `base`, the next bit
|
/// The least-significant bit of `OUT` instruction asserts the state of the pin indicated by `base`, the next bit
|
||||||
/// asserts the state of the next pin, and so on up to `count` pins. The pin numbers are considered modulo 32.
|
/// asserts the state of the next pin, and so on up to `count` pins. The pin numbers are considered modulo 32.
|
||||||
pub fn out_pins(mut self, base: u8, count: u8) -> Self {
|
pub fn out_pins(mut self, base: u8, count: u8) -> Self {
|
||||||
assert!(count <= 5);
|
assert!(count <= 32);
|
||||||
self.out_base = base;
|
self.out_base = base;
|
||||||
self.out_count = count;
|
self.out_count = count;
|
||||||
self
|
self
|
||||||
|
|
Loading…
Add table
Reference in a new issue