mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-26 03:06:32 +11:00
Fix limits on acceptable ranges
This commit is contained in:
parent
50dbb8a22f
commit
dbcaf1933a
1 changed files with 4 additions and 4 deletions
|
@ -130,10 +130,10 @@ macro_rules! hal {
|
||||||
let hcnt = period - lcnt;
|
let hcnt = period - lcnt;
|
||||||
|
|
||||||
// Check for out-of-range divisors:
|
// Check for out-of-range divisors:
|
||||||
assert!(hcnt < 0xffff);
|
assert!(hcnt <= 0xffff);
|
||||||
assert!(lcnt < 0xffff);
|
assert!(lcnt <= 0xffff);
|
||||||
assert!(hcnt > 8);
|
assert!(hcnt >= 8);
|
||||||
assert!(lcnt > 8);
|
assert!(lcnt >= 8);
|
||||||
|
|
||||||
// Per I2C-bus specification a device in standard or fast mode must
|
// 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
|
// internally provide a hold time of at least 300ns for the SDA signal to
|
||||||
|
|
Loading…
Add table
Reference in a new issue