14 lines
295 B
C
14 lines
295 B
C
#include <stdint.h>
|
|
|
|
#define GPIO_BASE 0x40000000u
|
|
|
|
static volatile uint32_t * const R_FREQ = (volatile uint32_t *)GPIO_BASE;
|
|
|
|
void main(){
|
|
for(;;){
|
|
for(int i=1000; i<10000; i++){
|
|
*R_FREQ = i;
|
|
// for(int j=0; j<100; j++) asm volatile("nop");
|
|
}
|
|
}
|
|
} |