llvm-mos-sdk
Macros | Functions
irq.h File Reference
#include <stdbool.h>
Include dependency graph for irq.h:

Go to the source code of this file.

Macros

#define NMI_ACTION_VINTWAIT   0b00000000
 
#define NMI_ACTION_USER_1   0b01000000
 
#define NMI_ACTION_USER_2   0b10000000
 
#define NMI_ACTION_USER_3   0b11000000
 
#define IRQ_ACTION_DISK_TRANSFER   0b01000000
 
#define IRQ_ACTION_ACK_DELAY   0b10000000
 
#define IRQ_ACTION_USER   0b11000000
 
#define RESET_TYPE_HARD   0xAC
 
#define RESET_TYPE_SOFT   0x53
 

Functions

void fds_set_timer_irq_reload (unsigned value)
 
void fds_set_timer_irq_ctrl (bool enabled, bool repeat)
 
void fds_set_nmi_action (char action)
 
void fds_set_irq_action (char action)
 
void fds_set_reset_type (char type)
 

Macro Definition Documentation

◆ IRQ_ACTION_ACK_DELAY

#define IRQ_ACTION_ACK_DELAY   0b10000000

◆ IRQ_ACTION_DISK_TRANSFER

#define IRQ_ACTION_DISK_TRANSFER   0b01000000

◆ IRQ_ACTION_USER

#define IRQ_ACTION_USER   0b11000000

◆ NMI_ACTION_USER_1

#define NMI_ACTION_USER_1   0b01000000

◆ NMI_ACTION_USER_2

#define NMI_ACTION_USER_2   0b10000000

◆ NMI_ACTION_USER_3

#define NMI_ACTION_USER_3   0b11000000

◆ NMI_ACTION_VINTWAIT

#define NMI_ACTION_VINTWAIT   0b00000000

◆ RESET_TYPE_HARD

#define RESET_TYPE_HARD   0xAC

◆ RESET_TYPE_SOFT

#define RESET_TYPE_SOFT   0x53

Function Documentation

◆ fds_set_irq_action()

void fds_set_irq_action ( char  action)

◆ fds_set_nmi_action()

void fds_set_nmi_action ( char  action)

◆ fds_set_reset_type()

void fds_set_reset_type ( char  type)

◆ fds_set_timer_irq_ctrl()

void fds_set_timer_irq_ctrl ( bool  enabled,
bool  repeat 
)

◆ fds_set_timer_irq_reload()

void fds_set_timer_irq_reload ( unsigned  value)