board.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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-09-22 Bernard add board.h to this bsp
  9. * 2011-03-04 lgnq add board.h to FM3 bsp
  10. */
  11. #ifndef __BOARD_H__
  12. #define __BOARD_H__
  13. #if defined MB9B610S
  14. # include <mb9b610s.h>
  15. #elif defined MB9B610T
  16. # include <mb9b610t.h>
  17. #else
  18. # warning "you must define CPU type. e.g: MB9B610S or MB9B610T"
  19. # warning "define MB9B610S default"
  20. # define MB9B610S /* default: MB9B610S */
  21. # include <mb9b610s.h>
  22. #endif
  23. #include "serial.h"
  24. //Internal SRAM memory size[Kbytes] <8-64>
  25. //product MB9BFx16S/T MB9BFx17S/T MB9BFx18S/T
  26. //FLASH : 512 768 1024
  27. //SRAM0 : 32 48 64
  28. //SRAM1 : 32 48 64
  29. #define FM3_SRAM_SIZE 128
  30. #define FM3_SRAM_END (0x1FFF0000 + FM3_SRAM_SIZE * 1024)
  31. /* RT_USING_UART */
  32. #define RT_USING_UART0
  33. //#define RT_USING_UART2
  34. //#define RT_USING_UART4
  35. #define RT_UART_RX_BUFFER_SIZE 64
  36. void rt_hw_board_init(void);
  37. rt_uint32_t rt_hw_tick_get_millisecond(void);
  38. rt_uint32_t rt_hw_tick_get_microsecond(void);
  39. #endif