Author Topic: I am unable to use C Macro related to peripherals of PIC32mx. [Solved]  (Read 1067 times)

0 Members and 1 Guest are viewing this topic.

Offline abrarbaigTopic starter

  • Contributor
  • Posts: 30
  • Country: sa
I am unable to use C Macro related to peripherals of PIC32mx. I am using xc32 v1.43 . I use #include<plib.h> as  mentioned in the literature. I am using MPLabXIDE v 4.01
« Last Edit: March 21, 2018, 07:38:16 pm by abrarbaig »
 


Offline abrarbaigTopic starter

  • Contributor
  • Posts: 30
  • Country: sa
Re: I am unable to use C Macro related to peripherals of PIC32mx.
« Reply #2 on: March 21, 2018, 07:34:23 pm »
Thanks . I have downloaded the additional software.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14476
  • Country: fr
No problem.

Microchip is making the "peripheral libraries" deprecated, this is why they don't include that as standard with their compilers anymore. They will probably remove them altogether one day or another, so I would suggest you start working on doing without them, either by using Harmony (*cough cough*, I wouldn't), or directly control the peripherals by their registers, it's not that difficult, and the peripheral libraries source code can get you started.
 

Offline abrarbaigTopic starter

  • Contributor
  • Posts: 30
  • Country: sa
Thanks for your suggestions. I used to control SFR's directly but I just wanted to try macros as well.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf