mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Test metering, prove that system can resume after a hang error with a range of meter sizes
This commit is contained in:
parent
9d9e7542fc
commit
ac1975a820
14 changed files with 222 additions and 53 deletions
15
test/meter/rom/rom.c
Normal file
15
test/meter/rom/rom.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "uvm32_target.h"
|
||||
|
||||
void stall(void) {
|
||||
volatile uint32_t i;
|
||||
for (i=0;i<100;i++) {
|
||||
}
|
||||
}
|
||||
|
||||
void main(void) {
|
||||
for (int i=0;i<100;i++) {
|
||||
stall();
|
||||
printdec(i);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue