Hello!
I'm using DM6437 EVM and I configure interrupt 13 to catch uart 1
interrupt, all work fine if I set with the tool window core register the
correct bit in IER, but I don't know how to set this by C code? I read
that csl api are not longer supported! is that correct?
Regards
David
IER interrupt enabling
Started by ●July 7, 2008
Reply by ●July 7, 20082008-07-07
Greetings,
DSP/BIOS has a c64.h that you could include... see code below:
#include
#include
// Turn off interrupt
C64_disableIER(C64_EINT13);
// Turn on interrupt
C64_enableIER(C64_EINT13);
// Clear flag
C64_clearIFR(C64_EINT13);
Hope that helps,
David
DAVID A. KONDRAD
Software Design Engineer
On-Q/Legrand
www.onqlegrand.com
david
@gmail.com> To
Sent by: dsp
c6x@yahoogroups.c cc
om
Subject
[c6x] IER interrupt enabling
07/07/2008 09:37
AM
Hello!
I'm using DM6437 EVM and I configure interrupt 13 to catch uart 1
interrupt, all work fine if I set with the tool window core register the
correct bit in IER, but I don't know how to set this by C code? I read
that csl api are not longer supported! is that correct?
Regards
David
DSP/BIOS has a c64.h that you could include... see code below:
#include
#include
// Turn off interrupt
C64_disableIER(C64_EINT13);
// Turn on interrupt
C64_enableIER(C64_EINT13);
// Clear flag
C64_clearIFR(C64_EINT13);
Hope that helps,
David
DAVID A. KONDRAD
Software Design Engineer
On-Q/Legrand
www.onqlegrand.com
david
@gmail.com> To
Sent by: dsp
c6x@yahoogroups.c cc
om
Subject
[c6x] IER interrupt enabling
07/07/2008 09:37
AM
Hello!
I'm using DM6437 EVM and I configure interrupt 13 to catch uart 1
interrupt, all work fine if I set with the tool window core register the
correct bit in IER, but I don't know how to set this by C code? I read
that csl api are not longer supported! is that correct?
Regards
David
Reply by ●July 7, 20082008-07-07
David,
Perhaps the following would work
#define desiredBitNum ()
unsigned int shadowIER;
//to set the bit
shadowIER = IER;
shadowIER |= (1< IER = shadowIER;
//to clear the bit
shadowIER = IER;
shadowIER &= ~(1< IER = shadowIER;
where is the bit number of bit to be set/cleared
---------- Original Message -----------
From: david
To: dsp
Sent: Mon, 07 Jul 2008 15:37:33 +0200
Subject: [c6x] IER interrupt enabling
> Hello!
> I'm using DM6437 EVM and I configure interrupt 13 to catch uart 1
> interrupt, all work fine if I set with the tool window core register the
> correct bit in IER, but I don't know how to set this by C code? I read
> that csl api are not longer supported! is that correct?
> Regards
>
> David
>
>
>
Perhaps the following would work
#define desiredBitNum ()
unsigned int shadowIER;
//to set the bit
shadowIER = IER;
shadowIER |= (1< IER = shadowIER;
//to clear the bit
shadowIER = IER;
shadowIER &= ~(1< IER = shadowIER;
where is the bit number of bit to be set/cleared
---------- Original Message -----------
From: david
To: dsp
Sent: Mon, 07 Jul 2008 15:37:33 +0200
Subject: [c6x] IER interrupt enabling
> Hello!
> I'm using DM6437 EVM and I configure interrupt 13 to catch uart 1
> interrupt, all work fine if I set with the tool window core register the
> correct bit in IER, but I don't know how to set this by C code? I read
> that csl api are not longer supported! is that correct?
> Regards
>
> David
>
>
>