修改部分线程内存位置

This commit is contained in:
sc committed 2026-01-07 01:51:24 +08:00
1 parent 4647022f6f
commit 72bbf093b2
8 files changed
+71 -25

No files matched your search

+5
View File
@@ -16,6 +16,11 @@ struct rt_memheap sram_DTCMRAM,sram_AXIRAM,sram_SRAM1,sram_SRAM2;
rt_weak void rt_hw_board_init()
{
/* 允许未对齐访问(Cortex-M3/M4/M7 支持) */
//SCB->CCR |= SCB_CCR_UNALIGN_TRP_Msk; // ← 默认是 1(禁止)
// 要允许,应该 CLEAR 这个位!
//SCB->CCR &= ~SCB_CCR_UNALIGN_TRP_Msk;
extern void hw_board_init(char *clock_src, int32_t clock_src_freq, int32_t clock_target_freq);
/* Heap initialization */
+1 -1
View File
@@ -44,7 +44,7 @@
#endif
#ifndef SDIO_MAX_FREQ
#define SDIO_MAX_FREQ (25 * 1000 * 1000)
#define SDIO_MAX_FREQ (50 * 1000 * 1000)
#endif
#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))