Skip to content

Added the ability to save RAMPZ and EIND registers (Atmega2560 has it) - #2

Merged
carlosdelfino merged 1 commit into
DuinOS:masterfrom
niesteszeck:Mega2560
Mar 13, 2013
Merged

carlosdelfino merged 1 commit into
DuinOS:masterfrom
niesteszeck:Mega2560

Conversation

@niesteszeck

Copy link
Copy Markdown
Contributor

Hi Carlos.
I eddited the patch 'cause the Mega2560 has more registers that mus be saved in a context change, here are th corrections

@carlosdelfino

Copy link
Copy Markdown
Contributor

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.

@niesteszeck

Copy link
Copy Markdown
Contributor Author

Hi @carlosdelfino, interesting fork do you have there. I will work with it today!
what branch of Arduino repo are you using?

@carlosdelfino

Copy link
Copy Markdown
Contributor

@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.

@niesteszeck

Copy link
Copy Markdown
Contributor Author

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.

@carlosdelfino

Copy link
Copy Markdown
Contributor

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.

carlosdelfino added a commit that referenced this pull request Mar 13, 2013
Added the ability to save RAMPZ and EIND registers (Atmega2560 has it)
@carlosdelfino
carlosdelfino merged commit 77f939b into DuinOS:master Mar 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants