From 7410152de8c37361b3935a4edf531c8a86bb9453 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 22 Mar 2018 01:27:30 +0100 Subject: cycle init early start --- code/fe310/eos/i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/fe310') 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); -- cgit v1.2.3