Skip to content

Commit

Permalink
Define correct size for RAM
Browse files Browse the repository at this point in the history
This was previously hardcoded to a single value, but is now derived from
the STM32 chip-specific header files.
  • Loading branch information
matthijskooijman committed Nov 4, 2020
1 parent ef8a828 commit c544f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cores/arduino/avr/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#include "stm32l0xx.h"

#define RAMSTART 0x20000000
#define RAMSIZE (20 * 1024)
#define RAMSTART (SRAM_BASE)
#define RAMSIZE (SRAM_SIZE_MAX)
#define RAMEND (RAMSTART + RAMSIZE - 1)

#if defined(DATA_EEPROM_BASE) && defined(DATA_EEPROM_END)
Expand Down

0 comments on commit c544f48

Please sign in to comment.