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

@@ -28,8 +28,8 @@
typedef struct mouse_serial_t {
int8_t port,
type;
int pos,
delay;
int pos;
int64_t delay;
int oldb;
SERIAL *serial;
} mouse_serial_t;
@@ -47,7 +47,7 @@ sermouse_callback(struct SERIAL *serial, void *priv)
/* Start a timer to wake us up in a little while. */
ms->pos = -1;
ms->delay = 5000 * (1 << TIMER_SHIFT);
ms->delay = 5000LL * (1LL << TIMER_SHIFT);
}
@@ -57,7 +57,7 @@ sermouse_timer(void *priv)
{
mouse_serial_t *ms = (mouse_serial_t *)priv;
ms->delay = 0;
ms->delay = 0LL;
if (ms->pos != -1) return;