Interrupt Control - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

C/C++ Compiler Language Extensions
An example use of
#include <sysreg.h>
int read_io_zero(){
int value = io_space_read(0);
return value;
}
An example use of
#include <sysreg.h>
void write_io_zero(int val) {
io_space_write(0, val);
}

Interrupt Control

The inclusion of
instructions to enable and disable interrupts.
The prototypes for these functions are, as defined in
void enable_interrupts(void);
void disable_interrupts(void);
The following code provides an example of the use of
and
disable_interrupts
:
printf
#include <sysreg.h>
#include <stdio.h>
void interrupt_safe_iprint(int val) {
disable_interrupts();
printf("%d\n",val);
enable_interrupts();
}
1-98
to read from address zero might be:
io_space_read
io_space_write
allows the use of functions that generate the
sysreg.h
to disable and enable interrupts around a call to
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
to write to address zero might be:
sysreg.h
for ADSP-219x DSPs
:
enable_interrupts

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents