board.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #if defined MB9B610S
  18. # include <mb9b610s.h>
  19. #elif defined MB9B610T
  20. # include <mb9b610t.h>
  21. #else
  22. # warning "you must define CPU type. e.g: MB9B610S or MB9B610T"
  23. # warning "define MB9B610S default"
  24. # define MB9B610S /* default: MB9B610S */
  25. # include <mb9b610s.h>
  26. #endif
  27. #include "serial.h"
  28. //Internal SRAM memory size[Kbytes] <8-64>
  29. //product MB9BFx16S/T MB9BFx17S/T MB9BFx18S/T
  30. //FLASH : 512 768 1024
  31. //SRAM0 : 32 48 64
  32. //SRAM1 : 32 48 64
  33. #define FM3_SRAM_SIZE 128
  34. #define FM3_SRAM_END (0x1FFF0000 + FM3_SRAM_SIZE * 1024)
  35. /* RT_USING_UART */
  36. #define RT_USING_UART0
  37. //#define RT_USING_UART2
  38. //#define RT_USING_UART4
  39. #define RT_UART_RX_BUFFER_SIZE 64
  40. void rt_hw_board_init(void);
  41. rt_uint32_t rt_hw_tick_get_millisecond(void);
  42. rt_uint32_t rt_hw_tick_get_microsecond(void);
  43. #endif