Avr8bit-emulator
An emulator for the Atmel AVR 8-bit microcontroller
|
#include "mcu_control.h"
Go to the source code of this file.
Functions | |
void | break_point (struct CORE *core) |
Breakpoint. | |
void | nop (struct CORE *core) |
Executes a no-operation instruction. | |
void | sleep (struct CORE *core) |
Puts the MCU into sleep mode. | |
void | wdr (struct CORE *core) |
Resets the watchdog timer. | |
void break_point | ( | struct CORE * | core | ) |
Breakpoint.
Triggers a breakpoint in the MCU emulator.
core | Pointer to the CORE structure |
Definition at line 8 of file mcu_control.c.
void nop | ( | struct CORE * | core | ) |
Executes a no-operation instruction.
This function simulates the execution of a NOP (no operation) instruction, which does nothing and simply advances the program counter.
Currently, this function does nothing.
core | Pointer to the CORE structure representing the MCU state. |
Definition at line 11 of file mcu_control.c.
void sleep | ( | struct CORE * | core | ) |
Puts the MCU into sleep mode.
This function simulates putting the MCU into a low-power sleep mode, reducing power consumption until an interrupt occurs.
Currently, this function does nothing.
core | Pointer to the CORE structure representing the MCU state. |
Definition at line 16 of file mcu_control.c.
void wdr | ( | struct CORE * | core | ) |
Resets the watchdog timer.
This function simulates resetting the watchdog timer, preventing the MCU from resetting due to a watchdog timeout.
Currently, this function does nothing.
core | Pointer to the CORE structure representing the MCU state. |
Definition at line 21 of file mcu_control.c.