board.h 905 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * File : board.h
  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. * 2009-09-22 Bernard add board.h to this bsp
  13. * 2011-03-04 lgnq add board.h to FM3 bsp
  14. */
  15. #ifndef __BOARD_H__
  16. #define __BOARD_H__
  17. #include <system_mb9bf56xr.h>
  18. #include <mb9b560r.h>
  19. #include <base_types.h>
  20. #include "serial.h"
  21. #define FM4_SRAM_SIZE 128
  22. #define FM4_SRAM_END (0x1FFF0000 + FM4_SRAM_SIZE * 1024)
  23. /* RT_USING_UART */
  24. #define RT_USING_UART0
  25. #define RT_UART_RX_BUFFER_SIZE 128
  26. void rt_hw_board_init(void);
  27. rt_uint32_t rt_hw_tick_get_millisecond(void);
  28. rt_uint32_t rt_hw_tick_get_microsecond(void);
  29. #endif