Commit fe865435 authored by Per Lindgren's avatar Per Lindgren
Browse files

cleanup

parent 56004232
// cargo run --example rtt_rtic_usb_mouse --release
//
// Notice, release build required
#![no_std]
#![no_main]
// extern crate panic_semihosting;
// use panic_rtt_target as _;
use panic_halt as _;
use cortex_m::{asm::delay, peripheral::DWT};
use embedded_hal::digital::v2::OutputPin;
use rtic::cyccnt::{Instant, U32Ext as _};
// use stm32f4xx_hal::usb::{Peripheral, UsbBus, UsbBusType};
use stm32f4xx_hal::{
gpio,
otg_fs::{UsbBus, UsbBusType, USB},
......@@ -273,6 +274,14 @@ const APP: () = {
}
}
#[idle]
fn idle(_cx: idle::Context) -> ! {
// rprintln!("idle");
loop {
continue;
}
}
#[task(schedule = [on_tick], resources = [counter, led, hid])]
fn on_tick(mut cx: on_tick::Context) {
cx.schedule.on_tick(Instant::now() + PERIOD.cycles()).ok();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment