Repository navigation
Added the ability to save RAMPZ and EIND registers (Atmega2560 has it) - #2
Conversation
|
Hi @niesteszeck, please use only the Branch DuinOS_v0.6.x the branch that you put this path was removed. Is good you send to http://github.com/carlosdelfino/Arduino too. In the future this repository will be removed or be the repository as submodule to http://github.com/carlosdelfino/Arduino. thanks. |
|
Hi @carlosdelfino, interesting fork do you have there. I will work with it today! |
|
@niesteszeck, please use on Arduino Repository the master Branch to Version 1.0.x from IDE, and ide-1.5.x Branch to Version 1.5.x IDE, thanks to you help. In this Repository use the branch DuinOS_v0.6.x You have examples e documentation about the impact this correction? as soon as you send me Fork in the Arduino will be approving. |
|
About the impact I don't have examples or docs, but for shure it adds more overhead to the context switching, 'cause we have to save 2 more registers each time. On the doc of the micro http://www.atmel.com/Images/doc2549.pdf (section 7) is explained that there are 37 registers: 32 GPR + 2 SP (SPH + SPL) + 1 SREG + 2 Extended adressing (RAMPZ + EIND). On atmega2560 and his family of micro, RAMPZ is used to access memories > 64K and EIND for memories >128K. |
|
Do not forget to send me corrections in the other branch, so it is easier to keep the authorship of correction. I was studying some time ago to use the extra memory ATMega640/1280/2560 but without the RTOS. I did a quick search and many RTOS are implemented with this adjustment. Thanks. |
Added the ability to save RAMPZ and EIND registers (Atmega2560 has it)
Hi Carlos.
I eddited the patch 'cause the Mega2560 has more registers that mus be saved in a context change, here are th corrections