mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 20:58:44 +08:00
Compare commits
3 commits
0ed79fe857
...
1fc0b87f1d
Author | SHA1 | Date | |
---|---|---|---|
|
1fc0b87f1d | ||
|
aa0aecbd80 | ||
|
0945bc0fb8 |
3 changed files with 17 additions and 4 deletions
|
@ -39,6 +39,7 @@
|
|||
|
||||
#include "soc/periph_defs.h"
|
||||
#include "esp_private/periph_ctrl.h"
|
||||
#include "hardware/esp32s3_system.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
|
@ -937,6 +938,8 @@ struct esp32s3_tim_dev_s *esp32s3_tim_init(int timer)
|
|||
case ESP32S3_TIMER0:
|
||||
{
|
||||
tim = &g_esp32s3_tim0_priv;
|
||||
modifyreg32(SYSTEM_PERIP_CLK_EN0_REG, 0, SYSTEM_TIMERGROUP_CLK_EN);
|
||||
modifyreg32(SYSTEM_PERIP_RST_EN0_REG, SYSTEM_TIMERGROUP_RST_M, 0);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
@ -945,6 +948,9 @@ struct esp32s3_tim_dev_s *esp32s3_tim_init(int timer)
|
|||
case ESP32S3_TIMER1:
|
||||
{
|
||||
tim = &g_esp32s3_tim1_priv;
|
||||
modifyreg32(SYSTEM_PERIP_CLK_EN0_REG, 0,
|
||||
SYSTEM_TIMERGROUP1_CLK_EN);
|
||||
modifyreg32(SYSTEM_PERIP_RST_EN0_REG, SYSTEM_TIMERGROUP1_RST_M, 0);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include "hardware/esp32s3_rtccntl.h"
|
||||
#include "hardware/esp32s3_tim.h"
|
||||
#include "hardware/esp32s3_efuse.h"
|
||||
#include "hardware/esp32s3_system.h"
|
||||
|
||||
#include "esp32s3_irq.h"
|
||||
#include "esp32s3_rtc_gpio.h"
|
||||
|
@ -991,6 +992,8 @@ struct esp32s3_wdt_dev_s *esp32s3_wdt_init(enum esp32s3_wdt_inst_e wdt_id)
|
|||
case ESP32S3_WDT_MWDT0:
|
||||
{
|
||||
wdt = &g_esp32s3_mwdt0_priv;
|
||||
modifyreg32(SYSTEM_PERIP_CLK_EN0_REG, 0, SYSTEM_TIMERGROUP_CLK_EN);
|
||||
modifyreg32(SYSTEM_PERIP_RST_EN0_REG, SYSTEM_TIMERGROUP_RST_M, 0);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1000,6 +1003,9 @@ struct esp32s3_wdt_dev_s *esp32s3_wdt_init(enum esp32s3_wdt_inst_e wdt_id)
|
|||
case ESP32S3_WDT_MWDT1:
|
||||
{
|
||||
wdt = &g_esp32s3_mwdt1_priv;
|
||||
modifyreg32(SYSTEM_PERIP_CLK_EN0_REG, 0,
|
||||
SYSTEM_TIMERGROUP1_CLK_EN);
|
||||
modifyreg32(SYSTEM_PERIP_RST_EN0_REG, SYSTEM_TIMERGROUP1_RST_M, 0);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -397,16 +397,17 @@ retry:
|
|||
|
||||
pool->nalloc++;
|
||||
spin_unlock_irqrestore(&pool->lock, flags);
|
||||
blk = kasan_unpoison(blk, pool->blocksize);
|
||||
#ifdef CONFIG_MM_FILL_ALLOCATIONS
|
||||
memset(blk, MM_ALLOC_MAGIC, pool->blocksize);
|
||||
#endif
|
||||
|
||||
#if CONFIG_MM_BACKTRACE >= 0
|
||||
mempool_add_backtrace(pool, (FAR struct mempool_backtrace_s *)
|
||||
((FAR char *)blk + pool->blocksize));
|
||||
#endif
|
||||
|
||||
blk = kasan_unpoison(blk, pool->blocksize);
|
||||
#ifdef CONFIG_MM_FILL_ALLOCATIONS
|
||||
memset(blk, MM_ALLOC_MAGIC, pool->blocksize);
|
||||
#endif
|
||||
|
||||
return blk;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue