board.h 758 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * File : board.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006, RT-Thread Develop 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://openlab.rt-thread.com/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-02-16 Bernard add board.h to this bsp
  13. */
  14. #ifndef __BOARD_H__
  15. #define __BOARD_H__
  16. #include <rtthread.h>
  17. #define CCLK 60000000 /* Fosc = 12MHz, M = 5 */
  18. #define PCLK 15000000 /* CCLK/4, use default */
  19. /* RT_USING_UART */
  20. #define RT_USING_UART1
  21. #define RT_USING_UART2
  22. #define RT_UART_RX_BUFFER_SIZE 64
  23. void rt_hw_board_init(void);
  24. #ifdef RT_USING_FINSH
  25. void rt_hw_finsh_init(void);
  26. #endif
  27. #endif