Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(PeriphDrivers): MAX32657 Cache Access #1312

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Libraries/PeriphDrivers/Source/ICC/icc_me30.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,31 @@ Maxim Internal Use

int MXC_ICC_ID(mxc_icc_info_t cid)
{
#if CONFIG_TRUSTED_EXECUTION_SECURE
return MXC_ICC_RevA_ID((mxc_icc_reva_regs_t *)MXC_ICC, cid);
#else
return E_NOT_SUPPORTED;
#endif
}

void MXC_ICC_Enable(void)
{
/* Cache controller only accessible in secure world. */
#if CONFIG_TRUSTED_EXECUTION_SECURE
MXC_ICC_RevA_Enable((mxc_icc_reva_regs_t *)MXC_ICC);
#endif
}

void MXC_ICC_Disable(void)
{
#if CONFIG_TRUSTED_EXECUTION_SECURE
MXC_ICC_RevA_Disable((mxc_icc_reva_regs_t *)MXC_ICC);
#endif
}

void MXC_ICC_Flush(void)
{
#if CONFIG_TRUSTED_EXECUTION_SECURE
MXC_ICC_Com_Flush();
#endif
}
Loading