mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
Fix limits on acceptable ranges
This commit is contained in:
parent
50dbb8a22f
commit
dbcaf1933a
|
@ -130,10 +130,10 @@ macro_rules! hal {
|
|||
let hcnt = period - lcnt;
|
||||
|
||||
// Check for out-of-range divisors:
|
||||
assert!(hcnt < 0xffff);
|
||||
assert!(lcnt < 0xffff);
|
||||
assert!(hcnt > 8);
|
||||
assert!(lcnt > 8);
|
||||
assert!(hcnt <= 0xffff);
|
||||
assert!(lcnt <= 0xffff);
|
||||
assert!(hcnt >= 8);
|
||||
assert!(lcnt >= 8);
|
||||
|
||||
// Per I2C-bus specification a device in standard or fast mode must
|
||||
// internally provide a hold time of at least 300ns for the SDA signal to
|
||||
|
|
Loading…
Reference in a new issue