@@ -6,13 +6,13 @@ use rusty_probe as _;
6
6
#[ rtic:: app( device = rp2040_hal:: pac, dispatchers = [ XIP_IRQ , CLOCKS_IRQ ] ) ]
7
7
mod app {
8
8
use core:: mem:: MaybeUninit ;
9
- use dap_rs:: usb_device:: class_prelude:: * ;
9
+ use dap_rs:: { jtag:: TapConfig , usb_device:: class_prelude:: * } ;
10
+ use rp2040_hal:: usb:: UsbBus ;
11
+ use rtic_monotonics:: rp2040:: prelude:: * ;
10
12
use rusty_probe:: {
11
13
leds:: { LedManager , Vtarget } ,
12
14
setup:: * ,
13
15
} ;
14
- use rp2040_hal:: usb:: UsbBus ;
15
- use rtic_monotonics:: rp2040:: prelude:: * ;
16
16
17
17
#[ shared]
18
18
struct Shared {
@@ -31,6 +31,7 @@ mod app {
31
31
#[ init( local = [
32
32
usb_bus: MaybeUninit <UsbBusAllocator <UsbBus >> = MaybeUninit :: uninit( ) ,
33
33
delay: MaybeUninit <rusty_probe:: systick_delay:: Delay > = MaybeUninit :: uninit( ) ,
34
+ scan_chain: [ TapConfig ; 8 ] = [ TapConfig :: INIT ; 8 ] ,
34
35
] ) ]
35
36
fn init ( cx : init:: Context ) -> ( Shared , Local ) {
36
37
let (
@@ -41,7 +42,13 @@ mod app {
41
42
translator_power,
42
43
target_power,
43
44
target_physically_connected,
44
- ) = setup ( cx. device , cx. core , cx. local . usb_bus , cx. local . delay ) ;
45
+ ) = setup (
46
+ cx. device ,
47
+ cx. core ,
48
+ cx. local . usb_bus ,
49
+ cx. local . delay ,
50
+ cx. local . scan_chain ,
51
+ ) ;
45
52
46
53
voltage_translator_control:: spawn ( ) . ok ( ) ;
47
54
0 commit comments