From 2842bec1c3e5473415538f22c1ae4d7a5caf5b97 Mon Sep 17 00:00:00 2001 From: Haobo Gu Date: Thu, 19 Sep 2024 17:25:52 +0800 Subject: [PATCH] fix(hpm53): remove ADC1/DAC for hpm5301 Signed-off-by: Haobo Gu --- src/patches/hpm53.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/patches/hpm53.rs b/src/patches/hpm53.rs index d975cba..9efc48c 100644 --- a/src/patches/hpm53.rs +++ b/src/patches/hpm53.rs @@ -3,8 +3,11 @@ use crate::pac::sysctl::vals::AnaClkMux; use crate::pac::SYSCTL; impl_ana_clock_periph!(ADC0, ANA0, ADC0, adcclk, 0); +#[cfg(not(feature = "hpm5301"))] impl_ana_clock_periph!(ADC1, ANA1, ADC1, adcclk, 1); +#[cfg(not(feature = "hpm5301"))] impl_ana_clock_periph!(DAC0, ANA2, DAC0, dacclk, 0); +#[cfg(not(feature = "hpm5301"))] impl_ana_clock_periph!(DAC1, ANA3, DAC1, dacclk, 1); #[cfg(peri_qei0)]