Added usb serial communication
This commit is contained in:
parent
ceb4dc035f
commit
9cfc02340b
2 changed files with 39 additions and 22 deletions
|
|
@ -47,6 +47,9 @@ mod app {
|
|||
use radomctl_protocol::{HostMessage, *};
|
||||
|
||||
use crate::bootloader;
|
||||
|
||||
use radomctl_protocol::*;
|
||||
|
||||
use rtic_monotonics::systick::prelude::*;
|
||||
|
||||
systick_monotonic!(Mono, 4000);
|
||||
|
|
@ -101,8 +104,6 @@ mod app {
|
|||
|
||||
Mono::start(cx.core.SYST, rcc.clocks.sysclk().to_Hz());
|
||||
|
||||
defmt::info!("Clock Setup done");
|
||||
|
||||
// Acquire the GPIO peripherials
|
||||
let gpioa = cx.device.GPIOA.split(&mut rcc);
|
||||
let gpiob = cx.device.GPIOB.split(&mut rcc);
|
||||
|
|
@ -159,7 +160,6 @@ mod app {
|
|||
.unwrap()
|
||||
.build()
|
||||
};
|
||||
|
||||
defmt::info!("USB Setup done");
|
||||
|
||||
// Todo: Check if internal pullups work here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue