Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed logic bug with ppsFuncIsOutput() macro.

  • Loading branch information...
commit a8df270d0c2c9a8169866bfd0cedbb917c9d9bb6 1 parent d1334be
Brian Schmalz authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  hardware/pic32/cores/pic32/pins_arduino.h
2  hardware/pic32/cores/pic32/pins_arduino.h
@@ -172,7 +172,7 @@
172 172 #define ppsInputFromFunc(F) ((F) & PPS_IN_MASK)
173 173 #define ppsOutputFromFunc(F) ((F) & PPS_OUT_MASK)
174 174 #define ppsFuncIsInput(F) ((F) & _PPS_INPUT_BIT)
175   -#define ppsFuncIsOutput(F) (~ppsFuncIsInput(F))
  175 +#define ppsFuncIsOutput(F) (!ppsFuncIsInput(F))
176 176 #define ppsOutputRegister(P) (volatile uint32_t *)((uint32_t)(&_RPOBASE) + 4*digital_pin_to_pps_out_PGM[P])
177 177 #define ppsInputRegister(F) ((uint32_t *)(4*(ppsInputFromFunc(F)) + (uint32_t)&_RPIBASE))
178 178

0 comments on commit a8df270

Please sign in to comment.
Something went wrong with that request. Please try again.