diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51d8202..2c33cf9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - ch32v103c8t6 - ch32v203f8u6 - ch32v208wbu6 - - ch32v303vct6 + - ch32v303cbt6 - ch32v305fbp6 - ch32v307vct6 - ch32x035f7p6 @@ -39,7 +39,7 @@ jobs: target: riscv32imc-unknown-none-elf - chip: ch32v208wbu6 target: riscv32imc-unknown-none-elf - - chip: ch32v303vct6 + - chip: ch32v303cbt6 # use rv32imc because ri32imfc does not exist, hal should not use FP anyways target: riscv32imc-unknown-none-elf - chip: ch32v305fbp6 diff --git a/build.rs b/build.rs index de63ab4..dd413f8 100644 --- a/build.rs +++ b/build.rs @@ -446,7 +446,7 @@ fn main() { let ch: u8 = pin.signal.strip_prefix("OUT").unwrap().parse().unwrap(); g.extend(quote! { - impl_dac_pin!( #peri, #pin_name, #ch); + impl_dac_pin!( #peri, #pin_name, #ch); }) } } diff --git a/src/lib.rs b/src/lib.rs index 98a3037..997da34 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,7 +57,7 @@ pub mod dma; #[cfg(adc)] pub mod adc; -#[cfg(peri_dac1)] +#[cfg(dac)] pub mod dac; pub mod exti; pub mod gpio;