board.c 871 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #include <rthw.h>
  11. #include <rtthread.h>
  12. #include "board.h"
  13. #include "csi_core.h"
  14. #include "pinmux.h"
  15. extern int __bss_end__;
  16. #define SYS_HEAP_BEGIN (&__bss_end__)
  17. #include "core_ck802.h"
  18. /**
  19. * This function will initial CK802 board.
  20. */
  21. void rt_hw_board_init(void)
  22. {
  23. phobos_ioreuse_initial();
  24. /* NVIC Configuration */
  25. drv_nvic_init(2);
  26. #ifdef RT_USING_COMPONENTS_INIT
  27. rt_components_board_init();
  28. #endif
  29. #if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
  30. rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
  31. #endif
  32. #ifdef RT_USING_HEAP
  33. rt_system_heap_init((void *)SYS_HEAP_BEGIN, (void *)CK802_IRAM_END);
  34. #endif
  35. }
  36. /*@}*/