mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
11 lines
334 B
C
11 lines
334 B
C
#include "uvm32_target.h"
|
|
#include "barr_memtest.h"
|
|
|
|
void main(void) {
|
|
datum * base = (datum *)UVM32_EXTRAM_BASE;
|
|
if ((memTestDataBus(base) != 0) || (memTestAddressBus(base, HEAP_SIZE) != NULL) || (memTestDevice(base, HEAP_SIZE) != NULL)) {
|
|
println("Memory error!");
|
|
} else {
|
|
println("Memory ok");
|
|
}
|
|
}
|