KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Watchdog Timer API. More...
#include <sys/cdefs.h>
#include <stdint.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | wdt_callback) (void *user_data) |
Enumerations | |
enum | WDT_CLK_DIV { WDT_CLK_DIV_32 , WDT_CLK_DIV_64 , WDT_CLK_DIV_128 , WDT_CLK_DIV_256 , WDT_CLK_DIV_512 , WDT_CLK_DIV_1024 , WDT_CLK_DIV_2048 , WDT_CLK_DIV_4096 } |
Clock divider settings. More... | |
enum | WDT_RST { WDT_RST_POWER_ON , WDT_RST_MANUAL } |
Reset signal type. More... | |
Functions | |
void | wdt_enable_timer (uint8_t initial_count, uint32_t microsec_period, uint8_t irq_prio, wdt_callback callback, void *user_data) |
Enables the WDT as an interval timer. | |
void | wdt_enable_watchdog (uint8_t initial_count, WDT_CLK_DIV clk_config, WDT_RST reset_select) |
Enables the WDT in watchdog mode. | |
uint8_t | wdt_get_counter (void) |
Fetches the counter value. | |
void | wdt_set_counter (uint8_t value) |
Sets the counter value. | |
void | wdt_pet (void) |
Resets the counter value. | |
void | wdt_disable (void) |
Disables the WDT. | |
int | wdt_is_enabled (void) |
Returns whether the WDT is enabled. | |
Watchdog Timer API.
This file provides an API for configuring and utilizing the SH4's watchdog timer as either a reset or an interval timer.
typedef void(* wdt_callback) (void *user_data) |