added cascade example

- Slight change to CountDownTimer input parameter format
This commit is contained in:
2021-12-06 01:55:00 +01:00
parent 54e016f0e3
commit 5f712b6ab7
5 changed files with 346 additions and 14 deletions

View File

@ -139,7 +139,7 @@ fn main() -> ! {
}
// Application logic
let mut delay_tim = CountDownTimer::new(&mut dp.SYSCONFIG, 50.mhz().into(), dp.TIM1);
let mut delay_tim = CountDownTimer::new(&mut dp.SYSCONFIG, 50.mhz(), dp.TIM1);
loop {
match SPI_BUS_SEL {
SpiBusSelect::SpiAPortA | SpiBusSelect::SpiAPortB => {