board.c 751 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * File : board.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-04-09 fify the first version
  13. *
  14. * For : Renesas M16C
  15. * Toolchain : IAR's EW for M16C v3.401
  16. */
  17. #include <rthw.h>
  18. #include <rtthread.h>
  19. #include "uart.h"
  20. #include "board.h"
  21. /**
  22. * This function will initial m16c board.
  23. */
  24. void rt_hw_board_init(void)
  25. {
  26. #ifdef RT_USING_UART0
  27. rt_hw_uart_init();
  28. rt_console_set_device("uart0");
  29. #endif
  30. rt_kprintf("\r\n\r\nSystemInit......\r\n");
  31. }