From e4635004f7a84508786d80f31a38fc0f0100540d Mon Sep 17 00:00:00 2001
From: cladmi <gaetan.harter@fu-berlin.de>
Date: Wed, 15 Aug 2018 13:20:44 +0200
Subject: [PATCH] cpu/atmega1284p: configure RAM and ROM length

Info taken from https://www.microchip.com/wwwproducts/en/atmega1284p

TODO: update "board not enough memory".
---
 cpu/atmega1284p/Makefile.include | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpu/atmega1284p/Makefile.include b/cpu/atmega1284p/Makefile.include
index b46d4e871c..7575f04ff9 100644
--- a/cpu/atmega1284p/Makefile.include
+++ b/cpu/atmega1284p/Makefile.include
@@ -4,5 +4,8 @@ USEMODULE += atmega_common
 # define path to atmega common module, which is needed for this CPU
 export ATMEGA_COMMON = $(RIOTCPU)/atmega_common/
 
+RAM_LEN = 16K
+ROM_LEN = 128K
+
 # CPU depends on the atmega common module, so include it
 include $(ATMEGA_COMMON)Makefile.include
-- 
GitLab