1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2017-08-10 Urey first implementation 9 */ 10 11 #include <rthw.h> 12 #include <rtthread.h> 13 14 #include "board.h" 15 #include "csi_core.h" 16 #include "pinmux.h" 17 18 extern int __bss_end__; 19 #define SYS_HEAP_BEGIN (&__bss_end__) 20 21 #include "core_ck802.h" 22 23 /** 24 * This function will initial CK802 board. 25 */ rt_hw_board_init(void)26void rt_hw_board_init(void) 27 { 28 phobos_ioreuse_initial(); 29 30 /* NVIC Configuration */ 31 drv_nvic_init(2); 32 33 #ifdef RT_USING_COMPONENTS_INIT 34 rt_components_board_init(); 35 #endif 36 37 #if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE) 38 rt_console_set_device(RT_CONSOLE_DEVICE_NAME); 39 #endif 40 41 #ifdef RT_USING_HEAP 42 rt_system_heap_init((void *)SYS_HEAP_BEGIN, (void *)CK802_IRAM_END); 43 #endif 44 } 45 46 /*@}*/ 47