X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fsysclock.c;h=02e226c002a940a9834e97bbe9c8ee08b370e900;hb=8fa939d627fb6230610a38e6468cbc55d006216d;hp=acbfb29443eda12d2443230ac5ece5311c651cd5;hpb=5f46191d2615ebe2caa6e111b478031a34f20b9e;p=arm-crypto-lib.git diff --git a/test_src/sysclock.c b/test_src/sysclock.c index acbfb29..02e226c 100644 --- a/test_src/sysclock.c +++ b/test_src/sysclock.c @@ -19,7 +19,7 @@ #include #include "hw_regs.h" - +#include "sysclock.h" #define CRYSTAL_FREQ 16000000UL #define CRYSTAL_CODE 0x15 /* 16 MHz */ @@ -27,13 +27,15 @@ #define PIOSC_FREQ 16000000UL void sysclk_set_rawclock(void){ - uint32_t tmp_rcc; + volatile uint32_t tmp_rcc; tmp_rcc = 0; //HW_REG(SYSCTL_BASE+RCC_OFFSET); tmp_rcc &= ~(_BV(RCC_IOSCDIS) | _BV(RCC_MOSCDIS) | _BV(RCC_USESYSDIV)); tmp_rcc |= _BV(RCC_BYPASS) | _BV(RCC_PWRDN); tmp_rcc &= ~(3<