Commit a1505ff4 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

include/syscon.h: added sysc_get_memsize()

parent 99ce051f
......@@ -55,6 +55,11 @@ static inline int gpio_in(int pin)
{
return syscon->GPSR & pin ? 1: 0;
}
static inline int sysc_get_memsize()
{
return (SYSC_HWFR_MEMSIZE_R(syscon->HWFR) + 1) * 16;
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment