Virtual Wire lib for CHIPKIT

Work prioritization by the chipKIT core development team
User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Virtual Wire lib for CHIPKIT

Post by majenko » Sun Apr 26, 2015 10:50 am

You can use any of PIC32 __PIC32 or __PIC32__ - the choice is yours. The three are provided purely because some people are used to using ARCH, some __ARCH and others __ARCH__ from ancient times. Personally I use __ARCH__ as it is more obviously a compiler-defined symbol a opposed to something more local.

My personal underscore / capitalisation preference is:
  • __SYMBOL__ = compiler defined
  • __SYMBOL = core defined
  • _SYMBOL = library or include-local define
  • _symBol = Class (library) member variable
  • SYMBOL = local or other "normal" program define
  • symBol = local or other "normal" program variable
Note that I am a fan of camelCase and think that people who still insist on using Hungarian notation should be shot. usI gulLike bMy uspPrograms ubTo crBe udReadable.
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".

User avatar
Jacob Christ
Posts: 723
Joined: Sat May 28, 2011 6:34 am
Location: Southern California
Contact:

Re: Virtual Wire lib for CHIPKIT

Post by Jacob Christ » Sun Apr 26, 2015 11:39 am

+1 on people who still insist on using Hungarian notation should be shot.

I do use it from time to time, because I would rather not mix metaphors when maintaining someone elses code.

Jacob
PONTECH Quick240 an industrial form factor platform for chipKIT and Arduino users.

Post Reply