Skip to content

Commit

Permalink
HRTIM - Wrong type in AdcTrigger impl for TimerPeriod and TimerReset
Browse files Browse the repository at this point in the history
  • Loading branch information
usbalbin committed May 7, 2024
1 parent c5b6d7b commit c5f7393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hrtim/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ macro_rules! hrtim_timer_adc_trigger {
])),+]
),+) => {
$($(
$(impl<PSCL, CPT1, CPT2> $AdcTrigger for super::adc_trigger::TimerReset<HrTim<$TIMX, PSCL, CPT1, CPT2>> {
$(impl $AdcTrigger for super::adc_trigger::TimerReset<$TIMX> {
const BITS: u32 = $adc_trigger_bits_reset;
})*

$(impl<PSCL, CPT1, CPT2> $AdcTrigger for super::adc_trigger::TimerPeriod<HrTim<$TIMX, PSCL, CPT1, CPT2>> {
$(impl $AdcTrigger for super::adc_trigger::TimerPeriod<$TIMX> {
const BITS: u32 = $adc_trigger_bits_period;
})*
)*)*
Expand Down

0 comments on commit c5f7393

Please sign in to comment.