KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
watchdog.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdatomic.h>
#include <time.h>
#include <dc/wdt.h>
#include <dc/maple/controller.h>

Macros

#define MSEC   1000
 
#define SEC   (1000 * MSEC)
 
#define WDT_PET_COUNT   4000
 
#define WDT_INTERVAL   (500 * MSEC)
 
#define WDT_SECONDS   10
 
#define WDT_COUNT_MAX   ((WDT_SECONDS * SEC) / WDT_INTERVAL)
 

Functions

static void wdt_timeout (void *user_data)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ MSEC

#define MSEC   1000

◆ SEC

#define SEC   (1000 * MSEC)

◆ WDT_COUNT_MAX

#define WDT_COUNT_MAX   ((WDT_SECONDS * SEC) / WDT_INTERVAL)

Referenced by main().

◆ WDT_INTERVAL

#define WDT_INTERVAL   (500 * MSEC)

Referenced by main().

◆ WDT_PET_COUNT

#define WDT_PET_COUNT   4000

Referenced by main().

◆ WDT_SECONDS

#define WDT_SECONDS   10

Referenced by main().

Function Documentation

◆ main()

◆ wdt_timeout()

static void wdt_timeout ( void * user_data)
static

Referenced by main().