board.h 728 B

1234567891011121314151617181920212223242526272829303132
  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. * 2006-10-08 Bernard add board.h to this bsp
  13. */
  14. #ifndef __BOARD_H__
  15. #define __BOARD_H__
  16. #include <rthw.h>
  17. #include <rtthread.h>
  18. #define MCK 48054857
  19. #define BR 115200 /* Baud Rate */
  20. #define BRD (MCK/16/BR) /* Baud Rate Divisor */
  21. #define RT_UART_RX_BUFFER_SIZE 128
  22. void rt_hw_board_led_on(int n);
  23. void rt_hw_board_led_off(int n);
  24. void rt_hw_board_init(void);
  25. #endif