A27系列优化I2C/RTC处理,新增版本A270Y
This commit is contained in:
10
A27-STEPLDR/Src/sysctl.c
Normal file
10
A27-STEPLDR/Src/sysctl.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include "amt630h.h"
|
||||
|
||||
void vSysctlConfigure(uint32_t regoffset, uint32_t bitoffset, uint32_t mask, uint32_t val)
|
||||
{
|
||||
uint32_t tmp = readl(REGS_SYSCTL_BASE + regoffset);
|
||||
|
||||
tmp &= ~(mask << bitoffset);
|
||||
tmp |= val << bitoffset;
|
||||
writel(tmp, REGS_SYSCTL_BASE + regoffset);
|
||||
}
|
Reference in New Issue
Block a user