fix RAMSTART, RAMSIZE, RAMEND for samd51 and same21

This commit is contained in:
hathach 2019-07-17 12:45:44 +07:00
parent fa04386790
commit 3bb94f51b8

View file

@ -25,8 +25,14 @@
#ifndef _IO_H_
#define _IO_H_
#define RAMSTART (HMCRAMC0_ADDR)
#define RAMSIZE (HMCRAMC0_SIZE)
#ifdef HSRAM_ADDR
#define RAMSTART (HSRAM_ADDR)
#define RAMSIZE (HSRAM_SIZE)
#else
#define RAMSTART (HMCRAMC0_ADDR)
#define RAMSIZE (HMCRAMC0_SIZE)
#endif
#define RAMEND (RAMSTART + RAMSIZE - 1)
#endif