Added support for ATmega1281, ATmega2561#174
Conversation
Added support for AtMega1281 and ATmega2561 (using "MegaCore standard pinout"), tested with Serial strategy. I don't test SoftwareBitBang yet - not sure if I have time for this soon. I am not sure if PJON_IO_PIN_TO_BIT() is really correct. I don't understand it. The obsolete timer sections will be deleted anyway in near future. Timings should be same as ATmega1280/Atmega2560, because this devices are nearly the same (except pin count).
|
Ciao @sigmaeo thank you so much for your support. At line https://github.com/gioblu/PJON/blob/master/interfaces/ARDUINO/PJON_IO.h#L258
// sets x to 33 (00100001 in binary)
byte x = 33;
// writes a 1 to the second bit bit of x, now x is 00100101 (37 in decimal)
bitWrite(x, 2, 1);So Before accepting your pull I would be sure that for the requested pin state/mode is set/read correctly, if you have the time, a simple test with a LED and pin state reading test, I sadly do not have here this MCU but I will soon buy it for local testing. Thank you again for your support. |
Added support for AtMega1281 and ATmega2561 (using "MegaCore standard pinout"), tested with Serial strategy.
I don't test SoftwareBitBang yet - not sure if I have time for this soon.
I am not sure if PJON_IO_PIN_TO_BIT() is really correct. I don't understand it.
The obsolete timer sections will be deleted anyway in near future.
Timings should be same as ATmega1280/Atmega2560, because this devices are nearly the same (except pin count).