Rust edition bumped & UART implementation

- Also adds UART example
This commit is contained in:
2021-11-09 18:30:46 +01:00
parent 541524c59b
commit b18e32e0cc
9 changed files with 505 additions and 18 deletions

View File

@ -72,7 +72,9 @@ fn main() -> ! {
}
TestCase::TestPullup => {
// Tie PORTA[0] to PORTA[1] for these tests!
let input = porta.pa1.into_pull_up_input(&mut dp.IOCONFIG);
let input = porta
.pa1
.into_pull_up_input(&mut dp.IOCONFIG, &mut dp.PORTA);
assert!(input.is_high().unwrap());
let mut out = porta
.pa0