projects
/
sx
/
simavr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
regExp
home
|
summary
|
tags
|
heads
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
raw
|
patch
| inline |
side by side
(parent:
faf279d
)
Commit
3fa1bd3e503bf7653f9df06e30b2c1e815ccc91a
author
Jakob Gruber
<jakob.gruber@gmail.com>
Sat, 4 Aug 2012 13:28:06 +0000
(15:28 +0200)
committer
Jakob Gruber
<jakob.gruber@gmail.com>
Sun, 5 Aug 2012 11:00:53 +0000
(13:00 +0200)
The atmega1280 uses IO registers up to an address of 0x136.
Set MAX_IOs to (0x136 - 0x20 + 0x01) = 279.
simavr/sim/sim_avr.h
patch
|
blob
|
history
|
download
diff --git
a/simavr/sim/sim_avr.h
b/simavr/sim/sim_avr.h
index f7ac26d32168b9a76c39dfdc854f0d9c7b20dd73..6f6cc347164d7562652936efd0116922f2540845 100644
(file)
--- a/
simavr/sim/sim_avr.h
+++ b/
simavr/sim/sim_avr.h
@@
-55,7
+55,7
@@
enum {
R_SREG = 32+0x3f,
// maximum number of IO registers, on normal AVRs
- MAX_IOs = 2
56
, // Bigger AVRs need more than 256-32 (mega1280)
+ MAX_IOs = 2
79
, // Bigger AVRs need more than 256-32 (mega1280)
};
#define AVR_DATA_TO_IO(v) ((v) - 32)