Open stephanbrunner opened 6 years ago
You should be able to add support for ports A through G on the ATmega2560 without any technical limitations. To support the other ports, I believe you would need to make major changes to the assembly code.
I see. I'll try, but probably go with a hacky version then. If I get something worth pushing I'll let you know. Thanks! And a beauty of a library by the way.
this do the same in Marlin fast io for 2560 https://github.com/MarlinFirmware/Marlin/blob/1.1.x/Marlin/fastio.h https://github.com/MarlinFirmware/Marlin/blob/1.1.x/Marlin/fastio_1280.h
Has anyone had any luck hacking this to work on the 2560 yet?
I have a hacky version I can share with you, but not generalized enough to be worth publishing. That would be a cool job to do though. Unfortunattely, because I didn't plan to publish the code, I made some codestyle addaption. Sorry for that. The technical changes may only be in the #define sections to define the chips pinout. But I don't really remember.
Hope that helps anyway: FastGPIO_MEGA.h.txt
Thanks very much. I think its done the job.
I installed the latest version and still no official support of ATMega 2560. Please make it official.
Find a hacky version attached to my comment 1 month ago. That shound serve for some use cases, not all gpios are supported though. At some point someone probably will write an update supporting all gpios.
I have a hacky version I can share with you, but not generalized enough to be worth publishing. That would be a cool job to do though. Unfortunattely, because I didn't plan to publish the code, I made some codestyle addaption. Sorry for that. The technical changes may only be in the #define sections to define the chips pinout. But I don't really remember.
Hope that helps anyway: FastGPIO_MEGA.h.txt
Was really hoping to try this, but I'm getting some errors that are beyond my c/c++ abilities...
FastGPIO_MEGA.h:424:71: error: impossible constraint in asm
_FG_SBI(pinStructs[pin].portAddr, pinStructs[pin].bit);
Any update on officially supported 2560?
Some code might help. : )
Hi all,
Is there a technical reason for not supporting the Arduino Mega? I'm thinking of writing the extra code, but I'm not sure if I will bump into some technical limitations...
Thanks, Stephan