libmsx
C library for MSX
Loading...
Searching...
No Matches
interrupt.h File Reference

Interrupts relevant functions and Pluggable interrupts handler interface. More...

#include <stdbool.h>
#include <stdint.h>
+ Include dependency graph for interrupt.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INTERRUPT_H
 
#define await_interrupt()
 MSX Waits for next interrupt.
 

Functions

void await_vsync (void)
 MSX Waits for next VSYNC interrupt.
 
void set_interrupt_handler (void(*handler)(void))
 MSX Register user defined interrupt handler.
 
void set_vsync_handler (void(*handler)(void))
 MSX Register user defined VSYNC interrupt handler.
 
void sleep_ticks (uint16_t ticks)
 MSX Wait for the specified number of VSYNCs to occur.
 
void sleep_millis (uint16_t ms)
 MSX Wait for the specified time to elapse in milliseconds.
 
bool get_interrupt_state (void)
 MSX Return the current state of interrupts.
 

Variables

volatile bool vsync_busy
 MSX "Busy" flag for VSYNC interrupt routine.
 

Detailed Description

Interrupts relevant functions and Pluggable interrupts handler interface.

Definition in file interrupt.h.

Macro Definition Documentation

◆ INTERRUPT_H

#define INTERRUPT_H

Definition at line 24 of file interrupt.h.