Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#include "../lib.c"
void main(){
volatile int* hardwareCounterAddr = (int*)0xffffff00;
volatile char* serial_out = (char*)0x40002000; // memory mapped I/O
int i;
int hardwareCounter;
for(i=0;i<10;i++){
hardwareCounter = *hardwareCounterAddr;
serial_out_hex(hardwareCounter);
serial_out_char('\n');
}
}
6d2e42836This file is pinned to the selected release. Download the original to open it in your design tool.