Added SPI implementation

- First SPI HAL implementation for blocking mode
- Added example for SPI as well which uses loopback mode
  and regular mode
This commit is contained in:
2021-11-20 23:57:08 +01:00
parent 9e7491813e
commit cbc7c88112
6 changed files with 908 additions and 16 deletions

View File

@ -44,7 +44,7 @@ fn main() -> ! {
let pinsa = PinsA::new(&mut dp.SYSCONFIG, None, dp.PORTA);
let pinsb = PinsB::new(&mut dp.SYSCONFIG, Some(dp.IOCONFIG), dp.PORTB);
let mut led1 = pinsa.pa10.into_push_pull_output();
let test_case = TestCase::DelayMs;
let test_case = TestCase::DelayGpio;
match test_case {
TestCase::TestBasic