Add new IOPort design

This commit is contained in:
Jaby
2023-01-15 16:49:38 +01:00
committed by Jaby
parent 8d59d38524
commit 019022a035
15 changed files with 143 additions and 240 deletions

View File

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