Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions arch/ARM/STM32/devices/stm32f7x/stm32-device.adb
Original file line number Diff line number Diff line change
Expand Up @@ -1099,4 +1099,25 @@ package body STM32.Device is
RCC_Periph.AHB1ENR.CRCEN := True;
end Enable_Clock;

-------------------
-- Disable_Clock --
-------------------

procedure Disable_Clock (This : in out CRC_32) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1ENR.CRCEN := False;
end Disable_Clock;

-----------
-- Reset --
-----------

procedure Reset (This : in out CRC_32) is
pragma Unreferenced (This);
begin
RCC_Periph.AHB1RSTR.CRCRST := True;
RCC_Periph.AHB1RSTR.CRCRST := False;
end Reset;

end STM32.Device;
4 changes: 4 additions & 0 deletions arch/ARM/STM32/devices/stm32f7x/stm32-device.ads
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ package STM32.Device is

procedure Enable_Clock (This : in out CRC_32);

procedure Disable_Clock (This : in out CRC_32);

procedure Reset (This : in out CRC_32);

-----------
-- SDMMC --
-----------
Expand Down
Loading