Skip to content

Commit 4c20545

Browse files
committed
ports/psoc6/machine_i2s: Refactored pin_phy alloc/dealloc.
Signed-off-by: enriquezgarc <[email protected]>
1 parent a90279b commit 4c20545

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/psoc6/machine_i2s.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ static void i2s_init(machine_i2s_obj_t *self, cyhal_clock_t *clock) {
257257
}
258258

259259
cy_rslt_t result = cyhal_i2s_init(&self->i2s_obj, tx_pins, rx_pins, &config, clock);
260+
assert_pin_phy_used(result);
260261
i2s_assert_raise_val("I2S initialisation failed with return code %lx !", result);
261262
}
262263

0 commit comments

Comments
 (0)