Skip to content

Commit 17d7b4b

Browse files
authored
Merge pull request #437 from liampwll/master
Wait for STM32 timer output to be enabled before returning from enable procedure.
2 parents 3483cd1 + 63dc19d commit 17d7b4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/ARM/STM32/drivers/stm32-timers.adb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ package body STM32.Timers is
184184
procedure Enable_Main_Output (This : in out Timer) is
185185
begin
186186
This.BDTR.Main_Output_Enabled := True;
187+
188+
loop
189+
exit when Main_Output_Enabled (This);
190+
end loop;
187191
end Enable_Main_Output;
188192

189193
-------------------------

0 commit comments

Comments
 (0)