123456789101112131415161718192021222324252627282930 |
- #ifndef SYS_H
- #define SYS_H
- #include "compiler.h"
- #include "iodevs.h"
- #define SRAM_SIZE (0x1 << SRAM_BITS)
- #define SRAM_MASK (SRAM_SIZE - 1)
- #define SRAM_END (SRAM_ADDR + SRAM_SIZE)
- #define STACK_SIZE 2048
- #define STACK_TOP SRAM_END
- #define STACK_BOTTOM (STACK_TOP - STACK_SIZE)
- #define SDRAM_SIZE (0x1 << SDRAM_BITS)
- #define SDRAM_MASK (SDRAM_SIZE - 1)
- #define SDRAM_END (SDRAM_ADDR + SDRAM_SIZE)
- #define ROM_OFFSET 0x100000
- #endif
|