Here is the pins_arduino.c that I have been using that works with many processors.
pins_arduino.c (13.8 KB)