rt-thread-official/bsp/juicevm/board/board.c

39 lines
864 B
C
Raw Normal View History

2021-04-26 13:46:22 +08:00
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021/04/22 Juice the first version
*/
#include <rthw.h>
#include <rtthread.h>
#include "board.h"
#include "drv_uart.h"
void rt_hw_board_init(void)
{
/* initialize hardware interrupt */
rt_hw_uart_init();
// rt_hw_systick_init();
#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
2021-04-26 13:46:22 +08:00
/* set console device */
rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
#endif
2021-04-26 13:46:22 +08:00
#ifdef RT_USING_HEAP
rt_kprintf("heap: [0x%08x - 0x%08x]\n", (rt_ubase_t) RT_HW_HEAP_BEGIN, (rt_ubase_t) RT_HW_HEAP_END);
/* initialize memory system */
rt_system_heap_init(RT_HW_HEAP_BEGIN, RT_HW_HEAP_END);
#endif
#ifdef RT_USING_COMPONENTS_INIT
rt_components_board_init();
#endif
}