Skip to content

Commit cb7c960

Browse files
authored
Adjust trait bounds for dac triggers (#11)
1 parent e8ab6db commit cb7c960

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ macro_rules! hrtim_hal {
826826
DacRst: DacResetTrigger,
827827
DacStp: DacStepTrigger,
828828
PSCL: HrtimPrescaler,
829-
PINS: ToHrOut<$TIMX>,
829+
PINS: ToHrOut<$TIMX, DacRst, DacStp>,
830830
{
831831
// For HAL writers:
832832
// Make sure to connect gpios after calling this function and then it should be safe to

src/output.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ where
147147

148148
unsafe impl<TIM, PA, PB, DacRst, DacStp> ToHrOut<TIM, DacRst, DacStp> for (PA, PB)
149149
where
150-
PA: ToHrOut<TIM>,
151-
PB: ToHrOut<TIM>,
150+
PA: ToHrOut<TIM, DacRst, DacStp>,
151+
PB: ToHrOut<TIM, DacRst, DacStp>,
152152
DacRst: DacResetTrigger,
153153
DacStp: DacStepTrigger,
154154
{

0 commit comments

Comments
 (0)