Merge pull request #1752 from cesanta/asan

Activate asan for mip_test
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2022-09-23 09:45:18 -03:00
commit 89f2e66c80
4 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -6052,7 +6052,7 @@ static uint32_t get_hclk(void) {
} else {
clk = hsi;
}
int hpre = (RCC->CFGR & (0x0F << 4)) >> 4;
uint32_t hpre = (RCC->CFGR & (15 << 4)) >> 4;
if (hpre < 8) return clk;
uint8_t ahbptab[8] = {1, 2, 3, 4, 6, 7, 8, 9}; // log2(div)