Skip to content

Commit 5f81053

Browse files
pat-rogersjklmnn
authored andcommitted
Add missing procedures Disable_Clock and Reset for CRC_32.
1 parent 75518a8 commit 5f81053

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

arch/ARM/STM32/devices/stm32f7x/stm32-device.adb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,4 +1099,25 @@ package body STM32.Device is
10991099
RCC_Periph.AHB1ENR.CRCEN := True;
11001100
end Enable_Clock;
11011101

1102+
-------------------
1103+
-- Disable_Clock --
1104+
-------------------
1105+
1106+
procedure Disable_Clock (This : in out CRC_32) is
1107+
pragma Unreferenced (This);
1108+
begin
1109+
RCC_Periph.AHB1ENR.CRCEN := False;
1110+
end Disable_Clock;
1111+
1112+
-----------
1113+
-- Reset --
1114+
-----------
1115+
1116+
procedure Reset (This : in out CRC_32) is
1117+
pragma Unreferenced (This);
1118+
begin
1119+
RCC_Periph.AHB1RSTR.CRCRST := True;
1120+
RCC_Periph.AHB1RSTR.CRCRST := False;
1121+
end Reset;
1122+
11021123
end STM32.Device;

arch/ARM/STM32/devices/stm32f7x/stm32-device.ads

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,10 @@ package STM32.Device is
551551

552552
procedure Enable_Clock (This : in out CRC_32);
553553

554+
procedure Disable_Clock (This : in out CRC_32);
555+
556+
procedure Reset (This : in out CRC_32);
557+
554558
-----------
555559
-- SDMMC --
556560
-----------

0 commit comments

Comments
 (0)