Skip to content

Commit

Permalink
Missing I2SPin initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Feb 15, 2024
1 parent 42e9383 commit 78d4414
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stm32-i2s.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ enum I2SPinFunction { mclk, bck, ws, data_out, data_in };
*/

struct I2SPin {
I2SPin(I2SPinFunction f, PinName n, int alt) {}
I2SPin(I2SPinFunction f, PinName n, int alt) {
function = f;
pin = n;
altFunction = alt;
}
I2SPinFunction function;
PinName pin;
int altFunction;
Expand Down

0 comments on commit 78d4414

Please sign in to comment.