You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
410 B
C
27 lines
410 B
C
#include "memory.h"
|
|
#include "conf_core.h"
|
|
|
|
void mem_nvm_init(void)
|
|
{
|
|
CRITICAL_SECTION_ENTER();
|
|
NVMCTRL->CTRLA.bit.RWS = CORE_CONF_MCLK_NVM_WAIT_STATE;
|
|
CRITICAL_SECTION_LEAVE();
|
|
}
|
|
|
|
void mem_cache_init(void)
|
|
{
|
|
#if CORE_CONF_CMCC_ENABLE == 1
|
|
|
|
#endif
|
|
}
|
|
|
|
void mem_dma_init(void)
|
|
{
|
|
#if CORE_CONF_DMA_ENABLE
|
|
CRITICAL_SECTION_ENTER();
|
|
MCLK->AHBMASK.reg |= MCLK_AHBMASK_DMAC;
|
|
CRITICAL_SECTION_LEAVE();
|
|
#endif
|
|
}
|
|
|