Skip to content

Commit

Permalink
fix: v305 demo build
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed May 5, 2024
1 parent 8bf5e4e commit 8f57067
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
6 changes: 1 addition & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,7 @@ fn main() {
}
singletons.push(p.name.to_string());
}
//"dbgmcu" => {}
//"syscfg" => {}
//"dma" => {}
//"bdma" => {}
//"dmamux" => {}
// "dma" => {}

// For other peripherals, one singleton per peri
_ => singletons.push(p.name.to_string()),
Expand Down
4 changes: 2 additions & 2 deletions examples/ch32v103/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rustflags = [
# runner = "riscv64-unknown-elf-gdb -q -x openocd.gdb"
# runner = "riscv-none-embed-gdb -q -x openocd.gdb"
# runner = "gdb -q -x openocd.gdb"
runner = "wlink -v flash"
# runner = "wlink -v flash"

# runner = "wlink -v flash --enable-sdi-print --watch-serial --erase"
runner = "wlink -v flash --enable-sdi-print --watch-serial"
# runner = "wlink -v flash"
3 changes: 0 additions & 3 deletions examples/ch32v305/src/bin/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#![no_main]
#![feature(type_alias_impl_trait)]

use core::fmt::Write as _;

use ch32_hal as hal;
use embassy_executor::Spawner;
use embassy_time::Timer;
Expand Down Expand Up @@ -77,7 +75,6 @@ async fn main(spawner: Spawner) -> ! {
let _ = spawner;
let mut config = hal::Config::default();
{
use hal::rcc::v3::{AHBPrescaler, APBPrescaler, Hse, HseMode, Pll, PllMul, PllPreDiv, PllSource, Sysclk};
use hal::rcc::*;

config.rcc = Config {
Expand Down

0 comments on commit 8f57067

Please sign in to comment.