Skip to content

Remove I2S_MODE_SCK_POL bit from I2S modes #306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions system/libarc32_arduino101/drivers/soc_i2s.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,10 @@ extern "C" {
#define I2S_MODE_SAMPLE_DEL (0x10)
#define I2S_MODE_WS_DSP (0x20)

#define I2S_MODE_PHILLIPS (I2S_MODE_SCK_POL | I2S_MODE_LR_ALIGN)
#define I2S_MODE_RJ (I2S_MODE_SCK_POL | I2S_MODE_WS_POL | \
I2S_MODE_SAMPLE_DEL)
#define I2S_MODE_LJ (I2S_MODE_SCK_POL | I2S_MODE_WS_POL | \
I2S_MODE_LR_ALIGN | I2S_MODE_SAMPLE_DEL)
#define I2S_MODE_DSP (I2S_MODE_SCK_POL | I2S_MODE_LR_ALIGN | \
I2S_MODE_WS_DSP)
#define I2S_MODE_PHILLIPS (I2S_MODE_LR_ALIGN)
#define I2S_MODE_RJ (I2S_MODE_WS_POL | I2S_MODE_SAMPLE_DEL)
#define I2S_MODE_LJ (I2S_MODE_WS_POL | I2S_MODE_LR_ALIGN | I2S_MODE_SAMPLE_DEL)
#define I2S_MODE_DSP (I2S_MODE_LR_ALIGN | I2S_MODE_WS_DSP)

// I2S configuration object
struct soc_i2s_cfg {
Expand Down