Timers are now 64-bit.

This commit is contained in:
OBattler
2017-10-09 01:48:36 +02:00
parent 08bf9109d7
commit 02bbfb26eb
67 changed files with 508 additions and 499 deletions

View File

@@ -18,7 +18,7 @@ typedef struct dss_t
uint8_t dac_val;
int time;
int64_t time;
int16_t buffer[SOUNDBUFLEN];
int pos;
@@ -88,7 +88,7 @@ static void dss_callback(void *p)
dss->read_idx++;
}
dss->time += (TIMER_USEC * (1000000.0 / 7000.0));
dss->time += (int64_t) (TIMER_USEC * (1000000.0 / 7000.0));
}
static void *dss_init()