xmos / fwk_io

I/O Framework
Other
2 stars 11 forks source link

I2S slave config is not initialised to known value #32

Closed xhuw closed 2 years ago

xhuw commented 2 years ago

I2S config for slave is not initialised on creation. Therefore if the user does not set a field in the config it will have a random value and will lead to unpredictable behaviour.

https://github.com/xmos/fwk_io/blob/develop/modules/i2s/src/i2s_slave.c#L67

Suggested solution: initialise the config struct with sensible defaults