Page 1 of 1

Typo in SB-27

PostPosted: Wed Jun 14, 2006 11:21 am
by jeffc
There is a cut-n-paste typo in SB-27.

The section for modifing OSEi() is:

code:

#if !defined(OSEi)
#if (OSPIC18_INTERRUPT_MASK == 0xC0)
#define OSDi() do { GIE = TRUE; PEIE = TRUE;
} while (0)
#elif (OSPIC18_INTERRUPT_MASK == 0x80)
#define OSDi() do { GIE = TRUE;
} while (0)
#elif (OSPIC18_INTERRUPT_MASK == 0x40)
#define OSDi() do { PEIE = TRUE;
} while (0)
#elif (OSPIC18_INTERRUPT_MASK == 0x00)
#define OSDi()
#endif
#endif

It should be:

code:

#if !defined(OSEi)
#if (OSPIC18_INTERRUPT_MASK == 0xC0)
#define OSEi() do { GIE = TRUE; PEIE = TRUE;
} while (0)
#elif (OSPIC18_INTERRUPT_MASK == 0x80)
#define OSEi() do { GIE = TRUE;
} while (0)
#elif (OSPIC18_INTERRUPT_MASK == 0x40)
#define OSEi() do { PEIE = TRUE;
} while (0)
#elif (OSPIC18_INTERRUPT_MASK == 0x00)
#define OSEi()
#endif
#endif

thanks,
Jeff


Re: Typo in SB-27

PostPosted: Thu Jun 15, 2006 7:21 am
by aek
Thanks -- have updated SB-27.

------------------