SimAVR
AVR Simulator
avr_watchdog.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "avr_watchdog.h"
Include dependency graph for avr_watchdog.c:

Functions

static void avr_watchdog_run_callback_software_reset (avr_t *avr)
 
static avr_cycle_count_t avr_watchdog_timer (struct avr_t *avr, avr_cycle_count_t when, void *param)
 
static avr_cycle_count_t avr_wdce_clear (struct avr_t *avr, avr_cycle_count_t when, void *param)
 
static void avr_watchdog_set_cycle_count_and_timer (avr_t *avr, avr_watchdog_t *p, uint8_t was_enabled, int8_t old_wdp)
 
static void avr_watchdog_write (avr_t *avr, avr_io_addr_t addr, uint8_t v, void *param)
 
static int avr_watchdog_ioctl (struct avr_io_t *port, uint32_t ctl, void *io_param)
 
static void avr_watchdog_irq_notify (struct avr_irq_t *irq, uint32_t value, void *param)
 
static void avr_watchdog_reset (avr_io_t *port)
 
void avr_watchdog_init (avr_t *avr, avr_watchdog_t *p)
 

Variables

static avr_io_t _io
 

Function Documentation

static int avr_watchdog_ioctl ( struct avr_io_t port,
uint32_t  ctl,
void *  io_param 
)
static

Here is the call graph for this function:

static void avr_watchdog_irq_notify ( struct avr_irq_t irq,
uint32_t  value,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void avr_watchdog_reset ( avr_io_t port)
static

Here is the call graph for this function:

static void avr_watchdog_run_callback_software_reset ( avr_t avr)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void avr_watchdog_set_cycle_count_and_timer ( avr_t avr,
avr_watchdog_t p,
uint8_t  was_enabled,
int8_t  old_wdp 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static avr_cycle_count_t avr_watchdog_timer ( struct avr_t avr,
avr_cycle_count_t  when,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void avr_watchdog_write ( avr_t avr,
avr_io_addr_t  addr,
uint8_t  v,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static avr_cycle_count_t avr_wdce_clear ( struct avr_t avr,
avr_cycle_count_t  when,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

avr_io_t _io
static
Initial value:
= {
.kind = "watchdog",
}
static void avr_watchdog_reset(avr_io_t *port)
Definition: avr_watchdog.c:191
static int avr_watchdog_ioctl(struct avr_io_t *port, uint32_t ctl, void *io_param)
Definition: avr_watchdog.c:160