尝试修复其他芯片的编译

This commit is contained in:
zhangzheng
2024-04-10 15:19:02 +00:00
parent 1cca0dc8de
commit 780d4db78d
22 changed files with 114 additions and 33 deletions

View File

@@ -239,7 +239,7 @@ static share_mem_t *share_mem_create(ram_limit_t *lim, size_t max)
#if CONFIG_MK_MPU_CFG
#if CONFIG_MPU_VERSION == 1
if (max < PAGE_SIZE || !is_power_of_2(max))
if (max < (1UL << CONFIG_PAGE_SHIFT) || !is_power_of_2(max))
{
//!< 大小必须是2的整数倍
return NULL;