In-Field Testing Using MISR
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
417 B

#include <stdint.h>
#define MISR_START() (*(volatile uint32_t *)0x40000000 = 1)
#define MISR_STOP() (*(volatile uint32_t *)0x40000000 = 0)
#define SIM_FINISH() (*(volatile uint32_t *)0x20000000 = 1)
volatile uint32_t sink;
int main() {
sink = 0;
MISR_START();
// Your Code here.
sink = 1;
MISR_STOP();
SIM_FINISH();
while(1) {
__asm__ volatile ("nop");
}
return 0;
}