diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-03-22 01:27:30 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-03-22 01:27:30 +0100 |
commit | 7410152de8c37361b3935a4edf531c8a86bb9453 (patch) | |
tree | 3c4c20ce965b7ef39c2b2f0f0ed4fda8d7252599 /code | |
parent | df355bab8e9fd3d71aaa4703839a2a3e6a630821 (diff) |
cycle init early start
Diffstat (limited to 'code')
-rw-r--r-- | code/fe310/eos/i2s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/fe310/eos/i2s.c b/code/fe310/eos/i2s.c index 8a4465c..34cbfc4 100644 --- a/code/fe310/eos/i2s.c +++ b/code/fe310/eos/i2s.c @@ -119,7 +119,7 @@ void eos_i2s_init(void) { I2S_PWM_REG_WS(PWM_COUNT) = 0; I2S_PWM_REG_WS(PWM_CMP0) = (_eos_i2s_ck_period + 1) * 64 - 1; I2S_PWM_REG_WS(PWM_CMP1) = (_eos_i2s_ck_period + 1) * 32; - I2S_PWM_REG_WS(PWM_CMP2) = (_eos_i2s_ck_period + 1) * 64 - 512; + I2S_PWM_REG_WS(PWM_CMP2) = (_eos_i2s_ck_period + 1) * 64 - 2 * _eos_i2s_ck_period; eos_intr_set(I2S_IRQ_SD_ID, 0, NULL); eos_intr_set(I2S_IRQ_CK_ID, 0, NULL); |