board.h 586 B

1234567891011121314151617181920212223242526272829
  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. * 2009-02-16 Bernard add board.h to this bsp
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include <rtthread.h>
  13. #define CCLK 60000000 /* Fosc = 12MHz, M = 5 */
  14. #define PCLK 15000000 /* CCLK/4, use default */
  15. /* RT_USING_UART */
  16. #define RT_USING_UART1
  17. #define RT_USING_UART2
  18. #define RT_UART_RX_BUFFER_SIZE 64
  19. void rt_hw_board_init(void);
  20. #ifdef RT_USING_FINSH
  21. void rt_hw_finsh_init(void);
  22. #endif
  23. #endif