summaryrefslogtreecommitdiff
path: root/code/fe310/eos
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-03-22 01:27:30 +0100
committerUros Majstorovic <majstor@majstor.org>2018-03-22 01:27:30 +0100
commit7410152de8c37361b3935a4edf531c8a86bb9453 (patch)
tree3c4c20ce965b7ef39c2b2f0f0ed4fda8d7252599 /code/fe310/eos
parentdf355bab8e9fd3d71aaa4703839a2a3e6a630821 (diff)
cycle init early start
Diffstat (limited to 'code/fe310/eos')
-rw-r--r--code/fe310/eos/i2s.c2
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);