|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#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[]) |
| #define MSEC 1000 |
| #define SEC (1000 * MSEC) |
| #define WDT_COUNT_MAX ((WDT_SECONDS * SEC) / WDT_INTERVAL) |
Referenced by main().
| #define WDT_PET_COUNT 4000 |
Referenced by main().
| #define WDT_SECONDS 10 |
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] ) |
References CONT_A, CONT_B, cont_btn_callback(), CONT_START, CONT_X, CONT_Y, counter, fprintf, NULL, printf, WDT_CLK_DIV_4096, WDT_COUNT_MAX, wdt_disable(), wdt_enable_timer(), wdt_enable_watchdog(), wdt_get_counter(), WDT_INTERVAL, wdt_pet(), WDT_PET_COUNT, WDT_RST_MANUAL, WDT_SECONDS, and wdt_timeout().
|
static |
Referenced by main().