Pumpkin, Inc.

Pumpkin User Forums

OSTimer

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®).

OSTimer

Postby phil » Thu May 03, 2007 10:57 am

I removed OSEi() from my code and OSDelay still works. Can you advise if interrupts are enabled anywhere else in salvo code because I'm exlicitly setting GIE and GIEH to 0 in my code.

Thanks

Target is PIC18F252

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

phil
 
Posts: 12
Joined: Mon Dec 12, 2005 12:00 am

Re: OSTimer

Postby aek » Thu May 03, 2007 11:30 am

In the Salvo v3 port to the PIC using PICC/PICC-18, interrupt are globally disabled, then re-enabled in all of Salvo's critical sections.

To suppress this you need to do a source-code build and redefine the interrupt-controlling macros in portpicc.h.

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

-------
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 3 guests

cron