Use write and read for BitRangeValues

This commit is contained in:
Jaby
2023-01-15 20:21:48 +01:00
committed by Jaby
parent 46316dbae3
commit f3d82c1885
6 changed files with 11 additions and 7 deletions

View File

@@ -26,7 +26,7 @@
__syscall_SysEnqIntRP(Timer2Irq, &IRQCallback);
__syscall_ExitCriticalSection();
Counter2.target.write_range_value(CounterTarget::CounterTargetValue.with(HighResTime::TicksFor10ms));
Counter2.target.write(CounterTarget::CounterTargetValue.with(HighResTime::TicksFor10ms));
Counter2.mode.write({Mode});
Interrupt::enable_irq(Interrupt::Timer2);