Skip to content

Commit 0bec945

Browse files
committed
split tests for rp2040 and rp2350
1 parent 48f0fa6 commit 0bec945

File tree

96 files changed

+3803
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+3803
-3
lines changed

src/devices/RP2040/rp-device.ads

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ with RP.PIO;
1616
with RP.RTC;
1717
with RP.Interpolator;
1818
with RP.USB_Device;
19-
with RP.Timer.Interrupts;
2019
with System;
2120

2221
package RP.Device is
@@ -52,7 +51,6 @@ package RP.Device is
5251
INTERP_1 : aliased RP.Interpolator.INTERP_Peripheral
5352
with Import, Address => INTERP1_Base;
5453

55-
Timer : aliased RP.Timer.Interrupts.Delays;
5654
RTC : aliased RP.RTC.RTC_Device;
5755
UDC : aliased RP.USB_Device.USB_Device_Controller;
5856

src/drivers/rp-pio.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package body RP.PIO is
1717
case This.Num is
1818
when 0 => Reset_Peripheral (Reset_PIO0);
1919
when 1 => Reset_Peripheral (Reset_PIO1);
20-
when 2 => Reset_Peripheral (Reset_PIO2);
20+
when 2 => raise Program_Error; -- TODO
2121
end case;
2222
end Enable;
2323

File renamed without changes.

tests_rp2040/alire.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name = "test_rp2040_hal"
2+
description = "Unit tests for rp2040_hal"
3+
version = "2.3.0"
4+
5+
authors = ["Jeremy Grosser"]
6+
maintainers = ["Jeremy Grosser <jeremy@synack.me>"]
7+
maintainers-logins = ["JeremyGrosser"]
8+
9+
executables = ["test_rp2040_hal"]
10+
11+
[[depends-on]] # Added by alr
12+
rp2040_hal = "^3"
13+
aunit = "^24"
14+
gnatcov = "^22"
15+
embedded_rp2040 = ">=15"
16+
17+
[[pins]]
18+
rp2040_hal = { path='..' }
19+
20+
[gpr-set-externals]
21+
AUNIT_RUNTIME = "ravenscar"
22+
EMBEDDED_RP2040_BUILD = "Debug"
23+
24+
[build-profiles]
25+
"*" = "validation"
26+
cortex_m = "release"
27+
usb_embedded = "release"
28+
atomic = "release"
29+
aunit = "release"
30+
31+
[configuration.values]
32+
embedded_rp2040.Board = "rpi_pico"
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)