Skip to content

Commit

Permalink
Fix unused/unreferenced warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGrosser committed Dec 27, 2023
1 parent 7733530 commit eb2a118
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion src/drivers/rp-clock.adb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ package body RP.Clock is
Accuracy : UInt4 := 15)
return Hertz
is
use type RP2040_SVD.CLOCKS.FC0_SRC_FC0_SRC_Field;
F : Hertz;
begin
CLOCKS_Periph.FC0_INTERVAL.FC0_INTERVAL := Accuracy;
Expand Down
1 change: 0 additions & 1 deletion src/drivers/rp-i2c.adb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Ada.Unchecked_Conversion;
with RP.Reset;
with RP.Clock;

Expand Down
2 changes: 1 addition & 1 deletion tests/alire.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ executables = ["test_rp2040_hal"]

[[depends-on]] # Added by alr
rp2040_hal = "^2"
aunit = "^23.0.0"
aunit = "^24.0.0"
gnatcov = "^22.0.1"

[[pins]]
Expand Down
3 changes: 0 additions & 3 deletions tests/src/i2c_tests.adb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ package body I2C_Tests is
procedure Test_Single
(T : in out AUnit.Test_Cases.Test_Case'Class)
is
use HAL.I2C;
use HAL;
Data : UInt8;
Status : RP.I2C.I2C_Status;
Expand Down Expand Up @@ -123,7 +122,6 @@ package body I2C_Tests is
procedure Test_Repeated_Start
(T : in out AUnit.Test_Cases.Test_Case'Class)
is
use HAL.I2C;
use HAL;
Data : UInt8;
Status : RP.I2C.I2C_Status;
Expand Down Expand Up @@ -164,7 +162,6 @@ package body I2C_Tests is
procedure Test_Long_Transfer
(T : in out AUnit.Test_Cases.Test_Case'Class)
is
use HAL.I2C;
use HAL;
Data : UInt8;
Status : RP.I2C.I2C_Status;
Expand Down

0 comments on commit eb2a118

Please sign in to comment.