Added support for ATmega1284P

I wanted to use this on a 1284P so I tweaked it so I could. 
I did not add 1284 not P, or 644 P or otherwise (because I don't have any of those)

This has been tested with the example blink sketch using mighty-1284p for Arduino.