Pumpkin, Inc.

Pumpkin User Forums

Typo in SB-27

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

Typo in SB-27

Postby jeffc » Wed Jun 14, 2006 11:21 am

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

jeffc
 
Posts: 8
Joined: Thu Oct 27, 2005 11:00 pm

Re: Typo in SB-27

Postby aek » Thu Jun 15, 2006 7:21 am

Thanks -- have updated SB-27.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest

cron