Skip to content

Commit

Permalink
fix(hpm53): remove ADC1/DAC for hpm5301
Browse files Browse the repository at this point in the history
Signed-off-by: Haobo Gu <[email protected]>
  • Loading branch information
HaoboGu authored and andelf committed Sep 19, 2024
1 parent 8ac53b0 commit 7081f0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/patches/hpm53.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 7081f0a

Please sign in to comment.