File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 31
31
32
32
with STM32_SVD ; use STM32_SVD;
33
33
with STM32.Device ; use STM32.Device;
34
- with System.Storage_Elements ; use System.Storage_Elements;
35
34
36
35
package body STM32.PWM is
37
36
@@ -453,7 +452,7 @@ package body STM32.PWM is
453
452
function Data_Register_Address
454
453
(This : PWM_Modulator) return Address is
455
454
begin
456
- return This.Generator.all 'Address + 16#4C# ;
455
+ return STM32.Timers.Data_Register_Address ( This.Generator.all ) ;
457
456
end Data_Register_Address ;
458
457
459
458
end STM32.PWM ;
Original file line number Diff line number Diff line change @@ -435,6 +435,16 @@ package body STM32.Timers is
435
435
This.CR2.Capture_Compare_DMA_Selection := False;
436
436
end Disable_Capture_Compare_DMA ;
437
437
438
+ -- -------------------------
439
+ -- Data_Register_Address --
440
+ -- -------------------------
441
+
442
+ function Data_Register_Address
443
+ (This : Timer) return Address is
444
+ begin
445
+ return This.DMAR'Address;
446
+ end Data_Register_Address ;
447
+
438
448
-- ---------------------
439
449
-- Current_Prescaler --
440
450
-- ---------------------
Original file line number Diff line number Diff line change @@ -437,6 +437,9 @@ package STM32.Timers is
437
437
procedure Disable_Capture_Compare_DMA
438
438
(This : in out Timer);
439
439
440
+ function Data_Register_Address
441
+ (This : Timer) return Address with Inline;
442
+
440
443
-- --------------------------------------------------------------------------
441
444
442
445
-- Output Compare Management ----------------------------------------------
You can’t perform that action at this time.
0 commit comments