Skip to content

Commit bcb9248

Browse files
Tim Hommerdingrichardeoin
authored andcommitted
bugfix, wrong pins used in example
1 parent b2cac92 commit bcb9248

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/ethernet-rtic-nucleo-h723zg.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ mod app {
141141
let gpioc = ctx.device.GPIOC.split(ccdr.peripheral.GPIOC);
142142
let gpioe = ctx.device.GPIOE.split(ccdr.peripheral.GPIOE);
143143
let gpiob = ctx.device.GPIOB.split(ccdr.peripheral.GPIOB);
144+
let gpiog = ctx.device.GPIOG.split(ccdr.peripheral.GPIOG);
144145
let mut link_led = gpioe.pe1.into_push_pull_output(); // USR LED1
145146
link_led.set_high();
146147

@@ -150,8 +151,8 @@ mod app {
150151
let rmii_crs_dv = gpioa.pa7.into_alternate();
151152
let rmii_rxd0 = gpioc.pc4.into_alternate();
152153
let rmii_rxd1 = gpioc.pc5.into_alternate();
153-
let rmii_tx_en = gpiob.pb11.into_alternate();
154-
let rmii_txd0 = gpiob.pb12.into_alternate();
154+
let rmii_tx_en = gpiog.pg11.into_alternate();
155+
let rmii_txd0 = gpiog.pg13.into_alternate();
155156
let rmii_txd1 = gpiob.pb13.into_alternate();
156157

157158
// Initialise ethernet...

0 commit comments

Comments
 (0)