.
common/board\_f.c
1 static int initf_dm(void)
2 {
3 #if defined(CONFIG_DM) && defined(CONFIG_SYS_MALLOC_F_LEN)
4 int ret;
5
6 ret = dm_init_and_scan(true);
7 if (ret)
8 return ret;
9 #endif
10 #ifdef CONFIG_TIMER_EARLY
11 ret = dm_timer_init();
12 if (ret)
13 return ret;
14 #endif
15
16 return 0;
17 }
- 3번 줄의
CONFIG_DM
CONFIG_SYS_MALLOC_F_LEN
은 정의되어 있어dm_init_and_scan
함수가 수행됩니다. - 10번 줄의
CONFIG_TIMER_EARLY
은 선언되어 있지 않아 if문은 수행되지 않습니다.