TTK4155 Lab Node 1
Term project in the NTNU course TTK4155 Embedded and Industrial Computer Systems Design
Loading...
Searching...
No Matches
xmem.h
Go to the documentation of this file.
1
8
9#ifndef XMEM_H
10#define XMEM_H
11
12#include <stdint.h>
13
14#ifndef XMEM_3KB
15#define XMEM_3KB 0
16#endif
17
18#if XMEM_3KB
19// 0x1400 offset and external memory size 0x0C00 if we decide to go for the 3KB
20// solution
21#define MEM_OFFSET 0x1400u
22#define XMEM_SIZE 0x0C00u
23#else
24// 0x1800 offset and external memory size 0x0800 if we decide to go for the 2KB
25// solution
26#define MEM_OFFSET 0x1800u
27#define XMEM_SIZE 0x0800u
28#endif
29
34int xmem_init(void);
35
42int SRAM_test(void);
43
44#endif // XMEM_H
45
int SRAM_test(void)
Tests external SRAM and prints a report.
Definition xmem.c:43
int xmem_init(void)
Initializes external SRAM (2KB or 3KB depending on XMEM_3KB).
Definition xmem.c:12