__critical
Yes, it must have.
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science
Hi,
> > Do we need to protect the prologue/epilogue?
>
> Not sure, probably not, though __critical attached to the function
> probably would.
For other targets the prologue and epilogue aren't
protected either. The idea was to keep interrupts off as
short as possible. But there is an RFE for i
Hi,
> tested my code with CRITICAL macro. The macro works (tested that)
> but it did not solve my issue, but I'll make an other post about that.
>
> BTW there is a small typo in the macro you sketched, you cannot
> have a non const initializer for the static var, so I modified it as
> follows:
>
>
Hi,
tested my code with CRITICAL macro. The macro works (tested that)
but it did not solve my issue, but I'll make an other post about that.
BTW there is a small typo in the macro you sketched, you cannot
have a non const initializer for the static var, so I modified it as
follows:
#define CRITI
Hi Kusti,
> I'll test this later today.
>
> You wrote: "partially emulate"
>
> What do you mean by that, what __critical -functionality would
> disabling all interrupt not emulate?
Well, you cannot emulate
void func(void) __critical
{
// something
}
using
void func(void)
{
CRITICAL(
//so
Thanks Rafael,
I'll test this later today.
You wrote: "partially emulate"
What do you mean by that, what __critical -functionality would
disabling all interrupt not emulate?
Or are you talking abou things like using a 'return/break' statement
inside
disabled section in which case of course the
Hi,
> But when I look at the compiled (assembler source code) I see no
> difference with or without the __critical keyword nor any evidence
> of any interrupt disabling code.
>
> So what am I doing wrong?
Errr, nothing: __critical is not implemented for the PIC ports.
You can partially emulate it
Hi,
when debugging my mysterious behaviour (discussed here on this list in
the past few days)
I discovered that __critical does not change anything in my code. So
protecting
my function that sets up some critical parameters for my interrupt code
with
__critical does not function.
I' doing it as