Replace obsolete plib library

Post Reply
michastro
Posts: 10
Joined: Thu May 01, 2014 12:17 pm

Replace obsolete plib library

Post by michastro » Mon Feb 27, 2017 5:19 pm

Hello,
I am using UNO32 and as plib library is no more available, I have to replace some instructions, like:
mT23ClearIntFlag()
mT23IntEnable(0)
mT23IntEnable(1)
mT45ClearIntFlag()
mT45IntEnable(0)
mT45IntEnable(1)
I think it's something like:
IEC0SET=?????
IFS0SET=?????
IEC0CLR=????
IFS0CLR=????
But I am really not sure of me.
Thanks a lot
Michel

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Replace obsolete plib library

Post by majenko » Mon Feb 27, 2017 9:28 pm

You need to switch to using the chipKIT interrupt system. It's all detailed here:
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

michastro
Posts: 10
Joined: Thu May 01, 2014 12:17 pm

Re: Replace obsolete plib library

Post by michastro » Mon Feb 27, 2017 11:26 pm

Hello,
I don't really see any explanation because my program works with timer 23 and 45.


Michel

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Replace obsolete plib library

Post by majenko » Tue Feb 28, 2017 12:58 am

Read the documents linked from that article - especially mine. It details how to work with interrupts - what the "clear interrupt flag" and "enable interrupt" and "set interrupt vector" functions are that replace the macros you listed.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply