Hi Guys, could some explain to me how this works?
mpu_enty->size = 0x011
mpu_entry->addr, points to the stat address of 4K of memory
// Check the base address: it must be aligned to the size of the region. // This test is written carefully to also work for the 4-GB case. if(!Test_align(mpu_entry->addr, 2 << (U32)mpu_entry->size)) // ERROR: the input base address is not aligned to the size of the region. return(MPU_SETUP_ENTRY_INVALIDBASEADDR);
#define Test_align(val, n ) (!Tst_bits( val, (n) - 1 ) )